Skip to content

Commit 73f44f9

Browse files
1 parent 4c4416d commit 73f44f9

File tree

6 files changed

+239
-17
lines changed

6 files changed

+239
-17
lines changed

clients/google-api-services-androidenterprise/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-androidenterprise</artifactId>
25-
<version>v1-rev20241028-2.0.0</version>
25+
<version>v1-rev20241113-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-androidenterprise:v1-rev20241028-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidenterprise:v1-rev20241113-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-androidenterprise/v1/2.0.0/com/google/api/services/androidenterprise/AndroidEnterprise.java

Lines changed: 80 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ public CompleteSignup set(String parameterName, Object value) {
14301430
* optional parameters, call the {@link CreateEnrollmentToken#execute()} method to invoke the remote
14311431
* operation.
14321432
*
1433-
* @param enterpriseId The ID of the enterprise.
1433+
* @param enterpriseId Required. The ID of the enterprise.
14341434
* @return the request
14351435
*/
14361436
public CreateEnrollmentToken createEnrollmentToken(java.lang.String enterpriseId) throws java.io.IOException {
@@ -1456,7 +1456,7 @@ public class CreateEnrollmentToken extends AndroidEnterpriseRequest<com.google.a
14561456
* services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
14571457
* after invoking the constructor. </p>
14581458
*
1459-
* @param enterpriseId The ID of the enterprise.
1459+
* @param enterpriseId Required. The ID of the enterprise.
14601460
* @since 1.13
14611461
*/
14621462
protected CreateEnrollmentToken(java.lang.String enterpriseId) {
@@ -1519,38 +1519,110 @@ public CreateEnrollmentToken setUploadProtocol(java.lang.String uploadProtocol)
15191519
return (CreateEnrollmentToken) super.setUploadProtocol(uploadProtocol);
15201520
}
15211521

1522-
/** The ID of the enterprise. */
1522+
/** Required. The ID of the enterprise. */
15231523
@com.google.api.client.util.Key
15241524
private java.lang.String enterpriseId;
15251525

1526-
/** The ID of the enterprise.
1526+
/** Required. The ID of the enterprise.
15271527
*/
15281528
public java.lang.String getEnterpriseId() {
15291529
return enterpriseId;
15301530
}
15311531

1532-
/** The ID of the enterprise. */
1532+
/** Required. The ID of the enterprise. */
15331533
public CreateEnrollmentToken setEnterpriseId(java.lang.String enterpriseId) {
15341534
this.enterpriseId = enterpriseId;
15351535
return this;
15361536
}
15371537

1538-
/** Whether it’s a dedicated device or a knowledge worker device. */
1538+
/** Deprecated: Use enrollment_token instead. this field will be removed in the future. */
15391539
@com.google.api.client.util.Key
15401540
private java.lang.String deviceType;
15411541

1542-
/** Whether it’s a dedicated device or a knowledge worker device.
1542+
/** Deprecated: Use enrollment_token instead. this field will be removed in the future.
15431543
*/
15441544
public java.lang.String getDeviceType() {
15451545
return deviceType;
15461546
}
15471547

1548-
/** Whether it’s a dedicated device or a knowledge worker device. */
1548+
/** Deprecated: Use enrollment_token instead. this field will be removed in the future. */
15491549
public CreateEnrollmentToken setDeviceType(java.lang.String deviceType) {
15501550
this.deviceType = deviceType;
15511551
return this;
15521552
}
15531553

1554+
/**
1555+
* [Optional] The length of time the enrollment token is valid, ranging from 1 minute to
1556+
* [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
1557+
* buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),
1558+
* approximately 10,000 years. If not specified, the default duration is 1 hour.
1559+
*/
1560+
@com.google.api.client.util.Key("enrollmentToken.duration")
1561+
private String enrollmentTokenDuration;
1562+
1563+
/**[ Optional] The length of time the enrollment token is valid, ranging from 1 minute to
1564+
[ [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
1565+
[ buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately
1566+
[ 10,000 years. If not specified, the default duration is 1 hour.
1567+
[
1568+
1569+
*/
1570+
public String getEnrollmentTokenDuration() {
1571+
return enrollmentTokenDuration;
1572+
}
1573+
1574+
/**
1575+
* [Optional] The length of time the enrollment token is valid, ranging from 1 minute to
1576+
* [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
1577+
* buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),
1578+
* approximately 10,000 years. If not specified, the default duration is 1 hour.
1579+
*/
1580+
public CreateEnrollmentToken setEnrollmentTokenDuration(String enrollmentTokenDuration) {
1581+
this.enrollmentTokenDuration = enrollmentTokenDuration;
1582+
return this;
1583+
}
1584+
1585+
/** [Required] The type of the enrollment token. */
1586+
@com.google.api.client.util.Key("enrollmentToken.enrollmentTokenType")
1587+
private java.lang.String enrollmentTokenEnrollmentTokenType;
1588+
1589+
/**[ Required] The type of the enrollment token.
1590+
[
1591+
1592+
*/
1593+
public java.lang.String getEnrollmentTokenEnrollmentTokenType() {
1594+
return enrollmentTokenEnrollmentTokenType;
1595+
}
1596+
1597+
/** [Required] The type of the enrollment token. */
1598+
public CreateEnrollmentToken setEnrollmentTokenEnrollmentTokenType(java.lang.String enrollmentTokenEnrollmentTokenType) {
1599+
this.enrollmentTokenEnrollmentTokenType = enrollmentTokenEnrollmentTokenType;
1600+
return this;
1601+
}
1602+
1603+
/**
1604+
* The token value that's passed to the device and authorizes the device to enroll. This is a
1605+
* read-only field generated by the server.
1606+
*/
1607+
@com.google.api.client.util.Key("enrollmentToken.token")
1608+
private java.lang.String enrollmentTokenToken;
1609+
1610+
/** The token value that's passed to the device and authorizes the device to enroll. This is a read-
1611+
only field generated by the server.
1612+
*/
1613+
public java.lang.String getEnrollmentTokenToken() {
1614+
return enrollmentTokenToken;
1615+
}
1616+
1617+
/**
1618+
* The token value that's passed to the device and authorizes the device to enroll. This is a
1619+
* read-only field generated by the server.
1620+
*/
1621+
public CreateEnrollmentToken setEnrollmentTokenToken(java.lang.String enrollmentTokenToken) {
1622+
this.enrollmentTokenToken = enrollmentTokenToken;
1623+
return this;
1624+
}
1625+
15541626
@Override
15551627
public CreateEnrollmentToken set(String parameterName, Object value) {
15561628
return (CreateEnrollmentToken) super.set(parameterName, value);

clients/google-api-services-androidenterprise/v1/2.0.0/com/google/api/services/androidenterprise/model/CreateEnrollmentTokenResponse.java

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,53 @@
3030
public final class CreateEnrollmentTokenResponse extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Enrollment token.
33+
* Deprecated: Use token instead. This field will be removed in the future.
3434
* The value may be {@code null}.
3535
*/
3636
@com.google.api.client.util.Key
3737
private java.lang.String enrollmentToken;
3838

3939
/**
40-
* Enrollment token.
40+
* [Required] The created enrollment token.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private EnrollmentToken token;
45+
46+
/**
47+
* Deprecated: Use token instead. This field will be removed in the future.
4148
* @return value or {@code null} for none
4249
*/
4350
public java.lang.String getEnrollmentToken() {
4451
return enrollmentToken;
4552
}
4653

4754
/**
48-
* Enrollment token.
55+
* Deprecated: Use token instead. This field will be removed in the future.
4956
* @param enrollmentToken enrollmentToken or {@code null} for none
5057
*/
5158
public CreateEnrollmentTokenResponse setEnrollmentToken(java.lang.String enrollmentToken) {
5259
this.enrollmentToken = enrollmentToken;
5360
return this;
5461
}
5562

63+
/**
64+
* [Required] The created enrollment token.
65+
* @return value or {@code null} for none
66+
*/
67+
public EnrollmentToken getToken() {
68+
return token;
69+
}
70+
71+
/**
72+
* [Required] The created enrollment token.
73+
* @param token token or {@code null} for none
74+
*/
75+
public CreateEnrollmentTokenResponse setToken(EnrollmentToken token) {
76+
this.token = token;
77+
return this;
78+
}
79+
5680
@Override
5781
public CreateEnrollmentTokenResponse set(String fieldName, Object value) {
5882
return (CreateEnrollmentTokenResponse) super.set(fieldName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.androidenterprise.model;
18+
19+
/**
20+
* A token used to enroll a device.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Play EMM API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class EnrollmentToken extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* [Optional] The length of time the enrollment token is valid, ranging from 1 minute to
34+
* [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
35+
* buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately
36+
* 10,000 years. If not specified, the default duration is 1 hour.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private String duration;
41+
42+
/**
43+
* [Required] The type of the enrollment token.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String enrollmentTokenType;
48+
49+
/**
50+
* The token value that's passed to the device and authorizes the device to enroll. This is a
51+
* read-only field generated by the server.
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.lang.String token;
56+
57+
/**
58+
* [Optional] The length of time the enrollment token is valid, ranging from 1 minute to
59+
* [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
60+
* buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately
61+
* 10,000 years. If not specified, the default duration is 1 hour.
62+
* @return value or {@code null} for none
63+
*/
64+
public String getDuration() {
65+
return duration;
66+
}
67+
68+
/**
69+
* [Optional] The length of time the enrollment token is valid, ranging from 1 minute to
70+
* [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
71+
* buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately
72+
* 10,000 years. If not specified, the default duration is 1 hour.
73+
* @param duration duration or {@code null} for none
74+
*/
75+
public EnrollmentToken setDuration(String duration) {
76+
this.duration = duration;
77+
return this;
78+
}
79+
80+
/**
81+
* [Required] The type of the enrollment token.
82+
* @return value or {@code null} for none
83+
*/
84+
public java.lang.String getEnrollmentTokenType() {
85+
return enrollmentTokenType;
86+
}
87+
88+
/**
89+
* [Required] The type of the enrollment token.
90+
* @param enrollmentTokenType enrollmentTokenType or {@code null} for none
91+
*/
92+
public EnrollmentToken setEnrollmentTokenType(java.lang.String enrollmentTokenType) {
93+
this.enrollmentTokenType = enrollmentTokenType;
94+
return this;
95+
}
96+
97+
/**
98+
* The token value that's passed to the device and authorizes the device to enroll. This is a
99+
* read-only field generated by the server.
100+
* @return value or {@code null} for none
101+
*/
102+
public java.lang.String getToken() {
103+
return token;
104+
}
105+
106+
/**
107+
* The token value that's passed to the device and authorizes the device to enroll. This is a
108+
* read-only field generated by the server.
109+
* @param token token or {@code null} for none
110+
*/
111+
public EnrollmentToken setToken(java.lang.String token) {
112+
this.token = token;
113+
return this;
114+
}
115+
116+
@Override
117+
public EnrollmentToken set(String fieldName, Object value) {
118+
return (EnrollmentToken) super.set(fieldName, value);
119+
}
120+
121+
@Override
122+
public EnrollmentToken clone() {
123+
return (EnrollmentToken) super.clone();
124+
}
125+
126+
}

clients/google-api-services-androidenterprise/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-androidenterprise</artifactId>
11-
<version>v1-rev20241028-2.0.0</version>
12-
<name>Google Play EMM API v1-rev20241028-2.0.0</name>
11+
<version>v1-rev20241113-2.0.0</version>
12+
<name>Google Play EMM API v1-rev20241113-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-androidenterprise/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-androidenterprise</artifactId>
25-
<version>v1-rev20241028-2.0.0</version>
25+
<version>v1-rev20241113-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-androidenterprise:v1-rev20241028-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidenterprise:v1-rev20241113-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)