All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.androidenterprise.AndroidEnterprise Maven / Gradle / Ivy

There is a newer version: v1-rev20250115-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/google/apis-client-generator/
 * (build: 2016-07-08 17:28:43 UTC)
 * on 2016-10-11 at 14:14:59 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.androidenterprise;

/**
 * Service definition for AndroidEnterprise (v1).
 *
 * 

* Manages the deployment of apps to Android for Work users. *

* *

* For more information about this service, see the * API Documentation *

* *

* This service uses {@link AndroidEnterpriseRequestInitializer} to initialize global parameters via its * {@link Builder}. *

* * @since 1.3 * @author Google, Inc. */ @SuppressWarnings("javadoc") public class AndroidEnterprise extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { // Note: Leave this static initializer at the top of the file. static { com.google.api.client.util.Preconditions.checkState( com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 15, "You are currently running with version %s of google-api-client. " + "You need at least version 1.15 of google-api-client to run version " + "1.22.0 of the Google Play EMM API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); } /** * The default encoded root URL of the service. This is determined when the library is generated * and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_ROOT_URL = "https://www.googleapis.com/"; /** * The default encoded service path of the service. This is determined when the library is * generated and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_SERVICE_PATH = "androidenterprise/v1/"; /** * The default encoded base URL of the service. This is determined when the library is generated * and normally should not be changed. */ public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; /** * Constructor. * *

* Use {@link Builder} if you need to specify any of the optional parameters. *

* * @param transport HTTP transport, which should normally be: *
    *
  • Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
  • *
* @param jsonFactory JSON factory, which may be: *
    *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • *
  • Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • *
* @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public AndroidEnterprise(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { this(new Builder(transport, jsonFactory, httpRequestInitializer)); } /** * @param builder builder */ AndroidEnterprise(Builder builder) { super(builder); } @Override protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { super.initialize(httpClientRequest); } /** * An accessor for creating requests from the Collections collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Collections.List request = androidenterprise.collections().list(parameters ...)}
   * 
* * @return the resource collection */ public Collections collections() { return new Collections(); } /** * The "collections" collection of methods. */ public class Collections { /** * Deletes a collection. * * Create a request for the method "collections.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String collectionId) throws java.io.IOException { Delete result = new Delete(enterpriseId, collectionId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}"; /** * Deletes a collection. * * Create a request for the method "collections.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String collectionId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public Delete setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves the details of a collection. * * Create a request for the method "collections.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String collectionId) throws java.io.IOException { Get result = new Get(enterpriseId, collectionId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}"; /** * Retrieves the details of a collection. * * Create a request for the method "collections.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String collectionId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.Collection.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public Get setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Creates a new collection. * * Create a request for the method "collections.insert". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.Collection} * @return the request */ public Insert insert(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.Collection content) throws java.io.IOException { Insert result = new Insert(enterpriseId, content); initialize(result); return result; } public class Insert extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections"; /** * Creates a new collection. * * Create a request for the method "collections.insert". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Insert#execute()} method to invoke the remote * operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.Collection} * @since 1.13 */ protected Insert(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.Collection content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, com.google.api.services.androidenterprise.model.Collection.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); checkRequiredParameter(content, "content"); checkRequiredParameter(content.getName(), "Collection.getName()"); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUserIp(java.lang.String userIp) { return (Insert) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Insert setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Retrieves the IDs of all the collections for an enterprise. * * Create a request for the method "collections.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public List list(java.lang.String enterpriseId) throws java.io.IOException { List result = new List(enterpriseId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections"; /** * Retrieves the IDs of all the collections for an enterprise. * * Create a request for the method "collections.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected List(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.CollectionsListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates a collection. This method supports patch semantics. * * Create a request for the method "collections.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param content the {@link com.google.api.services.androidenterprise.model.Collection} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String collectionId, com.google.api.services.androidenterprise.model.Collection content) throws java.io.IOException { Patch result = new Patch(enterpriseId, collectionId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}"; /** * Updates a collection. This method supports patch semantics. * * Create a request for the method "collections.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param content the {@link com.google.api.services.androidenterprise.model.Collection} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String collectionId, com.google.api.services.androidenterprise.model.Collection content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.Collection.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public Patch setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Updates a collection. * * Create a request for the method "collections.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param content the {@link com.google.api.services.androidenterprise.model.Collection} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String collectionId, com.google.api.services.androidenterprise.model.Collection content) throws java.io.IOException { Update result = new Update(enterpriseId, collectionId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}"; /** * Updates a collection. * * Create a request for the method "collections.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param content the {@link com.google.api.services.androidenterprise.model.Collection} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String collectionId, com.google.api.services.androidenterprise.model.Collection content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.Collection.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); checkRequiredParameter(content, "content"); checkRequiredParameter(content.getName(), "Collection.getName()"); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public Update setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Collectionviewers collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Collectionviewers.List request = androidenterprise.collectionviewers().list(parameters ...)}
   * 
* * @return the resource collection */ public Collectionviewers collectionviewers() { return new Collectionviewers(); } /** * The "collectionviewers" collection of methods. */ public class Collectionviewers { /** * Removes the user from the list of those specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only such users will see the collection. * * Create a request for the method "collectionviewers.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param userId The ID of the user. * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String collectionId, java.lang.String userId) throws java.io.IOException { Delete result = new Delete(enterpriseId, collectionId, userId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}"; /** * Removes the user from the list of those specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only such users will see the collection. * * Create a request for the method "collectionviewers.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param userId The ID of the user. * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String collectionId, java.lang.String userId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public Delete setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Delete setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves the ID of the user if they have been specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only these users will see the collection. * * Create a request for the method "collectionviewers.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param userId The ID of the user. * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String collectionId, java.lang.String userId) throws java.io.IOException { Get result = new Get(enterpriseId, collectionId, userId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}"; /** * Retrieves the ID of the user if they have been specifically allowed to see the collection. If * the collection's visibility is set to viewersOnly then only these users will see the * collection. * * Create a request for the method "collectionviewers.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param userId The ID of the user. * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String collectionId, java.lang.String userId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.User.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public Get setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Get setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves the IDs of the users who have been specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only these users will see the collection. * * Create a request for the method "collectionviewers.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String collectionId) throws java.io.IOException { List result = new List(enterpriseId, collectionId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}/users"; /** * Retrieves the IDs of the users who have been specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only these users will see the collection. * * Create a request for the method "collectionviewers.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String collectionId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.CollectionViewersListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public List setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Adds the user to the list of those specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only such users will see the collection. This * method supports patch semantics. * * Create a request for the method "collectionviewers.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String collectionId, java.lang.String userId, com.google.api.services.androidenterprise.model.User content) throws java.io.IOException { Patch result = new Patch(enterpriseId, collectionId, userId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}"; /** * Adds the user to the list of those specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only such users will see the collection. * This method supports patch semantics. * * Create a request for the method "collectionviewers.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String collectionId, java.lang.String userId, com.google.api.services.androidenterprise.model.User content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.User.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public Patch setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Patch setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Adds the user to the list of those specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only such users will see the collection. * * Create a request for the method "collectionviewers.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String collectionId, java.lang.String userId, com.google.api.services.androidenterprise.model.User content) throws java.io.IOException { Update result = new Update(enterpriseId, collectionId, userId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}"; /** * Adds the user to the list of those specifically allowed to see the collection. If the * collection's visibility is set to viewersOnly then only such users will see the collection. * * Create a request for the method "collectionviewers.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param collectionId The ID of the collection. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String collectionId, java.lang.String userId, com.google.api.services.androidenterprise.model.User content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.User.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.collectionId = com.google.api.client.util.Preconditions.checkNotNull(collectionId, "Required parameter collectionId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the collection. */ @com.google.api.client.util.Key private java.lang.String collectionId; /** The ID of the collection. */ public java.lang.String getCollectionId() { return collectionId; } /** The ID of the collection. */ public Update setCollectionId(java.lang.String collectionId) { this.collectionId = collectionId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Update setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Devices collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Devices.List request = androidenterprise.devices().list(parameters ...)}
   * 
* * @return the resource collection */ public Devices devices() { return new Devices(); } /** * The "devices" collection of methods. */ public class Devices { /** * Retrieves the details of a device. * * Create a request for the method "devices.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The ID of the device. * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId) throws java.io.IOException { Get result = new Get(enterpriseId, userId, deviceId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}"; /** * Retrieves the details of a device. * * Create a request for the method "devices.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The ID of the device. * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.Device.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Get setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The ID of the device. */ public Get setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves whether a device's access to Google services is enabled or disabled. The device state * takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin * Console. Otherwise, the device state is ignored and all devices are allowed access to Google * services. This is only supported for Google-managed users. * * Create a request for the method "devices.getState". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GetState#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The ID of the device. * @return the request */ public GetState getState(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId) throws java.io.IOException { GetState result = new GetState(enterpriseId, userId, deviceId); initialize(result); return result; } public class GetState extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state"; /** * Retrieves whether a device's access to Google services is enabled or disabled. The device state * takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin * Console. Otherwise, the device state is ignored and all devices are allowed access to Google * services. This is only supported for Google-managed users. * * Create a request for the method "devices.getState". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GetState#execute()} method to invoke the remote * operation.

{@link * GetState#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The ID of the device. * @since 1.13 */ protected GetState(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.DeviceState.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public GetState setAlt(java.lang.String alt) { return (GetState) super.setAlt(alt); } @Override public GetState setFields(java.lang.String fields) { return (GetState) super.setFields(fields); } @Override public GetState setKey(java.lang.String key) { return (GetState) super.setKey(key); } @Override public GetState setOauthToken(java.lang.String oauthToken) { return (GetState) super.setOauthToken(oauthToken); } @Override public GetState setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetState) super.setPrettyPrint(prettyPrint); } @Override public GetState setQuotaUser(java.lang.String quotaUser) { return (GetState) super.setQuotaUser(quotaUser); } @Override public GetState setUserIp(java.lang.String userIp) { return (GetState) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GetState setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public GetState setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The ID of the device. */ public GetState setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } @Override public GetState set(String parameterName, Object value) { return (GetState) super.set(parameterName, value); } } /** * Retrieves the IDs of all of a user's devices. * * Create a request for the method "devices.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { List result = new List(enterpriseId, userId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices"; /** * Retrieves the IDs of all of a user's devices. * * Create a request for the method "devices.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.DevicesListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public List setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Sets whether a device's access to Google services is enabled or disabled. The device state takes * effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. * Otherwise, the device state is ignored and all devices are allowed access to Google services. * This is only supported for Google-managed users. * * Create a request for the method "devices.setState". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link SetState#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The ID of the device. * @param content the {@link com.google.api.services.androidenterprise.model.DeviceState} * @return the request */ public SetState setState(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, com.google.api.services.androidenterprise.model.DeviceState content) throws java.io.IOException { SetState result = new SetState(enterpriseId, userId, deviceId, content); initialize(result); return result; } public class SetState extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state"; /** * Sets whether a device's access to Google services is enabled or disabled. The device state * takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin * Console. Otherwise, the device state is ignored and all devices are allowed access to Google * services. This is only supported for Google-managed users. * * Create a request for the method "devices.setState". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link SetState#execute()} method to invoke the remote * operation.

{@link * SetState#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The ID of the device. * @param content the {@link com.google.api.services.androidenterprise.model.DeviceState} * @since 1.13 */ protected SetState(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, com.google.api.services.androidenterprise.model.DeviceState content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.DeviceState.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); } @Override public SetState setAlt(java.lang.String alt) { return (SetState) super.setAlt(alt); } @Override public SetState setFields(java.lang.String fields) { return (SetState) super.setFields(fields); } @Override public SetState setKey(java.lang.String key) { return (SetState) super.setKey(key); } @Override public SetState setOauthToken(java.lang.String oauthToken) { return (SetState) super.setOauthToken(oauthToken); } @Override public SetState setPrettyPrint(java.lang.Boolean prettyPrint) { return (SetState) super.setPrettyPrint(prettyPrint); } @Override public SetState setQuotaUser(java.lang.String quotaUser) { return (SetState) super.setQuotaUser(quotaUser); } @Override public SetState setUserIp(java.lang.String userIp) { return (SetState) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public SetState setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public SetState setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The ID of the device. */ public SetState setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } @Override public SetState set(String parameterName, Object value) { return (SetState) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Enterprises collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Enterprises.List request = androidenterprise.enterprises().list(parameters ...)}
   * 
* * @return the resource collection */ public Enterprises enterprises() { return new Enterprises(); } /** * The "enterprises" collection of methods. */ public class Enterprises { /** * Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent * subsequent calls from returning the same notifications. * * Create a request for the method "enterprises.acknowledgeNotificationSet". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link AcknowledgeNotificationSet#execute()} method to invoke the * remote operation. * * @return the request */ public AcknowledgeNotificationSet acknowledgeNotificationSet() throws java.io.IOException { AcknowledgeNotificationSet result = new AcknowledgeNotificationSet(); initialize(result); return result; } public class AcknowledgeNotificationSet extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/acknowledgeNotificationSet"; /** * Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent * subsequent calls from returning the same notifications. * * Create a request for the method "enterprises.acknowledgeNotificationSet". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link AcknowledgeNotificationSet#execute()} method to invoke * the remote operation.

{@link AcknowledgeNotificationSet#initialize(com.google.api.client.go * ogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance * immediately after invoking the constructor.

* * @since 1.13 */ protected AcknowledgeNotificationSet() { super(AndroidEnterprise.this, "POST", REST_PATH, null, Void.class); } @Override public AcknowledgeNotificationSet setAlt(java.lang.String alt) { return (AcknowledgeNotificationSet) super.setAlt(alt); } @Override public AcknowledgeNotificationSet setFields(java.lang.String fields) { return (AcknowledgeNotificationSet) super.setFields(fields); } @Override public AcknowledgeNotificationSet setKey(java.lang.String key) { return (AcknowledgeNotificationSet) super.setKey(key); } @Override public AcknowledgeNotificationSet setOauthToken(java.lang.String oauthToken) { return (AcknowledgeNotificationSet) super.setOauthToken(oauthToken); } @Override public AcknowledgeNotificationSet setPrettyPrint(java.lang.Boolean prettyPrint) { return (AcknowledgeNotificationSet) super.setPrettyPrint(prettyPrint); } @Override public AcknowledgeNotificationSet setQuotaUser(java.lang.String quotaUser) { return (AcknowledgeNotificationSet) super.setQuotaUser(quotaUser); } @Override public AcknowledgeNotificationSet setUserIp(java.lang.String userIp) { return (AcknowledgeNotificationSet) super.setUserIp(userIp); } /** * The notification set ID as returned by Enterprises.PullNotificationSet. This must be * provided. */ @com.google.api.client.util.Key private java.lang.String notificationSetId; /** The notification set ID as returned by Enterprises.PullNotificationSet. This must be provided. */ public java.lang.String getNotificationSetId() { return notificationSetId; } /** * The notification set ID as returned by Enterprises.PullNotificationSet. This must be * provided. */ public AcknowledgeNotificationSet setNotificationSetId(java.lang.String notificationSetId) { this.notificationSetId = notificationSetId; return this; } @Override public AcknowledgeNotificationSet set(String parameterName, Object value) { return (AcknowledgeNotificationSet) super.set(parameterName, value); } } /** * Completes the signup flow, by specifying the Completion token and Enterprise token. This request * must not be called multiple times for a given Enterprise Token. * * Create a request for the method "enterprises.completeSignup". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link CompleteSignup#execute()} method to invoke the remote * operation. * * @return the request */ public CompleteSignup completeSignup() throws java.io.IOException { CompleteSignup result = new CompleteSignup(); initialize(result); return result; } public class CompleteSignup extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/completeSignup"; /** * Completes the signup flow, by specifying the Completion token and Enterprise token. This * request must not be called multiple times for a given Enterprise Token. * * Create a request for the method "enterprises.completeSignup". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link CompleteSignup#execute()} method to invoke the remote * operation.

{@link CompleteSignup#initialize(com.google.api.client.googleapis.services.Abstr * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking * the constructor.

* * @since 1.13 */ protected CompleteSignup() { super(AndroidEnterprise.this, "POST", REST_PATH, null, com.google.api.services.androidenterprise.model.Enterprise.class); } @Override public CompleteSignup setAlt(java.lang.String alt) { return (CompleteSignup) super.setAlt(alt); } @Override public CompleteSignup setFields(java.lang.String fields) { return (CompleteSignup) super.setFields(fields); } @Override public CompleteSignup setKey(java.lang.String key) { return (CompleteSignup) super.setKey(key); } @Override public CompleteSignup setOauthToken(java.lang.String oauthToken) { return (CompleteSignup) super.setOauthToken(oauthToken); } @Override public CompleteSignup setPrettyPrint(java.lang.Boolean prettyPrint) { return (CompleteSignup) super.setPrettyPrint(prettyPrint); } @Override public CompleteSignup setQuotaUser(java.lang.String quotaUser) { return (CompleteSignup) super.setQuotaUser(quotaUser); } @Override public CompleteSignup setUserIp(java.lang.String userIp) { return (CompleteSignup) super.setUserIp(userIp); } /** The Completion token initially returned by GenerateSignupUrl. */ @com.google.api.client.util.Key private java.lang.String completionToken; /** The Completion token initially returned by GenerateSignupUrl. */ public java.lang.String getCompletionToken() { return completionToken; } /** The Completion token initially returned by GenerateSignupUrl. */ public CompleteSignup setCompletionToken(java.lang.String completionToken) { this.completionToken = completionToken; return this; } /** The Enterprise token appended to the Callback URL. */ @com.google.api.client.util.Key private java.lang.String enterpriseToken; /** The Enterprise token appended to the Callback URL. */ public java.lang.String getEnterpriseToken() { return enterpriseToken; } /** The Enterprise token appended to the Callback URL. */ public CompleteSignup setEnterpriseToken(java.lang.String enterpriseToken) { this.enterpriseToken = enterpriseToken; return this; } @Override public CompleteSignup set(String parameterName, Object value) { return (CompleteSignup) super.set(parameterName, value); } } /** * Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token * into the Play for Work javascript API. Each token may only be used to start one UI session. See * the javascript API documentation for further information. * * Create a request for the method "enterprises.createWebToken". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link CreateWebToken#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.AdministratorWebTokenSpec} * @return the request */ public CreateWebToken createWebToken(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.AdministratorWebTokenSpec content) throws java.io.IOException { CreateWebToken result = new CreateWebToken(enterpriseId, content); initialize(result); return result; } public class CreateWebToken extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/createWebToken"; /** * Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated * token into the Play for Work javascript API. Each token may only be used to start one UI * session. See the javascript API documentation for further information. * * Create a request for the method "enterprises.createWebToken". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link CreateWebToken#execute()} method to invoke the remote * operation.

{@link CreateWebToken#initialize(com.google.api.client.googleapis.services.Abstr * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking * the constructor.

* * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.AdministratorWebTokenSpec} * @since 1.13 */ protected CreateWebToken(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.AdministratorWebTokenSpec content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, com.google.api.services.androidenterprise.model.AdministratorWebToken.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public CreateWebToken setAlt(java.lang.String alt) { return (CreateWebToken) super.setAlt(alt); } @Override public CreateWebToken setFields(java.lang.String fields) { return (CreateWebToken) super.setFields(fields); } @Override public CreateWebToken setKey(java.lang.String key) { return (CreateWebToken) super.setKey(key); } @Override public CreateWebToken setOauthToken(java.lang.String oauthToken) { return (CreateWebToken) super.setOauthToken(oauthToken); } @Override public CreateWebToken setPrettyPrint(java.lang.Boolean prettyPrint) { return (CreateWebToken) super.setPrettyPrint(prettyPrint); } @Override public CreateWebToken setQuotaUser(java.lang.String quotaUser) { return (CreateWebToken) super.setQuotaUser(quotaUser); } @Override public CreateWebToken setUserIp(java.lang.String userIp) { return (CreateWebToken) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public CreateWebToken setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public CreateWebToken set(String parameterName, Object value) { return (CreateWebToken) super.set(parameterName, value); } } /** * Deletes the binding between the EMM and enterprise. This is now deprecated; use this to unenroll * customers that were previously enrolled with the 'insert' call, then enroll them again with the * 'enroll' call. * * Create a request for the method "enterprises.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public Delete delete(java.lang.String enterpriseId) throws java.io.IOException { Delete result = new Delete(enterpriseId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}"; /** * Deletes the binding between the EMM and enterprise. This is now deprecated; use this to * unenroll customers that were previously enrolled with the 'insert' call, then enroll them again * with the 'enroll' call. * * Create a request for the method "enterprises.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected Delete(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Enrolls an enterprise with the calling EMM. * * Create a request for the method "enterprises.enroll". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Enroll#execute()} method to invoke the remote operation. * * @param token The token provided by the enterprise to register the EMM. * @param content the {@link com.google.api.services.androidenterprise.model.Enterprise} * @return the request */ public Enroll enroll(java.lang.String token, com.google.api.services.androidenterprise.model.Enterprise content) throws java.io.IOException { Enroll result = new Enroll(token, content); initialize(result); return result; } public class Enroll extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/enroll"; /** * Enrolls an enterprise with the calling EMM. * * Create a request for the method "enterprises.enroll". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Enroll#execute()} method to invoke the remote * operation.

{@link * Enroll#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param token The token provided by the enterprise to register the EMM. * @param content the {@link com.google.api.services.androidenterprise.model.Enterprise} * @since 1.13 */ protected Enroll(java.lang.String token, com.google.api.services.androidenterprise.model.Enterprise content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, com.google.api.services.androidenterprise.model.Enterprise.class); this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); } @Override public Enroll setAlt(java.lang.String alt) { return (Enroll) super.setAlt(alt); } @Override public Enroll setFields(java.lang.String fields) { return (Enroll) super.setFields(fields); } @Override public Enroll setKey(java.lang.String key) { return (Enroll) super.setKey(key); } @Override public Enroll setOauthToken(java.lang.String oauthToken) { return (Enroll) super.setOauthToken(oauthToken); } @Override public Enroll setPrettyPrint(java.lang.Boolean prettyPrint) { return (Enroll) super.setPrettyPrint(prettyPrint); } @Override public Enroll setQuotaUser(java.lang.String quotaUser) { return (Enroll) super.setQuotaUser(quotaUser); } @Override public Enroll setUserIp(java.lang.String userIp) { return (Enroll) super.setUserIp(userIp); } /** The token provided by the enterprise to register the EMM. */ @com.google.api.client.util.Key private java.lang.String token; /** The token provided by the enterprise to register the EMM. */ public java.lang.String getToken() { return token; } /** The token provided by the enterprise to register the EMM. */ public Enroll setToken(java.lang.String token) { this.token = token; return this; } @Override public Enroll set(String parameterName, Object value) { return (Enroll) super.set(parameterName, value); } } /** * Generates a sign-up URL. * * Create a request for the method "enterprises.generateSignupUrl". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GenerateSignupUrl#execute()} method to invoke the remote * operation. * * @return the request */ public GenerateSignupUrl generateSignupUrl() throws java.io.IOException { GenerateSignupUrl result = new GenerateSignupUrl(); initialize(result); return result; } public class GenerateSignupUrl extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/signupUrl"; /** * Generates a sign-up URL. * * Create a request for the method "enterprises.generateSignupUrl". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GenerateSignupUrl#execute()} method to invoke the * remote operation.

{@link GenerateSignupUrl#initialize(com.google.api.client.googleapis.serv * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @since 1.13 */ protected GenerateSignupUrl() { super(AndroidEnterprise.this, "POST", REST_PATH, null, com.google.api.services.androidenterprise.model.SignupInfo.class); } @Override public GenerateSignupUrl setAlt(java.lang.String alt) { return (GenerateSignupUrl) super.setAlt(alt); } @Override public GenerateSignupUrl setFields(java.lang.String fields) { return (GenerateSignupUrl) super.setFields(fields); } @Override public GenerateSignupUrl setKey(java.lang.String key) { return (GenerateSignupUrl) super.setKey(key); } @Override public GenerateSignupUrl setOauthToken(java.lang.String oauthToken) { return (GenerateSignupUrl) super.setOauthToken(oauthToken); } @Override public GenerateSignupUrl setPrettyPrint(java.lang.Boolean prettyPrint) { return (GenerateSignupUrl) super.setPrettyPrint(prettyPrint); } @Override public GenerateSignupUrl setQuotaUser(java.lang.String quotaUser) { return (GenerateSignupUrl) super.setQuotaUser(quotaUser); } @Override public GenerateSignupUrl setUserIp(java.lang.String userIp) { return (GenerateSignupUrl) super.setUserIp(userIp); } /** * The callback URL to which the Admin will be redirected after successfully creating an * enterprise. Before redirecting there the system will add a single query parameter to this * URL named "enterpriseToken" which will contain an opaque token to be used for the * CompleteSignup request. Beware that this means that the URL will be parsed, the parameter * added and then a new URL formatted, i.e. there may be some minor formatting changes and, * more importantly, the URL must be well-formed so that it can be parsed. */ @com.google.api.client.util.Key private java.lang.String callbackUrl; /** The callback URL to which the Admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a single query parameter to this URL named "enterpriseToken" which will contain an opaque token to be used for the CompleteSignup request. Beware that this means that the URL will be parsed, the parameter added and then a new URL formatted, i.e. there may be some minor formatting changes and, more importantly, the URL must be well-formed so that it can be parsed. */ public java.lang.String getCallbackUrl() { return callbackUrl; } /** * The callback URL to which the Admin will be redirected after successfully creating an * enterprise. Before redirecting there the system will add a single query parameter to this * URL named "enterpriseToken" which will contain an opaque token to be used for the * CompleteSignup request. Beware that this means that the URL will be parsed, the parameter * added and then a new URL formatted, i.e. there may be some minor formatting changes and, * more importantly, the URL must be well-formed so that it can be parsed. */ public GenerateSignupUrl setCallbackUrl(java.lang.String callbackUrl) { this.callbackUrl = callbackUrl; return this; } @Override public GenerateSignupUrl set(String parameterName, Object value) { return (GenerateSignupUrl) super.set(parameterName, value); } } /** * Retrieves the name and domain of an enterprise. * * Create a request for the method "enterprises.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public Get get(java.lang.String enterpriseId) throws java.io.IOException { Get result = new Get(enterpriseId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}"; /** * Retrieves the name and domain of an enterprise. * * Create a request for the method "enterprises.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected Get(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.Enterprise.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Returns a service account and credentials. The service account can be bound to the enterprise by * calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted * if the enterprise is unbound. The credentials contain private key data and are not stored server- * side. * * This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, * and before Enterprises.SetAccount; at other times it will return an error. * * Subsequent calls after the first will generate a new, unique set of credentials, and invalidate * the previously generated credentials. * * Once the service account is bound to the enterprise, it can be managed using the * serviceAccountKeys resource. * * Create a request for the method "enterprises.getServiceAccount". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GetServiceAccount#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public GetServiceAccount getServiceAccount(java.lang.String enterpriseId) throws java.io.IOException { GetServiceAccount result = new GetServiceAccount(enterpriseId); initialize(result); return result; } public class GetServiceAccount extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/serviceAccount"; /** * Returns a service account and credentials. The service account can be bound to the enterprise * by calling setAccount. The service account is unique to this enterprise and EMM, and will be * deleted if the enterprise is unbound. The credentials contain private key data and are not * stored server-side. * * This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, * and before Enterprises.SetAccount; at other times it will return an error. * * Subsequent calls after the first will generate a new, unique set of credentials, and invalidate * the previously generated credentials. * * Once the service account is bound to the enterprise, it can be managed using the * serviceAccountKeys resource. * * Create a request for the method "enterprises.getServiceAccount". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GetServiceAccount#execute()} method to invoke the * remote operation.

{@link GetServiceAccount#initialize(com.google.api.client.googleapis.serv * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected GetServiceAccount(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ServiceAccount.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public GetServiceAccount setAlt(java.lang.String alt) { return (GetServiceAccount) super.setAlt(alt); } @Override public GetServiceAccount setFields(java.lang.String fields) { return (GetServiceAccount) super.setFields(fields); } @Override public GetServiceAccount setKey(java.lang.String key) { return (GetServiceAccount) super.setKey(key); } @Override public GetServiceAccount setOauthToken(java.lang.String oauthToken) { return (GetServiceAccount) super.setOauthToken(oauthToken); } @Override public GetServiceAccount setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetServiceAccount) super.setPrettyPrint(prettyPrint); } @Override public GetServiceAccount setQuotaUser(java.lang.String quotaUser) { return (GetServiceAccount) super.setQuotaUser(quotaUser); } @Override public GetServiceAccount setUserIp(java.lang.String userIp) { return (GetServiceAccount) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GetServiceAccount setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The type of credential to return with the service account. Required. */ @com.google.api.client.util.Key private java.lang.String keyType; /** The type of credential to return with the service account. Required. */ public java.lang.String getKeyType() { return keyType; } /** The type of credential to return with the service account. Required. */ public GetServiceAccount setKeyType(java.lang.String keyType) { this.keyType = keyType; return this; } @Override public GetServiceAccount set(String parameterName, Object value) { return (GetServiceAccount) super.set(parameterName, value); } } /** * Returns the store layout for the enterprise. If the store layout has not been set, or if the * store layout has no homepageId set, returns a NOT_FOUND error. * * Create a request for the method "enterprises.getStoreLayout". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GetStoreLayout#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public GetStoreLayout getStoreLayout(java.lang.String enterpriseId) throws java.io.IOException { GetStoreLayout result = new GetStoreLayout(enterpriseId); initialize(result); return result; } public class GetStoreLayout extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout"; /** * Returns the store layout for the enterprise. If the store layout has not been set, or if the * store layout has no homepageId set, returns a NOT_FOUND error. * * Create a request for the method "enterprises.getStoreLayout". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GetStoreLayout#execute()} method to invoke the remote * operation.

{@link GetStoreLayout#initialize(com.google.api.client.googleapis.services.Abstr * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking * the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected GetStoreLayout(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.StoreLayout.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public GetStoreLayout setAlt(java.lang.String alt) { return (GetStoreLayout) super.setAlt(alt); } @Override public GetStoreLayout setFields(java.lang.String fields) { return (GetStoreLayout) super.setFields(fields); } @Override public GetStoreLayout setKey(java.lang.String key) { return (GetStoreLayout) super.setKey(key); } @Override public GetStoreLayout setOauthToken(java.lang.String oauthToken) { return (GetStoreLayout) super.setOauthToken(oauthToken); } @Override public GetStoreLayout setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetStoreLayout) super.setPrettyPrint(prettyPrint); } @Override public GetStoreLayout setQuotaUser(java.lang.String quotaUser) { return (GetStoreLayout) super.setQuotaUser(quotaUser); } @Override public GetStoreLayout setUserIp(java.lang.String userIp) { return (GetStoreLayout) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GetStoreLayout setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public GetStoreLayout set(String parameterName, Object value) { return (GetStoreLayout) super.set(parameterName, value); } } /** * Establishes the binding between the EMM and an enterprise. This is now deprecated; use enroll * instead. * * Create a request for the method "enterprises.insert". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param token The token provided by the enterprise to register the EMM. * @param content the {@link com.google.api.services.androidenterprise.model.Enterprise} * @return the request */ public Insert insert(java.lang.String token, com.google.api.services.androidenterprise.model.Enterprise content) throws java.io.IOException { Insert result = new Insert(token, content); initialize(result); return result; } public class Insert extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises"; /** * Establishes the binding between the EMM and an enterprise. This is now deprecated; use enroll * instead. * * Create a request for the method "enterprises.insert". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Insert#execute()} method to invoke the remote * operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param token The token provided by the enterprise to register the EMM. * @param content the {@link com.google.api.services.androidenterprise.model.Enterprise} * @since 1.13 */ protected Insert(java.lang.String token, com.google.api.services.androidenterprise.model.Enterprise content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, com.google.api.services.androidenterprise.model.Enterprise.class); this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); checkRequiredParameter(content, "content"); checkRequiredParameter(content.getPrimaryDomain(), "Enterprise.getPrimaryDomain()"); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUserIp(java.lang.String userIp) { return (Insert) super.setUserIp(userIp); } /** The token provided by the enterprise to register the EMM. */ @com.google.api.client.util.Key private java.lang.String token; /** The token provided by the enterprise to register the EMM. */ public java.lang.String getToken() { return token; } /** The token provided by the enterprise to register the EMM. */ public Insert setToken(java.lang.String token) { this.token = token; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Looks up an enterprise by domain name. This is only supported for enterprises created via the * Google-initiated creation flow. Lookup of the id is not needed for enterprises created via the * EMM-initiated flow since the EMM learns the enterprise ID in the callback specified in the * Enterprises.generateSignupUrl call. * * Create a request for the method "enterprises.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param domain The exact primary domain name of the enterprise to look up. * @return the request */ public List list(java.lang.String domain) throws java.io.IOException { List result = new List(domain); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises"; /** * Looks up an enterprise by domain name. This is only supported for enterprises created via the * Google-initiated creation flow. Lookup of the id is not needed for enterprises created via the * EMM-initiated flow since the EMM learns the enterprise ID in the callback specified in the * Enterprises.generateSignupUrl call. * * Create a request for the method "enterprises.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param domain The exact primary domain name of the enterprise to look up. * @since 1.13 */ protected List(java.lang.String domain) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.EnterprisesListResponse.class); this.domain = com.google.api.client.util.Preconditions.checkNotNull(domain, "Required parameter domain must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The exact primary domain name of the enterprise to look up. */ @com.google.api.client.util.Key private java.lang.String domain; /** The exact primary domain name of the enterprise to look up. */ public java.lang.String getDomain() { return domain; } /** The exact primary domain name of the enterprise to look up. */ public List setDomain(java.lang.String domain) { this.domain = domain; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Pulls and returns a notification set for the enterprises associated with the service account * authenticated for the request. The notification set may be empty if no notification are pending. * A notification set returned needs to be acknowledged within 20 seconds by calling * Enterprises​.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that * are not acknowledged within the 20 seconds will eventually be included again in the response to * another PullNotificationSet request, and those that are never acknowledged will ultimately be * deleted according to the Google Cloud Platform Pub/Sub system policy. Multiple requests might be * performed concurrently to retrieve notifications, in which case the pending notifications (if * any) will be split among each caller, if any are pending. If no notifications are present, an * empty notification list is returned. Subsequent requests may return more notifications once they * become available. * * Create a request for the method "enterprises.pullNotificationSet". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link PullNotificationSet#execute()} method to invoke the remote * operation. * * @return the request */ public PullNotificationSet pullNotificationSet() throws java.io.IOException { PullNotificationSet result = new PullNotificationSet(); initialize(result); return result; } public class PullNotificationSet extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/pullNotificationSet"; /** * Pulls and returns a notification set for the enterprises associated with the service account * authenticated for the request. The notification set may be empty if no notification are * pending. A notification set returned needs to be acknowledged within 20 seconds by calling * Enterprises​.AcknowledgeNotificationSet, unless the notification set is empty. Notifications * that are not acknowledged within the 20 seconds will eventually be included again in the * response to another PullNotificationSet request, and those that are never acknowledged will * ultimately be deleted according to the Google Cloud Platform Pub/Sub system policy. Multiple * requests might be performed concurrently to retrieve notifications, in which case the pending * notifications (if any) will be split among each caller, if any are pending. If no notifications * are present, an empty notification list is returned. Subsequent requests may return more * notifications once they become available. * * Create a request for the method "enterprises.pullNotificationSet". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link PullNotificationSet#execute()} method to invoke the * remote operation.

{@link PullNotificationSet#initialize(com.google.api.client.googleapis.se * rvices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor.

* * @since 1.13 */ protected PullNotificationSet() { super(AndroidEnterprise.this, "POST", REST_PATH, null, com.google.api.services.androidenterprise.model.NotificationSet.class); } @Override public PullNotificationSet setAlt(java.lang.String alt) { return (PullNotificationSet) super.setAlt(alt); } @Override public PullNotificationSet setFields(java.lang.String fields) { return (PullNotificationSet) super.setFields(fields); } @Override public PullNotificationSet setKey(java.lang.String key) { return (PullNotificationSet) super.setKey(key); } @Override public PullNotificationSet setOauthToken(java.lang.String oauthToken) { return (PullNotificationSet) super.setOauthToken(oauthToken); } @Override public PullNotificationSet setPrettyPrint(java.lang.Boolean prettyPrint) { return (PullNotificationSet) super.setPrettyPrint(prettyPrint); } @Override public PullNotificationSet setQuotaUser(java.lang.String quotaUser) { return (PullNotificationSet) super.setQuotaUser(quotaUser); } @Override public PullNotificationSet setUserIp(java.lang.String userIp) { return (PullNotificationSet) super.setUserIp(userIp); } /** * The request mode for pulling notifications. Specifying waitForNotifications will cause the * request to block and wait until one or more notifications are present, or return an empty * notification list if no notifications are present after some time. Speciying * returnImmediately will cause the request to immediately return the pending notifications, * or an empty list if no notifications are present. If omitted, defaults to * waitForNotifications. */ @com.google.api.client.util.Key private java.lang.String requestMode; /** The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Speciying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications. */ public java.lang.String getRequestMode() { return requestMode; } /** * The request mode for pulling notifications. Specifying waitForNotifications will cause the * request to block and wait until one or more notifications are present, or return an empty * notification list if no notifications are present after some time. Speciying * returnImmediately will cause the request to immediately return the pending notifications, * or an empty list if no notifications are present. If omitted, defaults to * waitForNotifications. */ public PullNotificationSet setRequestMode(java.lang.String requestMode) { this.requestMode = requestMode; return this; } @Override public PullNotificationSet set(String parameterName, Object value) { return (PullNotificationSet) super.set(parameterName, value); } } /** * Sends a test push notification to validate the EMM integration with the Google Cloud Pub/Sub * service for this enterprise. * * Create a request for the method "enterprises.sendTestPushNotification". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link SendTestPushNotification#execute()} method to invoke the * remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public SendTestPushNotification sendTestPushNotification(java.lang.String enterpriseId) throws java.io.IOException { SendTestPushNotification result = new SendTestPushNotification(enterpriseId); initialize(result); return result; } public class SendTestPushNotification extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/sendTestPushNotification"; /** * Sends a test push notification to validate the EMM integration with the Google Cloud Pub/Sub * service for this enterprise. * * Create a request for the method "enterprises.sendTestPushNotification". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link SendTestPushNotification#execute()} method to invoke * the remote operation.

{@link SendTestPushNotification#initialize(com.google.api.client.goog * leapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance * immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected SendTestPushNotification(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "POST", REST_PATH, null, com.google.api.services.androidenterprise.model.EnterprisesSendTestPushNotificationResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public SendTestPushNotification setAlt(java.lang.String alt) { return (SendTestPushNotification) super.setAlt(alt); } @Override public SendTestPushNotification setFields(java.lang.String fields) { return (SendTestPushNotification) super.setFields(fields); } @Override public SendTestPushNotification setKey(java.lang.String key) { return (SendTestPushNotification) super.setKey(key); } @Override public SendTestPushNotification setOauthToken(java.lang.String oauthToken) { return (SendTestPushNotification) super.setOauthToken(oauthToken); } @Override public SendTestPushNotification setPrettyPrint(java.lang.Boolean prettyPrint) { return (SendTestPushNotification) super.setPrettyPrint(prettyPrint); } @Override public SendTestPushNotification setQuotaUser(java.lang.String quotaUser) { return (SendTestPushNotification) super.setQuotaUser(quotaUser); } @Override public SendTestPushNotification setUserIp(java.lang.String userIp) { return (SendTestPushNotification) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public SendTestPushNotification setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public SendTestPushNotification set(String parameterName, Object value) { return (SendTestPushNotification) super.set(parameterName, value); } } /** * Set the account that will be used to authenticate to the API as the enterprise. * * Create a request for the method "enterprises.setAccount". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link SetAccount#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.EnterpriseAccount} * @return the request */ public SetAccount setAccount(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.EnterpriseAccount content) throws java.io.IOException { SetAccount result = new SetAccount(enterpriseId, content); initialize(result); return result; } public class SetAccount extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/account"; /** * Set the account that will be used to authenticate to the API as the enterprise. * * Create a request for the method "enterprises.setAccount". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link SetAccount#execute()} method to invoke the remote * operation.

{@link * SetAccount#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.EnterpriseAccount} * @since 1.13 */ protected SetAccount(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.EnterpriseAccount content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.EnterpriseAccount.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public SetAccount setAlt(java.lang.String alt) { return (SetAccount) super.setAlt(alt); } @Override public SetAccount setFields(java.lang.String fields) { return (SetAccount) super.setFields(fields); } @Override public SetAccount setKey(java.lang.String key) { return (SetAccount) super.setKey(key); } @Override public SetAccount setOauthToken(java.lang.String oauthToken) { return (SetAccount) super.setOauthToken(oauthToken); } @Override public SetAccount setPrettyPrint(java.lang.Boolean prettyPrint) { return (SetAccount) super.setPrettyPrint(prettyPrint); } @Override public SetAccount setQuotaUser(java.lang.String quotaUser) { return (SetAccount) super.setQuotaUser(quotaUser); } @Override public SetAccount setUserIp(java.lang.String userIp) { return (SetAccount) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public SetAccount setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public SetAccount set(String parameterName, Object value) { return (SetAccount) super.set(parameterName, value); } } /** * Sets the store layout for the enterprise. * * Create a request for the method "enterprises.setStoreLayout". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link SetStoreLayout#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.StoreLayout} * @return the request */ public SetStoreLayout setStoreLayout(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.StoreLayout content) throws java.io.IOException { SetStoreLayout result = new SetStoreLayout(enterpriseId, content); initialize(result); return result; } public class SetStoreLayout extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout"; /** * Sets the store layout for the enterprise. * * Create a request for the method "enterprises.setStoreLayout". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link SetStoreLayout#execute()} method to invoke the remote * operation.

{@link SetStoreLayout#initialize(com.google.api.client.googleapis.services.Abstr * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking * the constructor.

* * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.StoreLayout} * @since 1.13 */ protected SetStoreLayout(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.StoreLayout content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.StoreLayout.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public SetStoreLayout setAlt(java.lang.String alt) { return (SetStoreLayout) super.setAlt(alt); } @Override public SetStoreLayout setFields(java.lang.String fields) { return (SetStoreLayout) super.setFields(fields); } @Override public SetStoreLayout setKey(java.lang.String key) { return (SetStoreLayout) super.setKey(key); } @Override public SetStoreLayout setOauthToken(java.lang.String oauthToken) { return (SetStoreLayout) super.setOauthToken(oauthToken); } @Override public SetStoreLayout setPrettyPrint(java.lang.Boolean prettyPrint) { return (SetStoreLayout) super.setPrettyPrint(prettyPrint); } @Override public SetStoreLayout setQuotaUser(java.lang.String quotaUser) { return (SetStoreLayout) super.setQuotaUser(quotaUser); } @Override public SetStoreLayout setUserIp(java.lang.String userIp) { return (SetStoreLayout) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public SetStoreLayout setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public SetStoreLayout set(String parameterName, Object value) { return (SetStoreLayout) super.set(parameterName, value); } } /** * Unenrolls an enterprise from the calling EMM. * * Create a request for the method "enterprises.unenroll". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Unenroll#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public Unenroll unenroll(java.lang.String enterpriseId) throws java.io.IOException { Unenroll result = new Unenroll(enterpriseId); initialize(result); return result; } public class Unenroll extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/unenroll"; /** * Unenrolls an enterprise from the calling EMM. * * Create a request for the method "enterprises.unenroll". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Unenroll#execute()} method to invoke the remote * operation.

{@link * Unenroll#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected Unenroll(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "POST", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public Unenroll setAlt(java.lang.String alt) { return (Unenroll) super.setAlt(alt); } @Override public Unenroll setFields(java.lang.String fields) { return (Unenroll) super.setFields(fields); } @Override public Unenroll setKey(java.lang.String key) { return (Unenroll) super.setKey(key); } @Override public Unenroll setOauthToken(java.lang.String oauthToken) { return (Unenroll) super.setOauthToken(oauthToken); } @Override public Unenroll setPrettyPrint(java.lang.Boolean prettyPrint) { return (Unenroll) super.setPrettyPrint(prettyPrint); } @Override public Unenroll setQuotaUser(java.lang.String quotaUser) { return (Unenroll) super.setQuotaUser(quotaUser); } @Override public Unenroll setUserIp(java.lang.String userIp) { return (Unenroll) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Unenroll setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public Unenroll set(String parameterName, Object value) { return (Unenroll) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Entitlements collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Entitlements.List request = androidenterprise.entitlements().list(parameters ...)}
   * 
* * @return the resource collection */ public Entitlements entitlements() { return new Entitlements(); } /** * The "entitlements" collection of methods. */ public class Entitlements { /** * Removes an entitlement to an app for a user and uninstalls it. * * Create a request for the method "entitlements.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String userId, java.lang.String entitlementId) throws java.io.IOException { Delete result = new Delete(enterpriseId, userId, entitlementId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}"; /** * Removes an entitlement to an app for a user and uninstalls it. * * Create a request for the method "entitlements.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String userId, java.lang.String entitlementId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.entitlementId = com.google.api.client.util.Preconditions.checkNotNull(entitlementId, "Required parameter entitlementId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Delete setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String entitlementId; /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getEntitlementId() { return entitlementId; } /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ public Delete setEntitlementId(java.lang.String entitlementId) { this.entitlementId = entitlementId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves details of an entitlement. * * Create a request for the method "entitlements.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String entitlementId) throws java.io.IOException { Get result = new Get(enterpriseId, userId, entitlementId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}"; /** * Retrieves details of an entitlement. * * Create a request for the method "entitlements.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String entitlementId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.Entitlement.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.entitlementId = com.google.api.client.util.Preconditions.checkNotNull(entitlementId, "Required parameter entitlementId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Get setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String entitlementId; /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getEntitlementId() { return entitlementId; } /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ public Get setEntitlementId(java.lang.String entitlementId) { this.entitlementId = entitlementId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List of all entitlements for the specified user. Only the ID is set. * * Create a request for the method "entitlements.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { List result = new List(enterpriseId, userId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/entitlements"; /** * List of all entitlements for the specified user. Only the ID is set. * * Create a request for the method "entitlements.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.EntitlementsListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public List setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Adds or updates an entitlement to an app for a user. This method supports patch semantics. * * Create a request for the method "entitlements.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.Entitlement} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String userId, java.lang.String entitlementId, com.google.api.services.androidenterprise.model.Entitlement content) throws java.io.IOException { Patch result = new Patch(enterpriseId, userId, entitlementId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}"; /** * Adds or updates an entitlement to an app for a user. This method supports patch semantics. * * Create a request for the method "entitlements.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.Entitlement} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String userId, java.lang.String entitlementId, com.google.api.services.androidenterprise.model.Entitlement content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.Entitlement.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.entitlementId = com.google.api.client.util.Preconditions.checkNotNull(entitlementId, "Required parameter entitlementId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Patch setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String entitlementId; /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getEntitlementId() { return entitlementId; } /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ public Patch setEntitlementId(java.lang.String entitlementId) { this.entitlementId = entitlementId; return this; } /** * Set to true to also install the product on all the user's devices where possible. Failure * to install on one or more devices will not prevent this operation from returning * successfully, as long as the entitlement was successfully assigned to the user. */ @com.google.api.client.util.Key private java.lang.Boolean install; /** Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user. */ public java.lang.Boolean getInstall() { return install; } /** * Set to true to also install the product on all the user's devices where possible. Failure * to install on one or more devices will not prevent this operation from returning * successfully, as long as the entitlement was successfully assigned to the user. */ public Patch setInstall(java.lang.Boolean install) { this.install = install; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Adds or updates an entitlement to an app for a user. * * Create a request for the method "entitlements.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.Entitlement} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String userId, java.lang.String entitlementId, com.google.api.services.androidenterprise.model.Entitlement content) throws java.io.IOException { Update result = new Update(enterpriseId, userId, entitlementId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}"; /** * Adds or updates an entitlement to an app for a user. * * Create a request for the method "entitlements.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.Entitlement} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String userId, java.lang.String entitlementId, com.google.api.services.androidenterprise.model.Entitlement content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.Entitlement.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.entitlementId = com.google.api.client.util.Preconditions.checkNotNull(entitlementId, "Required parameter entitlementId must be specified."); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Update setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String entitlementId; /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getEntitlementId() { return entitlementId; } /** The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". */ public Update setEntitlementId(java.lang.String entitlementId) { this.entitlementId = entitlementId; return this; } /** * Set to true to also install the product on all the user's devices where possible. Failure * to install on one or more devices will not prevent this operation from returning * successfully, as long as the entitlement was successfully assigned to the user. */ @com.google.api.client.util.Key private java.lang.Boolean install; /** Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user. */ public java.lang.Boolean getInstall() { return install; } /** * Set to true to also install the product on all the user's devices where possible. Failure * to install on one or more devices will not prevent this operation from returning * successfully, as long as the entitlement was successfully assigned to the user. */ public Update setInstall(java.lang.Boolean install) { this.install = install; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Grouplicenses collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Grouplicenses.List request = androidenterprise.grouplicenses().list(parameters ...)}
   * 
* * @return the resource collection */ public Grouplicenses grouplicenses() { return new Grouplicenses(); } /** * The "grouplicenses" collection of methods. */ public class Grouplicenses { /** * Retrieves details of an enterprise's group license for a product. * * Create a request for the method "grouplicenses.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param groupLicenseId The ID of the product the group license is for, e.g. "app:com.google.android.gm". * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String groupLicenseId) throws java.io.IOException { Get result = new Get(enterpriseId, groupLicenseId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}"; /** * Retrieves details of an enterprise's group license for a product. * * Create a request for the method "grouplicenses.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param groupLicenseId The ID of the product the group license is for, e.g. "app:com.google.android.gm". * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String groupLicenseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.GroupLicense.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.groupLicenseId = com.google.api.client.util.Preconditions.checkNotNull(groupLicenseId, "Required parameter groupLicenseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product the group license is for, e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String groupLicenseId; /** The ID of the product the group license is for, e.g. "app:com.google.android.gm". */ public java.lang.String getGroupLicenseId() { return groupLicenseId; } /** The ID of the product the group license is for, e.g. "app:com.google.android.gm". */ public Get setGroupLicenseId(java.lang.String groupLicenseId) { this.groupLicenseId = groupLicenseId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves IDs of all products for which the enterprise has a group license. * * Create a request for the method "grouplicenses.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public List list(java.lang.String enterpriseId) throws java.io.IOException { List result = new List(enterpriseId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/groupLicenses"; /** * Retrieves IDs of all products for which the enterprise has a group license. * * Create a request for the method "grouplicenses.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected List(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.GroupLicensesListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Grouplicenseusers collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Grouplicenseusers.List request = androidenterprise.grouplicenseusers().list(parameters ...)}
   * 
* * @return the resource collection */ public Grouplicenseusers grouplicenseusers() { return new Grouplicenseusers(); } /** * The "grouplicenseusers" collection of methods. */ public class Grouplicenseusers { /** * Retrieves the IDs of the users who have been granted entitlements under the license. * * Create a request for the method "grouplicenseusers.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param groupLicenseId The ID of the product the group license is for, e.g. "app:com.google.android.gm". * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String groupLicenseId) throws java.io.IOException { List result = new List(enterpriseId, groupLicenseId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users"; /** * Retrieves the IDs of the users who have been granted entitlements under the license. * * Create a request for the method "grouplicenseusers.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param groupLicenseId The ID of the product the group license is for, e.g. "app:com.google.android.gm". * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String groupLicenseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.GroupLicenseUsersListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.groupLicenseId = com.google.api.client.util.Preconditions.checkNotNull(groupLicenseId, "Required parameter groupLicenseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product the group license is for, e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String groupLicenseId; /** The ID of the product the group license is for, e.g. "app:com.google.android.gm". */ public java.lang.String getGroupLicenseId() { return groupLicenseId; } /** The ID of the product the group license is for, e.g. "app:com.google.android.gm". */ public List setGroupLicenseId(java.lang.String groupLicenseId) { this.groupLicenseId = groupLicenseId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Installs collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Installs.List request = androidenterprise.installs().list(parameters ...)}
   * 
* * @return the resource collection */ public Installs installs() { return new Installs(); } /** * The "installs" collection of methods. */ public class Installs { /** * Requests to remove an app from a device. A call to get or list will still show the app as * installed on the device until it is actually removed. * * Create a request for the method "installs.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String installId) throws java.io.IOException { Delete result = new Delete(enterpriseId, userId, deviceId, installId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}"; /** * Requests to remove an app from a device. A call to get or list will still show the app as * installed on the device until it is actually removed. * * Create a request for the method "installs.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String installId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); this.installId = com.google.api.client.util.Preconditions.checkNotNull(installId, "Required parameter installId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Delete setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public Delete setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String installId; /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ public java.lang.String getInstallId() { return installId; } /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ public Delete setInstallId(java.lang.String installId) { this.installId = installId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves details of an installation of an app on a device. * * Create a request for the method "installs.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String installId) throws java.io.IOException { Get result = new Get(enterpriseId, userId, deviceId, installId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}"; /** * Retrieves details of an installation of an app on a device. * * Create a request for the method "installs.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String installId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.Install.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); this.installId = com.google.api.client.util.Preconditions.checkNotNull(installId, "Required parameter installId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Get setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public Get setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String installId; /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ public java.lang.String getInstallId() { return installId; } /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ public Get setInstallId(java.lang.String installId) { this.installId = installId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves the details of all apps installed on the specified device. * * Create a request for the method "installs.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId) throws java.io.IOException { List result = new List(enterpriseId, userId, deviceId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs"; /** * Retrieves the details of all apps installed on the specified device. * * Create a request for the method "installs.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.InstallsListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public List setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public List setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Requests to install the latest version of an app to a device. If the app is already installed * then it is updated to the latest version if necessary. This method supports patch semantics. * * Create a request for the method "installs.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.Install} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String installId, com.google.api.services.androidenterprise.model.Install content) throws java.io.IOException { Patch result = new Patch(enterpriseId, userId, deviceId, installId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}"; /** * Requests to install the latest version of an app to a device. If the app is already installed * then it is updated to the latest version if necessary. This method supports patch semantics. * * Create a request for the method "installs.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.Install} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String installId, com.google.api.services.androidenterprise.model.Install content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.Install.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); this.installId = com.google.api.client.util.Preconditions.checkNotNull(installId, "Required parameter installId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Patch setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public Patch setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String installId; /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ public java.lang.String getInstallId() { return installId; } /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ public Patch setInstallId(java.lang.String installId) { this.installId = installId; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Requests to install the latest version of an app to a device. If the app is already installed * then it is updated to the latest version if necessary. * * Create a request for the method "installs.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.Install} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String installId, com.google.api.services.androidenterprise.model.Install content) throws java.io.IOException { Update result = new Update(enterpriseId, userId, deviceId, installId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}"; /** * Requests to install the latest version of an app to a device. If the app is already installed * then it is updated to the latest version if necessary. * * Create a request for the method "installs.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.Install} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String installId, com.google.api.services.androidenterprise.model.Install content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.Install.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); this.installId = com.google.api.client.util.Preconditions.checkNotNull(installId, "Required parameter installId must be specified."); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Update setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public Update setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String installId; /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ public java.lang.String getInstallId() { return installId; } /** The ID of the product represented by the install, e.g. "app:com.google.android.gm". */ public Update setInstallId(java.lang.String installId) { this.installId = installId; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Managedconfigurationsfordevice collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Managedconfigurationsfordevice.List request = androidenterprise.managedconfigurationsfordevice().list(parameters ...)}
   * 
* * @return the resource collection */ public Managedconfigurationsfordevice managedconfigurationsfordevice() { return new Managedconfigurationsfordevice(); } /** * The "managedconfigurationsfordevice" collection of methods. */ public class Managedconfigurationsfordevice { /** * Removes a per-device managed configuration for an app for the specified device. * * Create a request for the method "managedconfigurationsfordevice.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String managedConfigurationForDeviceId) throws java.io.IOException { Delete result = new Delete(enterpriseId, userId, deviceId, managedConfigurationForDeviceId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}"; /** * Removes a per-device managed configuration for an app for the specified device. * * Create a request for the method "managedconfigurationsfordevice.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String managedConfigurationForDeviceId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); this.managedConfigurationForDeviceId = com.google.api.client.util.Preconditions.checkNotNull(managedConfigurationForDeviceId, "Required parameter managedConfigurationForDeviceId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Delete setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public Delete setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String managedConfigurationForDeviceId; /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getManagedConfigurationForDeviceId() { return managedConfigurationForDeviceId; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public Delete setManagedConfigurationForDeviceId(java.lang.String managedConfigurationForDeviceId) { this.managedConfigurationForDeviceId = managedConfigurationForDeviceId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves details of a per-device managed configuration. * * Create a request for the method "managedconfigurationsfordevice.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String managedConfigurationForDeviceId) throws java.io.IOException { Get result = new Get(enterpriseId, userId, deviceId, managedConfigurationForDeviceId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}"; /** * Retrieves details of a per-device managed configuration. * * Create a request for the method "managedconfigurationsfordevice.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String managedConfigurationForDeviceId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ManagedConfiguration.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); this.managedConfigurationForDeviceId = com.google.api.client.util.Preconditions.checkNotNull(managedConfigurationForDeviceId, "Required parameter managedConfigurationForDeviceId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Get setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public Get setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String managedConfigurationForDeviceId; /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getManagedConfigurationForDeviceId() { return managedConfigurationForDeviceId; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public Get setManagedConfigurationForDeviceId(java.lang.String managedConfigurationForDeviceId) { this.managedConfigurationForDeviceId = managedConfigurationForDeviceId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists all the per-device managed configurations for the specified device. Only the ID is set. * * Create a request for the method "managedconfigurationsfordevice.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId) throws java.io.IOException { List result = new List(enterpriseId, userId, deviceId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice"; /** * Lists all the per-device managed configurations for the specified device. Only the ID is set. * * Create a request for the method "managedconfigurationsfordevice.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ManagedConfigurationsForDeviceListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public List setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public List setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Adds or updates a per-device managed configuration for an app for the specified device. This * method supports patch semantics. * * Create a request for the method "managedconfigurationsfordevice.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.ManagedConfiguration} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String managedConfigurationForDeviceId, com.google.api.services.androidenterprise.model.ManagedConfiguration content) throws java.io.IOException { Patch result = new Patch(enterpriseId, userId, deviceId, managedConfigurationForDeviceId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}"; /** * Adds or updates a per-device managed configuration for an app for the specified device. This * method supports patch semantics. * * Create a request for the method "managedconfigurationsfordevice.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.ManagedConfiguration} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String managedConfigurationForDeviceId, com.google.api.services.androidenterprise.model.ManagedConfiguration content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.ManagedConfiguration.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); this.managedConfigurationForDeviceId = com.google.api.client.util.Preconditions.checkNotNull(managedConfigurationForDeviceId, "Required parameter managedConfigurationForDeviceId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Patch setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public Patch setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String managedConfigurationForDeviceId; /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getManagedConfigurationForDeviceId() { return managedConfigurationForDeviceId; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public Patch setManagedConfigurationForDeviceId(java.lang.String managedConfigurationForDeviceId) { this.managedConfigurationForDeviceId = managedConfigurationForDeviceId; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Adds or updates a per-device managed configuration for an app for the specified device. * * Create a request for the method "managedconfigurationsfordevice.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.ManagedConfiguration} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String managedConfigurationForDeviceId, com.google.api.services.androidenterprise.model.ManagedConfiguration content) throws java.io.IOException { Update result = new Update(enterpriseId, userId, deviceId, managedConfigurationForDeviceId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}"; /** * Adds or updates a per-device managed configuration for an app for the specified device. * * Create a request for the method "managedconfigurationsfordevice.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param deviceId The Android ID of the device. * @param managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.ManagedConfiguration} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String userId, java.lang.String deviceId, java.lang.String managedConfigurationForDeviceId, com.google.api.services.androidenterprise.model.ManagedConfiguration content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.ManagedConfiguration.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.deviceId = com.google.api.client.util.Preconditions.checkNotNull(deviceId, "Required parameter deviceId must be specified."); this.managedConfigurationForDeviceId = com.google.api.client.util.Preconditions.checkNotNull(managedConfigurationForDeviceId, "Required parameter managedConfigurationForDeviceId must be specified."); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Update setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The Android ID of the device. */ @com.google.api.client.util.Key private java.lang.String deviceId; /** The Android ID of the device. */ public java.lang.String getDeviceId() { return deviceId; } /** The Android ID of the device. */ public Update setDeviceId(java.lang.String deviceId) { this.deviceId = deviceId; return this; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String managedConfigurationForDeviceId; /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getManagedConfigurationForDeviceId() { return managedConfigurationForDeviceId; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public Update setManagedConfigurationForDeviceId(java.lang.String managedConfigurationForDeviceId) { this.managedConfigurationForDeviceId = managedConfigurationForDeviceId; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Managedconfigurationsforuser collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Managedconfigurationsforuser.List request = androidenterprise.managedconfigurationsforuser().list(parameters ...)}
   * 
* * @return the resource collection */ public Managedconfigurationsforuser managedconfigurationsforuser() { return new Managedconfigurationsforuser(); } /** * The "managedconfigurationsforuser" collection of methods. */ public class Managedconfigurationsforuser { /** * Removes a per-user managed configuration for an app for the specified user. * * Create a request for the method "managedconfigurationsforuser.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String userId, java.lang.String managedConfigurationForUserId) throws java.io.IOException { Delete result = new Delete(enterpriseId, userId, managedConfigurationForUserId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}"; /** * Removes a per-user managed configuration for an app for the specified user. * * Create a request for the method "managedconfigurationsforuser.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String userId, java.lang.String managedConfigurationForUserId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.managedConfigurationForUserId = com.google.api.client.util.Preconditions.checkNotNull(managedConfigurationForUserId, "Required parameter managedConfigurationForUserId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Delete setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String managedConfigurationForUserId; /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getManagedConfigurationForUserId() { return managedConfigurationForUserId; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public Delete setManagedConfigurationForUserId(java.lang.String managedConfigurationForUserId) { this.managedConfigurationForUserId = managedConfigurationForUserId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves details of a per-user managed configuration for an app for the specified user. * * Create a request for the method "managedconfigurationsforuser.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String managedConfigurationForUserId) throws java.io.IOException { Get result = new Get(enterpriseId, userId, managedConfigurationForUserId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}"; /** * Retrieves details of a per-user managed configuration for an app for the specified user. * * Create a request for the method "managedconfigurationsforuser.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String userId, java.lang.String managedConfigurationForUserId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ManagedConfiguration.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.managedConfigurationForUserId = com.google.api.client.util.Preconditions.checkNotNull(managedConfigurationForUserId, "Required parameter managedConfigurationForUserId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Get setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String managedConfigurationForUserId; /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getManagedConfigurationForUserId() { return managedConfigurationForUserId; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public Get setManagedConfigurationForUserId(java.lang.String managedConfigurationForUserId) { this.managedConfigurationForUserId = managedConfigurationForUserId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists all the per-user managed configurations for the specified user. Only the ID is set. * * Create a request for the method "managedconfigurationsforuser.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { List result = new List(enterpriseId, userId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser"; /** * Lists all the per-user managed configurations for the specified user. Only the ID is set. * * Create a request for the method "managedconfigurationsforuser.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ManagedConfigurationsForUserListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public List setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Adds or updates a per-user managed configuration for an app for the specified user. This method * supports patch semantics. * * Create a request for the method "managedconfigurationsforuser.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.ManagedConfiguration} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String userId, java.lang.String managedConfigurationForUserId, com.google.api.services.androidenterprise.model.ManagedConfiguration content) throws java.io.IOException { Patch result = new Patch(enterpriseId, userId, managedConfigurationForUserId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}"; /** * Adds or updates a per-user managed configuration for an app for the specified user. This method * supports patch semantics. * * Create a request for the method "managedconfigurationsforuser.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.ManagedConfiguration} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String userId, java.lang.String managedConfigurationForUserId, com.google.api.services.androidenterprise.model.ManagedConfiguration content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.ManagedConfiguration.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.managedConfigurationForUserId = com.google.api.client.util.Preconditions.checkNotNull(managedConfigurationForUserId, "Required parameter managedConfigurationForUserId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Patch setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String managedConfigurationForUserId; /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getManagedConfigurationForUserId() { return managedConfigurationForUserId; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public Patch setManagedConfigurationForUserId(java.lang.String managedConfigurationForUserId) { this.managedConfigurationForUserId = managedConfigurationForUserId; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Adds or updates a per-user managed configuration for an app for the specified user. * * Create a request for the method "managedconfigurationsforuser.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.ManagedConfiguration} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String userId, java.lang.String managedConfigurationForUserId, com.google.api.services.androidenterprise.model.ManagedConfiguration content) throws java.io.IOException { Update result = new Update(enterpriseId, userId, managedConfigurationForUserId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}"; /** * Adds or updates a per-user managed configuration for an app for the specified user. * * Create a request for the method "managedconfigurationsforuser.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param content the {@link com.google.api.services.androidenterprise.model.ManagedConfiguration} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String userId, java.lang.String managedConfigurationForUserId, com.google.api.services.androidenterprise.model.ManagedConfiguration content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.ManagedConfiguration.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); this.managedConfigurationForUserId = com.google.api.client.util.Preconditions.checkNotNull(managedConfigurationForUserId, "Required parameter managedConfigurationForUserId must be specified."); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Update setUserId(java.lang.String userId) { this.userId = userId; return this; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String managedConfigurationForUserId; /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public java.lang.String getManagedConfigurationForUserId() { return managedConfigurationForUserId; } /** The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". */ public Update setManagedConfigurationForUserId(java.lang.String managedConfigurationForUserId) { this.managedConfigurationForUserId = managedConfigurationForUserId; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Permissions collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Permissions.List request = androidenterprise.permissions().list(parameters ...)}
   * 
* * @return the resource collection */ public Permissions permissions() { return new Permissions(); } /** * The "permissions" collection of methods. */ public class Permissions { /** * Retrieves details of an Android app permission for display to an enterprise admin. * * Create a request for the method "permissions.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param permissionId The ID of the permission. * @return the request */ public Get get(java.lang.String permissionId) throws java.io.IOException { Get result = new Get(permissionId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "permissions/{permissionId}"; /** * Retrieves details of an Android app permission for display to an enterprise admin. * * Create a request for the method "permissions.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param permissionId The ID of the permission. * @since 1.13 */ protected Get(java.lang.String permissionId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.Permission.class); this.permissionId = com.google.api.client.util.Preconditions.checkNotNull(permissionId, "Required parameter permissionId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the permission. */ @com.google.api.client.util.Key private java.lang.String permissionId; /** The ID of the permission. */ public java.lang.String getPermissionId() { return permissionId; } /** The ID of the permission. */ public Get setPermissionId(java.lang.String permissionId) { this.permissionId = permissionId; return this; } /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de") */ @com.google.api.client.util.Key private java.lang.String language; /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de") */ public java.lang.String getLanguage() { return language; } /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de") */ public Get setLanguage(java.lang.String language) { this.language = language; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Products collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Products.List request = androidenterprise.products().list(parameters ...)}
   * 
* * @return the resource collection */ public Products products() { return new Products(); } /** * The "products" collection of methods. */ public class Products { /** * Approves the specified product and the relevant app permissions, if any. The maximum number of * products that you can approve per enterprise customer is 1,000. * * To learn how to use Google Play for Work to design and create a store layout to display approved * products to your users, see Store Layout Design. * * Create a request for the method "products.approve". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Approve#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @param content the {@link com.google.api.services.androidenterprise.model.ProductsApproveRequest} * @return the request */ public Approve approve(java.lang.String enterpriseId, java.lang.String productId, com.google.api.services.androidenterprise.model.ProductsApproveRequest content) throws java.io.IOException { Approve result = new Approve(enterpriseId, productId, content); initialize(result); return result; } public class Approve extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/products/{productId}/approve"; /** * Approves the specified product and the relevant app permissions, if any. The maximum number of * products that you can approve per enterprise customer is 1,000. * * To learn how to use Google Play for Work to design and create a store layout to display * approved products to your users, see Store Layout Design. * * Create a request for the method "products.approve". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Approve#execute()} method to invoke the remote * operation.

{@link * Approve#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @param content the {@link com.google.api.services.androidenterprise.model.ProductsApproveRequest} * @since 1.13 */ protected Approve(java.lang.String enterpriseId, java.lang.String productId, com.google.api.services.androidenterprise.model.ProductsApproveRequest content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public Approve setAlt(java.lang.String alt) { return (Approve) super.setAlt(alt); } @Override public Approve setFields(java.lang.String fields) { return (Approve) super.setFields(fields); } @Override public Approve setKey(java.lang.String key) { return (Approve) super.setKey(key); } @Override public Approve setOauthToken(java.lang.String oauthToken) { return (Approve) super.setOauthToken(oauthToken); } @Override public Approve setPrettyPrint(java.lang.Boolean prettyPrint) { return (Approve) super.setPrettyPrint(prettyPrint); } @Override public Approve setQuotaUser(java.lang.String quotaUser) { return (Approve) super.setQuotaUser(quotaUser); } @Override public Approve setUserIp(java.lang.String userIp) { return (Approve) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Approve setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The ID of the product. */ public java.lang.String getProductId() { return productId; } /** The ID of the product. */ public Approve setProductId(java.lang.String productId) { this.productId = productId; return this; } @Override public Approve set(String parameterName, Object value) { return (Approve) super.set(parameterName, value); } } /** * Generates a URL that can be rendered in an iframe to display the permissions (if any) of a * product. An enterprise admin must view these permissions and accept them on behalf of their * organization in order to approve that product. * * Admins should accept the displayed permissions by interacting with a separate UI element in the * EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl * property in a Products.approve call to approve the product. This URL can only be used to display * permissions for up to 1 day. * * Create a request for the method "products.generateApprovalUrl". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GenerateApprovalUrl#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @return the request */ public GenerateApprovalUrl generateApprovalUrl(java.lang.String enterpriseId, java.lang.String productId) throws java.io.IOException { GenerateApprovalUrl result = new GenerateApprovalUrl(enterpriseId, productId); initialize(result); return result; } public class GenerateApprovalUrl extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl"; /** * Generates a URL that can be rendered in an iframe to display the permissions (if any) of a * product. An enterprise admin must view these permissions and accept them on behalf of their * organization in order to approve that product. * * Admins should accept the displayed permissions by interacting with a separate UI element in the * EMM console, which in turn should trigger the use of this URL as the * approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This * URL can only be used to display permissions for up to 1 day. * * Create a request for the method "products.generateApprovalUrl". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GenerateApprovalUrl#execute()} method to invoke the * remote operation.

{@link GenerateApprovalUrl#initialize(com.google.api.client.googleapis.se * rvices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @since 1.13 */ protected GenerateApprovalUrl(java.lang.String enterpriseId, java.lang.String productId) { super(AndroidEnterprise.this, "POST", REST_PATH, null, com.google.api.services.androidenterprise.model.ProductsGenerateApprovalUrlResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public GenerateApprovalUrl setAlt(java.lang.String alt) { return (GenerateApprovalUrl) super.setAlt(alt); } @Override public GenerateApprovalUrl setFields(java.lang.String fields) { return (GenerateApprovalUrl) super.setFields(fields); } @Override public GenerateApprovalUrl setKey(java.lang.String key) { return (GenerateApprovalUrl) super.setKey(key); } @Override public GenerateApprovalUrl setOauthToken(java.lang.String oauthToken) { return (GenerateApprovalUrl) super.setOauthToken(oauthToken); } @Override public GenerateApprovalUrl setPrettyPrint(java.lang.Boolean prettyPrint) { return (GenerateApprovalUrl) super.setPrettyPrint(prettyPrint); } @Override public GenerateApprovalUrl setQuotaUser(java.lang.String quotaUser) { return (GenerateApprovalUrl) super.setQuotaUser(quotaUser); } @Override public GenerateApprovalUrl setUserIp(java.lang.String userIp) { return (GenerateApprovalUrl) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GenerateApprovalUrl setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The ID of the product. */ public java.lang.String getProductId() { return productId; } /** The ID of the product. */ public GenerateApprovalUrl setProductId(java.lang.String productId) { this.productId = productId; return this; } /** * The BCP 47 language code used for permission names and descriptions in the returned iframe, * for instance "en-US". */ @com.google.api.client.util.Key private java.lang.String languageCode; /** The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance "en-US". */ public java.lang.String getLanguageCode() { return languageCode; } /** * The BCP 47 language code used for permission names and descriptions in the returned iframe, * for instance "en-US". */ public GenerateApprovalUrl setLanguageCode(java.lang.String languageCode) { this.languageCode = languageCode; return this; } @Override public GenerateApprovalUrl set(String parameterName, Object value) { return (GenerateApprovalUrl) super.set(parameterName, value); } } /** * Retrieves details of a product for display to an enterprise admin. * * Create a request for the method "products.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product, e.g. "app:com.google.android.gm". * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String productId) throws java.io.IOException { Get result = new Get(enterpriseId, productId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/products/{productId}"; /** * Retrieves details of a product for display to an enterprise admin. * * Create a request for the method "products.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product, e.g. "app:com.google.android.gm". * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String productId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.Product.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product, e.g. "app:com.google.android.gm". */ @com.google.api.client.util.Key private java.lang.String productId; /** The ID of the product, e.g. "app:com.google.android.gm". */ public java.lang.String getProductId() { return productId; } /** The ID of the product, e.g. "app:com.google.android.gm". */ public Get setProductId(java.lang.String productId) { this.productId = productId; return this; } /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). */ @com.google.api.client.util.Key private java.lang.String language; /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). */ public java.lang.String getLanguage() { return language; } /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). */ public Get setLanguage(java.lang.String language) { this.language = language; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves the schema that defines the configurable properties for this product. All products have * a schema, but this schema may be empty if no managed configurations have been defined. This * schema can be used to populate a UI that allows an administrator to configure the product. To * apply a managed configuration based on the schema obtained using this API, see Managed * Configurations through Play. * * Create a request for the method "products.getAppRestrictionsSchema". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GetAppRestrictionsSchema#execute()} method to invoke the * remote operation. * * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @return the request */ public GetAppRestrictionsSchema getAppRestrictionsSchema(java.lang.String enterpriseId, java.lang.String productId) throws java.io.IOException { GetAppRestrictionsSchema result = new GetAppRestrictionsSchema(enterpriseId, productId); initialize(result); return result; } public class GetAppRestrictionsSchema extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema"; /** * Retrieves the schema that defines the configurable properties for this product. All products * have a schema, but this schema may be empty if no managed configurations have been defined. * This schema can be used to populate a UI that allows an administrator to configure the product. * To apply a managed configuration based on the schema obtained using this API, see Managed * Configurations through Play. * * Create a request for the method "products.getAppRestrictionsSchema". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GetAppRestrictionsSchema#execute()} method to invoke * the remote operation.

{@link GetAppRestrictionsSchema#initialize(com.google.api.client.goog * leapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance * immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @since 1.13 */ protected GetAppRestrictionsSchema(java.lang.String enterpriseId, java.lang.String productId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.AppRestrictionsSchema.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public GetAppRestrictionsSchema setAlt(java.lang.String alt) { return (GetAppRestrictionsSchema) super.setAlt(alt); } @Override public GetAppRestrictionsSchema setFields(java.lang.String fields) { return (GetAppRestrictionsSchema) super.setFields(fields); } @Override public GetAppRestrictionsSchema setKey(java.lang.String key) { return (GetAppRestrictionsSchema) super.setKey(key); } @Override public GetAppRestrictionsSchema setOauthToken(java.lang.String oauthToken) { return (GetAppRestrictionsSchema) super.setOauthToken(oauthToken); } @Override public GetAppRestrictionsSchema setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetAppRestrictionsSchema) super.setPrettyPrint(prettyPrint); } @Override public GetAppRestrictionsSchema setQuotaUser(java.lang.String quotaUser) { return (GetAppRestrictionsSchema) super.setQuotaUser(quotaUser); } @Override public GetAppRestrictionsSchema setUserIp(java.lang.String userIp) { return (GetAppRestrictionsSchema) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GetAppRestrictionsSchema setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The ID of the product. */ public java.lang.String getProductId() { return productId; } /** The ID of the product. */ public GetAppRestrictionsSchema setProductId(java.lang.String productId) { this.productId = productId; return this; } /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). */ @com.google.api.client.util.Key private java.lang.String language; /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). */ public java.lang.String getLanguage() { return language; } /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). */ public GetAppRestrictionsSchema setLanguage(java.lang.String language) { this.language = language; return this; } @Override public GetAppRestrictionsSchema set(String parameterName, Object value) { return (GetAppRestrictionsSchema) super.set(parameterName, value); } } /** * Retrieves the Android app permissions required by this app. * * Create a request for the method "products.getPermissions". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GetPermissions#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @return the request */ public GetPermissions getPermissions(java.lang.String enterpriseId, java.lang.String productId) throws java.io.IOException { GetPermissions result = new GetPermissions(enterpriseId, productId); initialize(result); return result; } public class GetPermissions extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/products/{productId}/permissions"; /** * Retrieves the Android app permissions required by this app. * * Create a request for the method "products.getPermissions". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GetPermissions#execute()} method to invoke the remote * operation.

{@link GetPermissions#initialize(com.google.api.client.googleapis.services.Abstr * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking * the constructor.

* * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @since 1.13 */ protected GetPermissions(java.lang.String enterpriseId, java.lang.String productId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ProductPermissions.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public GetPermissions setAlt(java.lang.String alt) { return (GetPermissions) super.setAlt(alt); } @Override public GetPermissions setFields(java.lang.String fields) { return (GetPermissions) super.setFields(fields); } @Override public GetPermissions setKey(java.lang.String key) { return (GetPermissions) super.setKey(key); } @Override public GetPermissions setOauthToken(java.lang.String oauthToken) { return (GetPermissions) super.setOauthToken(oauthToken); } @Override public GetPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetPermissions) super.setPrettyPrint(prettyPrint); } @Override public GetPermissions setQuotaUser(java.lang.String quotaUser) { return (GetPermissions) super.setQuotaUser(quotaUser); } @Override public GetPermissions setUserIp(java.lang.String userIp) { return (GetPermissions) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GetPermissions setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The ID of the product. */ public java.lang.String getProductId() { return productId; } /** The ID of the product. */ public GetPermissions setProductId(java.lang.String productId) { this.productId = productId; return this; } @Override public GetPermissions set(String parameterName, Object value) { return (GetPermissions) super.set(parameterName, value); } } /** * Finds approved products that match a query, or all approved products if there is no query. * * Create a request for the method "products.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public List list(java.lang.String enterpriseId) throws java.io.IOException { List result = new List(enterpriseId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/products"; /** * Finds approved products that match a query, or all approved products if there is no query. * * Create a request for the method "products.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected List(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ProductsListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** * Specifies whether to search among all products (false) or among only products that have * been approved (true). Only "true" is supported, and should be specified. */ @com.google.api.client.util.Key private java.lang.Boolean approved; /** Specifies whether to search among all products (false) or among only products that have been approved (true). Only "true" is supported, and should be specified. */ public java.lang.Boolean getApproved() { return approved; } /** * Specifies whether to search among all products (false) or among only products that have * been approved (true). Only "true" is supported, and should be specified. */ public List setApproved(java.lang.Boolean approved) { this.approved = approved; return this; } /** * The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results are returned * in the language best matching the preferred language. */ @com.google.api.client.util.Key private java.lang.String language; /** The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results are returned in the language best matching the preferred language. */ public java.lang.String getLanguage() { return language; } /** * The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results are returned * in the language best matching the preferred language. */ public List setLanguage(java.lang.String language) { this.language = language; return this; } /** * Specifies the maximum number of products that can be returned per request. If not * specified, uses a default value of 100, which is also the maximum retrievable within a * single response. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** Specifies the maximum number of products that can be returned per request. If not specified, uses a default value of 100, which is also the maximum retrievable within a single response. */ public java.lang.Long getMaxResults() { return maxResults; } /** * Specifies the maximum number of products that can be returned per request. If not * specified, uses a default value of 100, which is also the maximum retrievable within a * single response. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** * The search query as typed in the Google Play Store search box. If omitted, all approved * apps will be returned (using the pagination parameters), including apps that are not * available in the store (e.g. unpublished apps). */ @com.google.api.client.util.Key private java.lang.String query; /** The search query as typed in the Google Play Store search box. If omitted, all approved apps will be returned (using the pagination parameters), including apps that are not available in the store (e.g. unpublished apps). */ public java.lang.String getQuery() { return query; } /** * The search query as typed in the Google Play Store search box. If omitted, all approved * apps will be returned (using the pagination parameters), including apps that are not * available in the store (e.g. unpublished apps). */ public List setQuery(java.lang.String query) { this.query = query; return this; } /** * A pagination token is contained in a request’s response when there are more products. The * token can be used in a subsequent request to obtain more products, and so forth. This * parameter cannot be used in the initial request. */ @com.google.api.client.util.Key private java.lang.String token; /** A pagination token is contained in a request’s response when there are more products. The token can be used in a subsequent request to obtain more products, and so forth. This parameter cannot be used in the initial request. */ public java.lang.String getToken() { return token; } /** * A pagination token is contained in a request’s response when there are more products. The * token can be used in a subsequent request to obtain more products, and so forth. This * parameter cannot be used in the initial request. */ public List setToken(java.lang.String token) { this.token = token; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Unapproves the specified product (and the relevant app permissions, if any) * * Create a request for the method "products.unapprove". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Unapprove#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @return the request */ public Unapprove unapprove(java.lang.String enterpriseId, java.lang.String productId) throws java.io.IOException { Unapprove result = new Unapprove(enterpriseId, productId); initialize(result); return result; } public class Unapprove extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/products/{productId}/unapprove"; /** * Unapproves the specified product (and the relevant app permissions, if any) * * Create a request for the method "products.unapprove". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Unapprove#execute()} method to invoke the remote * operation.

{@link * Unapprove#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @since 1.13 */ protected Unapprove(java.lang.String enterpriseId, java.lang.String productId) { super(AndroidEnterprise.this, "POST", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public Unapprove setAlt(java.lang.String alt) { return (Unapprove) super.setAlt(alt); } @Override public Unapprove setFields(java.lang.String fields) { return (Unapprove) super.setFields(fields); } @Override public Unapprove setKey(java.lang.String key) { return (Unapprove) super.setKey(key); } @Override public Unapprove setOauthToken(java.lang.String oauthToken) { return (Unapprove) super.setOauthToken(oauthToken); } @Override public Unapprove setPrettyPrint(java.lang.Boolean prettyPrint) { return (Unapprove) super.setPrettyPrint(prettyPrint); } @Override public Unapprove setQuotaUser(java.lang.String quotaUser) { return (Unapprove) super.setQuotaUser(quotaUser); } @Override public Unapprove setUserIp(java.lang.String userIp) { return (Unapprove) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Unapprove setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The ID of the product. */ public java.lang.String getProductId() { return productId; } /** The ID of the product. */ public Unapprove setProductId(java.lang.String productId) { this.productId = productId; return this; } @Override public Unapprove set(String parameterName, Object value) { return (Unapprove) super.set(parameterName, value); } } /** * This method has been deprecated. To programmatically approve applications, you must use the * iframe mechanism via the generateApprovalUrl and approve methods of the Products resource. For * more information, see the Play EMM API usage requirements. * * The updatePermissions method (deprecated) updates the set of Android app permissions for this app * that have been accepted by the enterprise. * * Create a request for the method "products.updatePermissions". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link UpdatePermissions#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @param content the {@link com.google.api.services.androidenterprise.model.ProductPermissions} * @return the request */ public UpdatePermissions updatePermissions(java.lang.String enterpriseId, java.lang.String productId, com.google.api.services.androidenterprise.model.ProductPermissions content) throws java.io.IOException { UpdatePermissions result = new UpdatePermissions(enterpriseId, productId, content); initialize(result); return result; } public class UpdatePermissions extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/products/{productId}/permissions"; /** * This method has been deprecated. To programmatically approve applications, you must use the * iframe mechanism via the generateApprovalUrl and approve methods of the Products resource. * For more information, see the Play EMM API usage requirements. * * The updatePermissions method (deprecated) updates the set of Android app permissions for this * app that have been accepted by the enterprise. * * Create a request for the method "products.updatePermissions". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link UpdatePermissions#execute()} method to invoke the * remote operation.

{@link UpdatePermissions#initialize(com.google.api.client.googleapis.serv * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param productId The ID of the product. * @param content the {@link com.google.api.services.androidenterprise.model.ProductPermissions} * @since 1.13 */ protected UpdatePermissions(java.lang.String enterpriseId, java.lang.String productId, com.google.api.services.androidenterprise.model.ProductPermissions content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.ProductPermissions.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public UpdatePermissions setAlt(java.lang.String alt) { return (UpdatePermissions) super.setAlt(alt); } @Override public UpdatePermissions setFields(java.lang.String fields) { return (UpdatePermissions) super.setFields(fields); } @Override public UpdatePermissions setKey(java.lang.String key) { return (UpdatePermissions) super.setKey(key); } @Override public UpdatePermissions setOauthToken(java.lang.String oauthToken) { return (UpdatePermissions) super.setOauthToken(oauthToken); } @Override public UpdatePermissions setPrettyPrint(java.lang.Boolean prettyPrint) { return (UpdatePermissions) super.setPrettyPrint(prettyPrint); } @Override public UpdatePermissions setQuotaUser(java.lang.String quotaUser) { return (UpdatePermissions) super.setQuotaUser(quotaUser); } @Override public UpdatePermissions setUserIp(java.lang.String userIp) { return (UpdatePermissions) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public UpdatePermissions setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The ID of the product. */ public java.lang.String getProductId() { return productId; } /** The ID of the product. */ public UpdatePermissions setProductId(java.lang.String productId) { this.productId = productId; return this; } @Override public UpdatePermissions set(String parameterName, Object value) { return (UpdatePermissions) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Serviceaccountkeys collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Serviceaccountkeys.List request = androidenterprise.serviceaccountkeys().list(parameters ...)}
   * 
* * @return the resource collection */ public Serviceaccountkeys serviceaccountkeys() { return new Serviceaccountkeys(); } /** * The "serviceaccountkeys" collection of methods. */ public class Serviceaccountkeys { /** * Removes and invalidates the specified credentials for the service account associated with this * enterprise. The calling service account must have been retrieved by calling * Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling * Enterprises.SetAccount. * * Create a request for the method "serviceaccountkeys.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param keyId The ID of the key. * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String keyId) throws java.io.IOException { Delete result = new Delete(enterpriseId, keyId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/serviceAccountKeys/{keyId}"; /** * Removes and invalidates the specified credentials for the service account associated with this * enterprise. The calling service account must have been retrieved by calling * Enterprises.GetServiceAccount and must have been set as the enterprise service account by * calling Enterprises.SetAccount. * * Create a request for the method "serviceaccountkeys.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param keyId The ID of the key. * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String keyId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.keyId = com.google.api.client.util.Preconditions.checkNotNull(keyId, "Required parameter keyId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the key. */ @com.google.api.client.util.Key private java.lang.String keyId; /** The ID of the key. */ public java.lang.String getKeyId() { return keyId; } /** The ID of the key. */ public Delete setKeyId(java.lang.String keyId) { this.keyId = keyId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Generates new credentials for the service account associated with this enterprise. The calling * service account must have been retrieved by calling Enterprises.GetServiceAccount and must have * been set as the enterprise service account by calling Enterprises.SetAccount. * * Only the type of the key should be populated in the resource to be inserted. * * Create a request for the method "serviceaccountkeys.insert". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.ServiceAccountKey} * @return the request */ public Insert insert(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.ServiceAccountKey content) throws java.io.IOException { Insert result = new Insert(enterpriseId, content); initialize(result); return result; } public class Insert extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/serviceAccountKeys"; /** * Generates new credentials for the service account associated with this enterprise. The calling * service account must have been retrieved by calling Enterprises.GetServiceAccount and must have * been set as the enterprise service account by calling Enterprises.SetAccount. * * Only the type of the key should be populated in the resource to be inserted. * * Create a request for the method "serviceaccountkeys.insert". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Insert#execute()} method to invoke the remote * operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.ServiceAccountKey} * @since 1.13 */ protected Insert(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.ServiceAccountKey content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, com.google.api.services.androidenterprise.model.ServiceAccountKey.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); checkRequiredParameter(content, "content"); checkRequiredParameter(content.getType(), "ServiceAccountKey.getType()"); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUserIp(java.lang.String userIp) { return (Insert) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Insert setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Lists all active credentials for the service account associated with this enterprise. Only the ID * and key type are returned. The calling service account must have been retrieved by calling * Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling * Enterprises.SetAccount. * * Create a request for the method "serviceaccountkeys.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public List list(java.lang.String enterpriseId) throws java.io.IOException { List result = new List(enterpriseId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/serviceAccountKeys"; /** * Lists all active credentials for the service account associated with this enterprise. Only the * ID and key type are returned. The calling service account must have been retrieved by calling * Enterprises.GetServiceAccount and must have been set as the enterprise service account by * calling Enterprises.SetAccount. * * Create a request for the method "serviceaccountkeys.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected List(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ServiceAccountKeysListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Storelayoutclusters collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Storelayoutclusters.List request = androidenterprise.storelayoutclusters().list(parameters ...)}
   * 
* * @return the resource collection */ public Storelayoutclusters storelayoutclusters() { return new Storelayoutclusters(); } /** * The "storelayoutclusters" collection of methods. */ public class Storelayoutclusters { /** * Deletes a cluster. * * Create a request for the method "storelayoutclusters.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param clusterId The ID of the cluster. * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String pageId, java.lang.String clusterId) throws java.io.IOException { Delete result = new Delete(enterpriseId, pageId, clusterId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}"; /** * Deletes a cluster. * * Create a request for the method "storelayoutclusters.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param clusterId The ID of the cluster. * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String pageId, java.lang.String clusterId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); this.clusterId = com.google.api.client.util.Preconditions.checkNotNull(clusterId, "Required parameter clusterId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Delete setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } /** The ID of the cluster. */ @com.google.api.client.util.Key private java.lang.String clusterId; /** The ID of the cluster. */ public java.lang.String getClusterId() { return clusterId; } /** The ID of the cluster. */ public Delete setClusterId(java.lang.String clusterId) { this.clusterId = clusterId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves details of a cluster. * * Create a request for the method "storelayoutclusters.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param clusterId The ID of the cluster. * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String pageId, java.lang.String clusterId) throws java.io.IOException { Get result = new Get(enterpriseId, pageId, clusterId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}"; /** * Retrieves details of a cluster. * * Create a request for the method "storelayoutclusters.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param clusterId The ID of the cluster. * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String pageId, java.lang.String clusterId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.StoreCluster.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); this.clusterId = com.google.api.client.util.Preconditions.checkNotNull(clusterId, "Required parameter clusterId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Get setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } /** The ID of the cluster. */ @com.google.api.client.util.Key private java.lang.String clusterId; /** The ID of the cluster. */ public java.lang.String getClusterId() { return clusterId; } /** The ID of the cluster. */ public Get setClusterId(java.lang.String clusterId) { this.clusterId = clusterId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Inserts a new cluster in a page. * * Create a request for the method "storelayoutclusters.insert". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param content the {@link com.google.api.services.androidenterprise.model.StoreCluster} * @return the request */ public Insert insert(java.lang.String enterpriseId, java.lang.String pageId, com.google.api.services.androidenterprise.model.StoreCluster content) throws java.io.IOException { Insert result = new Insert(enterpriseId, pageId, content); initialize(result); return result; } public class Insert extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters"; /** * Inserts a new cluster in a page. * * Create a request for the method "storelayoutclusters.insert". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Insert#execute()} method to invoke the remote * operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param content the {@link com.google.api.services.androidenterprise.model.StoreCluster} * @since 1.13 */ protected Insert(java.lang.String enterpriseId, java.lang.String pageId, com.google.api.services.androidenterprise.model.StoreCluster content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, com.google.api.services.androidenterprise.model.StoreCluster.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUserIp(java.lang.String userIp) { return (Insert) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Insert setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Insert setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Retrieves the details of all clusters on the specified page. * * Create a request for the method "storelayoutclusters.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String pageId) throws java.io.IOException { List result = new List(enterpriseId, pageId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters"; /** * Retrieves the details of all clusters on the specified page. * * Create a request for the method "storelayoutclusters.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String pageId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.StoreLayoutClustersListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public List setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates a cluster. This method supports patch semantics. * * Create a request for the method "storelayoutclusters.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param clusterId The ID of the cluster. * @param content the {@link com.google.api.services.androidenterprise.model.StoreCluster} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String pageId, java.lang.String clusterId, com.google.api.services.androidenterprise.model.StoreCluster content) throws java.io.IOException { Patch result = new Patch(enterpriseId, pageId, clusterId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}"; /** * Updates a cluster. This method supports patch semantics. * * Create a request for the method "storelayoutclusters.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param clusterId The ID of the cluster. * @param content the {@link com.google.api.services.androidenterprise.model.StoreCluster} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String pageId, java.lang.String clusterId, com.google.api.services.androidenterprise.model.StoreCluster content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.StoreCluster.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); this.clusterId = com.google.api.client.util.Preconditions.checkNotNull(clusterId, "Required parameter clusterId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Patch setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } /** The ID of the cluster. */ @com.google.api.client.util.Key private java.lang.String clusterId; /** The ID of the cluster. */ public java.lang.String getClusterId() { return clusterId; } /** The ID of the cluster. */ public Patch setClusterId(java.lang.String clusterId) { this.clusterId = clusterId; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Updates a cluster. * * Create a request for the method "storelayoutclusters.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param clusterId The ID of the cluster. * @param content the {@link com.google.api.services.androidenterprise.model.StoreCluster} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String pageId, java.lang.String clusterId, com.google.api.services.androidenterprise.model.StoreCluster content) throws java.io.IOException { Update result = new Update(enterpriseId, pageId, clusterId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}"; /** * Updates a cluster. * * Create a request for the method "storelayoutclusters.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param clusterId The ID of the cluster. * @param content the {@link com.google.api.services.androidenterprise.model.StoreCluster} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String pageId, java.lang.String clusterId, com.google.api.services.androidenterprise.model.StoreCluster content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.StoreCluster.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); this.clusterId = com.google.api.client.util.Preconditions.checkNotNull(clusterId, "Required parameter clusterId must be specified."); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Update setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } /** The ID of the cluster. */ @com.google.api.client.util.Key private java.lang.String clusterId; /** The ID of the cluster. */ public java.lang.String getClusterId() { return clusterId; } /** The ID of the cluster. */ public Update setClusterId(java.lang.String clusterId) { this.clusterId = clusterId; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Storelayoutpages collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Storelayoutpages.List request = androidenterprise.storelayoutpages().list(parameters ...)}
   * 
* * @return the resource collection */ public Storelayoutpages storelayoutpages() { return new Storelayoutpages(); } /** * The "storelayoutpages" collection of methods. */ public class Storelayoutpages { /** * Deletes a store page. * * Create a request for the method "storelayoutpages.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String pageId) throws java.io.IOException { Delete result = new Delete(enterpriseId, pageId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}"; /** * Deletes a store page. * * Create a request for the method "storelayoutpages.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String pageId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Delete setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves details of a store page. * * Create a request for the method "storelayoutpages.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String pageId) throws java.io.IOException { Get result = new Get(enterpriseId, pageId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}"; /** * Retrieves details of a store page. * * Create a request for the method "storelayoutpages.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String pageId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.StorePage.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Get setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Inserts a new store page. * * Create a request for the method "storelayoutpages.insert". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.StorePage} * @return the request */ public Insert insert(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.StorePage content) throws java.io.IOException { Insert result = new Insert(enterpriseId, content); initialize(result); return result; } public class Insert extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages"; /** * Inserts a new store page. * * Create a request for the method "storelayoutpages.insert". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Insert#execute()} method to invoke the remote * operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.StorePage} * @since 1.13 */ protected Insert(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.StorePage content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, com.google.api.services.androidenterprise.model.StorePage.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUserIp(java.lang.String userIp) { return (Insert) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Insert setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Retrieves the details of all pages in the store. * * Create a request for the method "storelayoutpages.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @return the request */ public List list(java.lang.String enterpriseId) throws java.io.IOException { List result = new List(enterpriseId); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages"; /** * Retrieves the details of all pages in the store. * * Create a request for the method "storelayoutpages.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @since 1.13 */ protected List(java.lang.String enterpriseId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.StoreLayoutPagesListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates the content of a store page. This method supports patch semantics. * * Create a request for the method "storelayoutpages.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param content the {@link com.google.api.services.androidenterprise.model.StorePage} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String pageId, com.google.api.services.androidenterprise.model.StorePage content) throws java.io.IOException { Patch result = new Patch(enterpriseId, pageId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}"; /** * Updates the content of a store page. This method supports patch semantics. * * Create a request for the method "storelayoutpages.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param content the {@link com.google.api.services.androidenterprise.model.StorePage} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String pageId, com.google.api.services.androidenterprise.model.StorePage content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.StorePage.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Patch setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Updates the content of a store page. * * Create a request for the method "storelayoutpages.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param content the {@link com.google.api.services.androidenterprise.model.StorePage} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String pageId, com.google.api.services.androidenterprise.model.StorePage content) throws java.io.IOException { Update result = new Update(enterpriseId, pageId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/storeLayout/pages/{pageId}"; /** * Updates the content of a store page. * * Create a request for the method "storelayoutpages.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param pageId The ID of the page. * @param content the {@link com.google.api.services.androidenterprise.model.StorePage} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String pageId, com.google.api.services.androidenterprise.model.StorePage content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.StorePage.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.pageId = com.google.api.client.util.Preconditions.checkNotNull(pageId, "Required parameter pageId must be specified."); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the page. */ @com.google.api.client.util.Key private java.lang.String pageId; /** The ID of the page. */ public java.lang.String getPageId() { return pageId; } /** The ID of the page. */ public Update setPageId(java.lang.String pageId) { this.pageId = pageId; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Users collection. * *

The typical use is:

*
   *   {@code AndroidEnterprise androidenterprise = new AndroidEnterprise(...);}
   *   {@code AndroidEnterprise.Users.List request = androidenterprise.users().list(parameters ...)}
   * 
* * @return the resource collection */ public Users users() { return new Users(); } /** * The "users" collection of methods. */ public class Users { /** * Deleted an EMM-managed user. * * Create a request for the method "users.delete". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public Delete delete(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { Delete result = new Delete(enterpriseId, userId); initialize(result); return result; } public class Delete extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}"; /** * Deleted an EMM-managed user. * * Create a request for the method "users.delete". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected Delete(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Delete setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Delete setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Generates an authentication token which the device policy client can use to provision the given * EMM-managed user account on a device. The generated token is single-use and expires after a few * minutes. * * This call only works with EMM-managed accounts. * * Create a request for the method "users.generateAuthenticationToken". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GenerateAuthenticationToken#execute()} method to invoke the * remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public GenerateAuthenticationToken generateAuthenticationToken(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { GenerateAuthenticationToken result = new GenerateAuthenticationToken(enterpriseId, userId); initialize(result); return result; } public class GenerateAuthenticationToken extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/authenticationToken"; /** * Generates an authentication token which the device policy client can use to provision the given * EMM-managed user account on a device. The generated token is single-use and expires after a few * minutes. * * This call only works with EMM-managed accounts. * * Create a request for the method "users.generateAuthenticationToken". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GenerateAuthenticationToken#execute()} method to * invoke the remote operation.

{@link GenerateAuthenticationToken#initialize(com.google.api.c * lient.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this * instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected GenerateAuthenticationToken(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "POST", REST_PATH, null, com.google.api.services.androidenterprise.model.AuthenticationToken.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public GenerateAuthenticationToken setAlt(java.lang.String alt) { return (GenerateAuthenticationToken) super.setAlt(alt); } @Override public GenerateAuthenticationToken setFields(java.lang.String fields) { return (GenerateAuthenticationToken) super.setFields(fields); } @Override public GenerateAuthenticationToken setKey(java.lang.String key) { return (GenerateAuthenticationToken) super.setKey(key); } @Override public GenerateAuthenticationToken setOauthToken(java.lang.String oauthToken) { return (GenerateAuthenticationToken) super.setOauthToken(oauthToken); } @Override public GenerateAuthenticationToken setPrettyPrint(java.lang.Boolean prettyPrint) { return (GenerateAuthenticationToken) super.setPrettyPrint(prettyPrint); } @Override public GenerateAuthenticationToken setQuotaUser(java.lang.String quotaUser) { return (GenerateAuthenticationToken) super.setQuotaUser(quotaUser); } @Override public GenerateAuthenticationToken setUserIp(java.lang.String userIp) { return (GenerateAuthenticationToken) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GenerateAuthenticationToken setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public GenerateAuthenticationToken setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public GenerateAuthenticationToken set(String parameterName, Object value) { return (GenerateAuthenticationToken) super.set(parameterName, value); } } /** * Generates a token (activation code) to allow this user to configure their work account in the * Android Setup Wizard. Revokes any previously generated token. * * This call only works with Google managed accounts. * * Create a request for the method "users.generateToken". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GenerateToken#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public GenerateToken generateToken(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { GenerateToken result = new GenerateToken(enterpriseId, userId); initialize(result); return result; } public class GenerateToken extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/token"; /** * Generates a token (activation code) to allow this user to configure their work account in the * Android Setup Wizard. Revokes any previously generated token. * * This call only works with Google managed accounts. * * Create a request for the method "users.generateToken". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GenerateToken#execute()} method to invoke the remote * operation.

{@link GenerateToken#initialize(com.google.api.client.googleapis.services.Abstra * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking * the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected GenerateToken(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "POST", REST_PATH, null, com.google.api.services.androidenterprise.model.UserToken.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public GenerateToken setAlt(java.lang.String alt) { return (GenerateToken) super.setAlt(alt); } @Override public GenerateToken setFields(java.lang.String fields) { return (GenerateToken) super.setFields(fields); } @Override public GenerateToken setKey(java.lang.String key) { return (GenerateToken) super.setKey(key); } @Override public GenerateToken setOauthToken(java.lang.String oauthToken) { return (GenerateToken) super.setOauthToken(oauthToken); } @Override public GenerateToken setPrettyPrint(java.lang.Boolean prettyPrint) { return (GenerateToken) super.setPrettyPrint(prettyPrint); } @Override public GenerateToken setQuotaUser(java.lang.String quotaUser) { return (GenerateToken) super.setQuotaUser(quotaUser); } @Override public GenerateToken setUserIp(java.lang.String userIp) { return (GenerateToken) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GenerateToken setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public GenerateToken setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public GenerateToken set(String parameterName, Object value) { return (GenerateToken) super.set(parameterName, value); } } /** * Retrieves a user's details. * * Create a request for the method "users.get". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public Get get(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { Get result = new Get(enterpriseId, userId); initialize(result); return result; } public class Get extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}"; /** * Retrieves a user's details. * * Create a request for the method "users.get". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected Get(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.User.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Get setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Get setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves the set of products a user is entitled to access. * * Create a request for the method "users.getAvailableProductSet". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link GetAvailableProductSet#execute()} method to invoke the * remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public GetAvailableProductSet getAvailableProductSet(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { GetAvailableProductSet result = new GetAvailableProductSet(enterpriseId, userId); initialize(result); return result; } public class GetAvailableProductSet extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/availableProductSet"; /** * Retrieves the set of products a user is entitled to access. * * Create a request for the method "users.getAvailableProductSet". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link GetAvailableProductSet#execute()} method to invoke the * remote operation.

{@link GetAvailableProductSet#initialize(com.google.api.client.googleapis * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected GetAvailableProductSet(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.ProductSet.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public GetAvailableProductSet setAlt(java.lang.String alt) { return (GetAvailableProductSet) super.setAlt(alt); } @Override public GetAvailableProductSet setFields(java.lang.String fields) { return (GetAvailableProductSet) super.setFields(fields); } @Override public GetAvailableProductSet setKey(java.lang.String key) { return (GetAvailableProductSet) super.setKey(key); } @Override public GetAvailableProductSet setOauthToken(java.lang.String oauthToken) { return (GetAvailableProductSet) super.setOauthToken(oauthToken); } @Override public GetAvailableProductSet setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetAvailableProductSet) super.setPrettyPrint(prettyPrint); } @Override public GetAvailableProductSet setQuotaUser(java.lang.String quotaUser) { return (GetAvailableProductSet) super.setQuotaUser(quotaUser); } @Override public GetAvailableProductSet setUserIp(java.lang.String userIp) { return (GetAvailableProductSet) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public GetAvailableProductSet setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public GetAvailableProductSet setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public GetAvailableProductSet set(String parameterName, Object value) { return (GetAvailableProductSet) super.set(parameterName, value); } } /** * Creates a new EMM-managed user. * * The Users resource passed in the body of the request should include an accountIdentifier and an * accountType. If a corresponding user already exists with the same account identifier, the user * will be updated with the resource. In this case only the displayName field can be changed. * * Create a request for the method "users.insert". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @return the request */ public Insert insert(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.User content) throws java.io.IOException { Insert result = new Insert(enterpriseId, content); initialize(result); return result; } public class Insert extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users"; /** * Creates a new EMM-managed user. * * The Users resource passed in the body of the request should include an accountIdentifier and an * accountType. If a corresponding user already exists with the same account identifier, the user * will be updated with the resource. In this case only the displayName field can be changed. * * Create a request for the method "users.insert". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Insert#execute()} method to invoke the remote * operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @since 1.13 */ protected Insert(java.lang.String enterpriseId, com.google.api.services.androidenterprise.model.User content) { super(AndroidEnterprise.this, "POST", REST_PATH, content, com.google.api.services.androidenterprise.model.User.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); checkRequiredParameter(content, "content"); checkRequiredParameter(content.getAccountIdentifier(), "User.getAccountIdentifier()"); checkRequiredParameter(content, "content"); checkRequiredParameter(content.getAccountType(), "User.getAccountType()"); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUserIp(java.lang.String userIp) { return (Insert) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Insert setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Looks up a user by primary email address. This is only supported for Google-managed users. Lookup * of the id is not needed for EMM-managed users because the id is already returned in the result of * the Users.insert call. * * Create a request for the method "users.list". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param email The exact primary email address of the user to look up. * @return the request */ public List list(java.lang.String enterpriseId, java.lang.String email) throws java.io.IOException { List result = new List(enterpriseId, email); initialize(result); return result; } public class List extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users"; /** * Looks up a user by primary email address. This is only supported for Google-managed users. * Lookup of the id is not needed for EMM-managed users because the id is already returned in the * result of the Users.insert call. * * Create a request for the method "users.list". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param email The exact primary email address of the user to look up. * @since 1.13 */ protected List(java.lang.String enterpriseId, java.lang.String email) { super(AndroidEnterprise.this, "GET", REST_PATH, null, com.google.api.services.androidenterprise.model.UsersListResponse.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.email = com.google.api.client.util.Preconditions.checkNotNull(email, "Required parameter email must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public List setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The exact primary email address of the user to look up. */ @com.google.api.client.util.Key private java.lang.String email; /** The exact primary email address of the user to look up. */ public java.lang.String getEmail() { return email; } /** The exact primary email address of the user to look up. */ public List setEmail(java.lang.String email) { this.email = email; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates the details of an EMM-managed user. * * Can be used with EMM-managed users only (not Google managed users). Pass the new details in the * Users resource in the request body. Only the displayName field can be changed. Other fields must * either be unset or have the currently active value. This method supports patch semantics. * * Create a request for the method "users.patch". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @return the request */ public Patch patch(java.lang.String enterpriseId, java.lang.String userId, com.google.api.services.androidenterprise.model.User content) throws java.io.IOException { Patch result = new Patch(enterpriseId, userId, content); initialize(result); return result; } public class Patch extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}"; /** * Updates the details of an EMM-managed user. * * Can be used with EMM-managed users only (not Google managed users). Pass the new details in the * Users resource in the request body. Only the displayName field can be changed. Other fields * must either be unset or have the currently active value. This method supports patch semantics. * * Create a request for the method "users.patch". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @since 1.13 */ protected Patch(java.lang.String enterpriseId, java.lang.String userId, com.google.api.services.androidenterprise.model.User content) { super(AndroidEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.androidenterprise.model.User.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Patch setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Patch setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Revokes a previously generated token (activation code) for the user. * * Create a request for the method "users.revokeToken". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link RevokeToken#execute()} method to invoke the remote * operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @return the request */ public RevokeToken revokeToken(java.lang.String enterpriseId, java.lang.String userId) throws java.io.IOException { RevokeToken result = new RevokeToken(enterpriseId, userId); initialize(result); return result; } public class RevokeToken extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/token"; /** * Revokes a previously generated token (activation code) for the user. * * Create a request for the method "users.revokeToken". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link RevokeToken#execute()} method to invoke the remote * operation.

{@link * RevokeToken#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @since 1.13 */ protected RevokeToken(java.lang.String enterpriseId, java.lang.String userId) { super(AndroidEnterprise.this, "DELETE", REST_PATH, null, Void.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public RevokeToken setAlt(java.lang.String alt) { return (RevokeToken) super.setAlt(alt); } @Override public RevokeToken setFields(java.lang.String fields) { return (RevokeToken) super.setFields(fields); } @Override public RevokeToken setKey(java.lang.String key) { return (RevokeToken) super.setKey(key); } @Override public RevokeToken setOauthToken(java.lang.String oauthToken) { return (RevokeToken) super.setOauthToken(oauthToken); } @Override public RevokeToken setPrettyPrint(java.lang.Boolean prettyPrint) { return (RevokeToken) super.setPrettyPrint(prettyPrint); } @Override public RevokeToken setQuotaUser(java.lang.String quotaUser) { return (RevokeToken) super.setQuotaUser(quotaUser); } @Override public RevokeToken setUserIp(java.lang.String userIp) { return (RevokeToken) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public RevokeToken setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public RevokeToken setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public RevokeToken set(String parameterName, Object value) { return (RevokeToken) super.set(parameterName, value); } } /** * Modifies the set of products a user is entitled to access. * * Create a request for the method "users.setAvailableProductSet". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link SetAvailableProductSet#execute()} method to invoke the * remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.ProductSet} * @return the request */ public SetAvailableProductSet setAvailableProductSet(java.lang.String enterpriseId, java.lang.String userId, com.google.api.services.androidenterprise.model.ProductSet content) throws java.io.IOException { SetAvailableProductSet result = new SetAvailableProductSet(enterpriseId, userId, content); initialize(result); return result; } public class SetAvailableProductSet extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}/availableProductSet"; /** * Modifies the set of products a user is entitled to access. * * Create a request for the method "users.setAvailableProductSet". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link SetAvailableProductSet#execute()} method to invoke the * remote operation.

{@link SetAvailableProductSet#initialize(com.google.api.client.googleapis * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.ProductSet} * @since 1.13 */ protected SetAvailableProductSet(java.lang.String enterpriseId, java.lang.String userId, com.google.api.services.androidenterprise.model.ProductSet content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.ProductSet.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public SetAvailableProductSet setAlt(java.lang.String alt) { return (SetAvailableProductSet) super.setAlt(alt); } @Override public SetAvailableProductSet setFields(java.lang.String fields) { return (SetAvailableProductSet) super.setFields(fields); } @Override public SetAvailableProductSet setKey(java.lang.String key) { return (SetAvailableProductSet) super.setKey(key); } @Override public SetAvailableProductSet setOauthToken(java.lang.String oauthToken) { return (SetAvailableProductSet) super.setOauthToken(oauthToken); } @Override public SetAvailableProductSet setPrettyPrint(java.lang.Boolean prettyPrint) { return (SetAvailableProductSet) super.setPrettyPrint(prettyPrint); } @Override public SetAvailableProductSet setQuotaUser(java.lang.String quotaUser) { return (SetAvailableProductSet) super.setQuotaUser(quotaUser); } @Override public SetAvailableProductSet setUserIp(java.lang.String userIp) { return (SetAvailableProductSet) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public SetAvailableProductSet setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public SetAvailableProductSet setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public SetAvailableProductSet set(String parameterName, Object value) { return (SetAvailableProductSet) super.set(parameterName, value); } } /** * Updates the details of an EMM-managed user. * * Can be used with EMM-managed users only (not Google managed users). Pass the new details in the * Users resource in the request body. Only the displayName field can be changed. Other fields must * either be unset or have the currently active value. * * Create a request for the method "users.update". * * This request holds the parameters needed by the androidenterprise server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @return the request */ public Update update(java.lang.String enterpriseId, java.lang.String userId, com.google.api.services.androidenterprise.model.User content) throws java.io.IOException { Update result = new Update(enterpriseId, userId, content); initialize(result); return result; } public class Update extends AndroidEnterpriseRequest { private static final String REST_PATH = "enterprises/{enterpriseId}/users/{userId}"; /** * Updates the details of an EMM-managed user. * * Can be used with EMM-managed users only (not Google managed users). Pass the new details in the * Users resource in the request body. Only the displayName field can be changed. Other fields * must either be unset or have the currently active value. * * Create a request for the method "users.update". * * This request holds the parameters needed by the the androidenterprise server. After setting * any optional parameters, call the {@link Update#execute()} method to invoke the remote * operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param enterpriseId The ID of the enterprise. * @param userId The ID of the user. * @param content the {@link com.google.api.services.androidenterprise.model.User} * @since 1.13 */ protected Update(java.lang.String enterpriseId, java.lang.String userId, com.google.api.services.androidenterprise.model.User content) { super(AndroidEnterprise.this, "PUT", REST_PATH, content, com.google.api.services.androidenterprise.model.User.class); this.enterpriseId = com.google.api.client.util.Preconditions.checkNotNull(enterpriseId, "Required parameter enterpriseId must be specified."); this.userId = com.google.api.client.util.Preconditions.checkNotNull(userId, "Required parameter userId must be specified."); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUserIp(java.lang.String userIp) { return (Update) super.setUserIp(userIp); } /** The ID of the enterprise. */ @com.google.api.client.util.Key private java.lang.String enterpriseId; /** The ID of the enterprise. */ public java.lang.String getEnterpriseId() { return enterpriseId; } /** The ID of the enterprise. */ public Update setEnterpriseId(java.lang.String enterpriseId) { this.enterpriseId = enterpriseId; return this; } /** The ID of the user. */ @com.google.api.client.util.Key private java.lang.String userId; /** The ID of the user. */ public java.lang.String getUserId() { return userId; } /** The ID of the user. */ public Update setUserId(java.lang.String userId) { this.userId = userId; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * Builder for {@link AndroidEnterprise}. * *

* Implementation is not thread-safe. *

* * @since 1.3.0 */ public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { /** * Returns an instance of a new builder. * * @param transport HTTP transport, which should normally be: *
    *
  • Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
  • *
* @param jsonFactory JSON factory, which may be: *
    *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • *
  • Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • *
* @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { super( transport, jsonFactory, DEFAULT_ROOT_URL, DEFAULT_SERVICE_PATH, httpRequestInitializer, false); } /** Builds a new instance of {@link AndroidEnterprise}. */ @Override public AndroidEnterprise build() { return new AndroidEnterprise(this); } @Override public Builder setRootUrl(String rootUrl) { return (Builder) super.setRootUrl(rootUrl); } @Override public Builder setServicePath(String servicePath) { return (Builder) super.setServicePath(servicePath); } @Override public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); } @Override public Builder setApplicationName(String applicationName) { return (Builder) super.setApplicationName(applicationName); } @Override public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); } @Override public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); } @Override public Builder setSuppressAllChecks(boolean suppressAllChecks) { return (Builder) super.setSuppressAllChecks(suppressAllChecks); } /** * Set the {@link AndroidEnterpriseRequestInitializer}. * * @since 1.12 */ public Builder setAndroidEnterpriseRequestInitializer( AndroidEnterpriseRequestInitializer androidenterpriseRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(androidenterpriseRequestInitializer); } @Override public Builder setGoogleClientRequestInitializer( com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy