@@ -1431,15 +1431,16 @@ public CompleteSignup set(String parameterName, Object value) {
14311431 * operation.
14321432 *
14331433 * @param enterpriseId Required. The ID of the enterprise.
1434+ * @param content the {@link com.google.api.services.androidenterprise.model.EnrollmentToken}
14341435 * @return the request
14351436 */
1436- public CreateEnrollmentToken createEnrollmentToken (java .lang .String enterpriseId ) throws java .io .IOException {
1437- CreateEnrollmentToken result = new CreateEnrollmentToken (enterpriseId );
1437+ public CreateEnrollmentToken createEnrollmentToken (java .lang .String enterpriseId , com . google . api . services . androidenterprise . model . EnrollmentToken content ) throws java .io .IOException {
1438+ CreateEnrollmentToken result = new CreateEnrollmentToken (enterpriseId , content );
14381439 initialize (result );
14391440 return result ;
14401441 }
14411442
1442- public class CreateEnrollmentToken extends AndroidEnterpriseRequest <com .google .api .services .androidenterprise .model .CreateEnrollmentTokenResponse > {
1443+ public class CreateEnrollmentToken extends AndroidEnterpriseRequest <com .google .api .services .androidenterprise .model .EnrollmentToken > {
14431444
14441445 private static final String REST_PATH = "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken" ;
14451446
@@ -1457,10 +1458,11 @@ public class CreateEnrollmentToken extends AndroidEnterpriseRequest<com.google.a
14571458 * after invoking the constructor. </p>
14581459 *
14591460 * @param enterpriseId Required. The ID of the enterprise.
1461+ * @param content the {@link com.google.api.services.androidenterprise.model.EnrollmentToken}
14601462 * @since 1.13
14611463 */
1462- protected CreateEnrollmentToken (java .lang .String enterpriseId ) {
1463- super (AndroidEnterprise .this , "POST" , REST_PATH , null , com .google .api .services .androidenterprise .model .CreateEnrollmentTokenResponse .class );
1464+ protected CreateEnrollmentToken (java .lang .String enterpriseId , com . google . api . services . androidenterprise . model . EnrollmentToken content ) {
1465+ super (AndroidEnterprise .this , "POST" , REST_PATH , content , com .google .api .services .androidenterprise .model .EnrollmentToken .class );
14641466 this .enterpriseId = com .google .api .client .util .Preconditions .checkNotNull (enterpriseId , "Required parameter enterpriseId must be specified." );
14651467 }
14661468
@@ -1535,78 +1537,6 @@ public CreateEnrollmentToken setEnterpriseId(java.lang.String enterpriseId) {
15351537 return this ;
15361538 }
15371539
1538- /**
1539- * [Optional] The length of time the enrollment token is valid, ranging from 1 minute to
1540- * [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
1541- * buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),
1542- * approximately 10,000 years. If not specified, the default duration is 1 hour.
1543- */
1544- @ com .google .api .client .util .Key ("enrollmentToken.duration" )
1545- private String enrollmentTokenDuration ;
1546-
1547- /**[ Optional] The length of time the enrollment token is valid, ranging from 1 minute to
1548- [ [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
1549- [ buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately
1550- [ 10,000 years. If not specified, the default duration is 1 hour.
1551- [
1552-
1553- */
1554- public String getEnrollmentTokenDuration () {
1555- return enrollmentTokenDuration ;
1556- }
1557-
1558- /**
1559- * [Optional] The length of time the enrollment token is valid, ranging from 1 minute to
1560- * [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
1561- * buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),
1562- * approximately 10,000 years. If not specified, the default duration is 1 hour.
1563- */
1564- public CreateEnrollmentToken setEnrollmentTokenDuration (String enrollmentTokenDuration ) {
1565- this .enrollmentTokenDuration = enrollmentTokenDuration ;
1566- return this ;
1567- }
1568-
1569- /** [Required] The type of the enrollment token. */
1570- @ com .google .api .client .util .Key ("enrollmentToken.enrollmentTokenType" )
1571- private java .lang .String enrollmentTokenEnrollmentTokenType ;
1572-
1573- /**[ Required] The type of the enrollment token.
1574- [
1575-
1576- */
1577- public java .lang .String getEnrollmentTokenEnrollmentTokenType () {
1578- return enrollmentTokenEnrollmentTokenType ;
1579- }
1580-
1581- /** [Required] The type of the enrollment token. */
1582- public CreateEnrollmentToken setEnrollmentTokenEnrollmentTokenType (java .lang .String enrollmentTokenEnrollmentTokenType ) {
1583- this .enrollmentTokenEnrollmentTokenType = enrollmentTokenEnrollmentTokenType ;
1584- return this ;
1585- }
1586-
1587- /**
1588- * The token value that's passed to the device and authorizes the device to enroll. This is a
1589- * read-only field generated by the server.
1590- */
1591- @ com .google .api .client .util .Key ("enrollmentToken.token" )
1592- private java .lang .String enrollmentTokenToken ;
1593-
1594- /** The token value that's passed to the device and authorizes the device to enroll. This is a read-
1595- only field generated by the server.
1596- */
1597- public java .lang .String getEnrollmentTokenToken () {
1598- return enrollmentTokenToken ;
1599- }
1600-
1601- /**
1602- * The token value that's passed to the device and authorizes the device to enroll. This is a
1603- * read-only field generated by the server.
1604- */
1605- public CreateEnrollmentToken setEnrollmentTokenToken (java .lang .String enrollmentTokenToken ) {
1606- this .enrollmentTokenToken = enrollmentTokenToken ;
1607- return this ;
1608- }
1609-
16101540 @ Override
16111541 public CreateEnrollmentToken set (String parameterName , Object value ) {
16121542 return (CreateEnrollmentToken ) super .set (parameterName , value );
0 commit comments