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

com.google.api.services.appengine.Appengine Maven / Gradle / Ivy

/*
 * 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-05-27 16:00:31 UTC)
 * on 2016-07-07 at 23:14:42 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.appengine;

/**
 * Service definition for Appengine (v1beta5).
 *
 * 

* Provisions and manages App Engine applications. *

* *

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

* *

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

* * @since 1.3 * @author Google, Inc. */ @SuppressWarnings("javadoc") public class Appengine 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 App Engine Admin 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://appengine.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 = ""; /** * 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 Appengine(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 */ Appengine(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 Apps collection. * *

The typical use is:

*
   *   {@code Appengine appengine = new Appengine(...);}
   *   {@code Appengine.Apps.List request = appengine.apps().list(parameters ...)}
   * 
* * @return the resource collection */ public Apps apps() { return new Apps(); } /** * The "apps" collection of methods. */ public class Apps { /** * Gets information about an application. * * Create a request for the method "apps.get". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the application to get. For example: "apps/myapp". * @return the request */ public Get get(java.lang.String appsId) throws java.io.IOException { Get result = new Get(appsId); initialize(result); return result; } public class Get extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}"; /** * Gets information about an application. * * Create a request for the method "apps.get". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the application to get. For example: "apps/myapp". * @since 1.13 */ protected Get(java.lang.String appsId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.Application.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId 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 set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setBearerToken(java.lang.String bearerToken) { return (Get) super.setBearerToken(bearerToken); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Get) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** Part of `name`. Name of the application to get. For example: "apps/myapp". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the application to get. For example: "apps/myapp". */ public java.lang.String getAppsId() { return appsId; } /** Part of `name`. Name of the application to get. For example: "apps/myapp". */ public Get setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** * Certain resources associated with an application are created on-demand. Controls whether * these resources should be created when performing the `GET` operation. If specified and any * resources could not be created, the request will fail with an error code. Additionally, * this parameter can cause the request to take longer to complete. Note: This parameter will * be deprecated in a future version of the API. */ @com.google.api.client.util.Key private java.lang.Boolean ensureResourcesExist; /** Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the `GET` operation. If specified and any resources could not be created, the request will fail with an error code. Additionally, this parameter can cause the request to take longer to complete. Note: This parameter will be deprecated in a future version of the API. */ public java.lang.Boolean getEnsureResourcesExist() { return ensureResourcesExist; } /** * Certain resources associated with an application are created on-demand. Controls whether * these resources should be created when performing the `GET` operation. If specified and any * resources could not be created, the request will fail with an error code. Additionally, * this parameter can cause the request to take longer to complete. Note: This parameter will * be deprecated in a future version of the API. */ public Get setEnsureResourcesExist(java.lang.Boolean ensureResourcesExist) { this.ensureResourcesExist = ensureResourcesExist; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * An accessor for creating requests from the Operations collection. * *

The typical use is:

*
     *   {@code Appengine appengine = new Appengine(...);}
     *   {@code Appengine.Operations.List request = appengine.operations().list(parameters ...)}
     * 
* * @return the resource collection */ public Operations operations() { return new Operations(); } /** * The "operations" collection of methods. */ public class Operations { /** * Gets the latest state of a long-running operation. Clients can use this method to poll the * operation result at intervals as recommended by the API service. * * Create a request for the method "operations.get". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. The name of the operation resource. * @param operationsId Part of `name`. See documentation of `appsId`. * @return the request */ public Get get(java.lang.String appsId, java.lang.String operationsId) throws java.io.IOException { Get result = new Get(appsId, operationsId); initialize(result); return result; } public class Get extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/operations/{operationsId}"; /** * Gets the latest state of a long-running operation. Clients can use this method to poll the * operation result at intervals as recommended by the API service. * * Create a request for the method "operations.get". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. The name of the operation resource. * @param operationsId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected Get(java.lang.String appsId, java.lang.String operationsId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.Operation.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.operationsId = com.google.api.client.util.Preconditions.checkNotNull(operationsId, "Required parameter operationsId 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 set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setBearerToken(java.lang.String bearerToken) { return (Get) super.setBearerToken(bearerToken); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Get) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** Part of `name`. The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. The name of the operation resource. */ public java.lang.String getAppsId() { return appsId; } /** Part of `name`. The name of the operation resource. */ public Get setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String operationsId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getOperationsId() { return operationsId; } /** Part of `name`. See documentation of `appsId`. */ public Get setOperationsId(java.lang.String operationsId) { this.operationsId = operationsId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists operations that match the specified filter in the request. If the server doesn't support * this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding below allows API services to * override the binding to use different resource name schemes, such as `users/operations`. * * Create a request for the method "operations.list". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. The name of the operation collection. * @return the request */ public List list(java.lang.String appsId) throws java.io.IOException { List result = new List(appsId); initialize(result); return result; } public class List extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/operations"; /** * Lists operations that match the specified filter in the request. If the server doesn't support * this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding below allows API services to * override the binding to use different resource name schemes, such as `users/operations`. * * Create a request for the method "operations.list". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. The name of the operation collection. * @since 1.13 */ protected List(java.lang.String appsId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.ListOperationsResponse.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId 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 set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** Part of `name`. The name of the operation collection. */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. The name of the operation collection. */ public java.lang.String getAppsId() { return appsId; } /** Part of `name`. The name of the operation collection. */ public List setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; /** The standard list filter. */ public java.lang.String getFilter() { return filter; } /** The standard list filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } /** The standard list page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Services collection. * *

The typical use is:

*
     *   {@code Appengine appengine = new Appengine(...);}
     *   {@code Appengine.Services.List request = appengine.services().list(parameters ...)}
     * 
* * @return the resource collection */ public Services services() { return new Services(); } /** * The "services" collection of methods. */ public class Services { /** * Deletes a service and all enclosed versions. * * Create a request for the method "services.delete". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @return the request */ public Delete delete(java.lang.String appsId, java.lang.String servicesId) throws java.io.IOException { Delete result = new Delete(appsId, servicesId); initialize(result); return result; } public class Delete extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}"; /** * Deletes a service and all enclosed versions. * * Create a request for the method "services.delete". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected Delete(java.lang.String appsId, java.lang.String servicesId) { super(Appengine.this, "DELETE", REST_PATH, null, com.google.api.services.appengine.model.Operation.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setBearerToken(java.lang.String bearerToken) { return (Delete) super.setBearerToken(bearerToken); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Delete) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default". */ public Delete setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Delete setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets the current configuration of the service. * * Create a request for the method "services.get". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @return the request */ public Get get(java.lang.String appsId, java.lang.String servicesId) throws java.io.IOException { Get result = new Get(appsId, servicesId); initialize(result); return result; } public class Get extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}"; /** * Gets the current configuration of the service. * * Create a request for the method "services.get". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected Get(java.lang.String appsId, java.lang.String servicesId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.Service.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId 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 set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setBearerToken(java.lang.String bearerToken) { return (Get) super.setBearerToken(bearerToken); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Get) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default". */ public Get setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Get setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists all the services in the application. * * Create a request for the method "services.list". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: "apps/myapp". * @return the request */ public List list(java.lang.String appsId) throws java.io.IOException { List result = new List(appsId); initialize(result); return result; } public class List extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services"; /** * Lists all the services in the application. * * Create a request for the method "services.list". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: "apps/myapp". * @since 1.13 */ protected List(java.lang.String appsId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.ListServicesResponse.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId 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 set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** Part of `name`. Name of the resource requested. For example: "apps/myapp". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp". */ public java.lang.String getAppsId() { return appsId; } /** Part of `name`. Name of the resource requested. For example: "apps/myapp". */ public List setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Maximum results to return per page. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum results to return per page. */ public java.lang.Integer getPageSize() { return pageSize; } /** Maximum results to return per page. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** Continuation token for fetching the next page of results. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Continuation token for fetching the next page of results. */ public java.lang.String getPageToken() { return pageToken; } /** Continuation token for fetching the next page of results. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates the configuration of the specified service. * * Create a request for the method "services.patch". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @param content the {@link com.google.api.services.appengine.model.Service} * @return the request */ public Patch patch(java.lang.String appsId, java.lang.String servicesId, com.google.api.services.appengine.model.Service content) throws java.io.IOException { Patch result = new Patch(appsId, servicesId, content); initialize(result); return result; } public class Patch extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}"; /** * Updates the configuration of the specified service. * * Create a request for the method "services.patch". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @param content the {@link com.google.api.services.appengine.model.Service} * @since 1.13 */ protected Patch(java.lang.String appsId, java.lang.String servicesId, com.google.api.services.appengine.model.Service content) { super(Appengine.this, "PATCH", REST_PATH, content, com.google.api.services.appengine.model.Operation.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); } @Override public Patch set$Xgafv(java.lang.String $Xgafv) { return (Patch) super.set$Xgafv($Xgafv); } @Override public Patch setAccessToken(java.lang.String accessToken) { return (Patch) super.setAccessToken(accessToken); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setBearerToken(java.lang.String bearerToken) { return (Patch) super.setBearerToken(bearerToken); } @Override public Patch setCallback(java.lang.String callback) { return (Patch) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Patch) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Patch) super.setUploadType(uploadType); } @Override public Patch setUploadProtocol(java.lang.String uploadProtocol) { return (Patch) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource to update. For example: * "apps/myapp/services/default". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource to update. For example: * "apps/myapp/services/default". */ public Patch setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Patch setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Standard field mask for the set of fields to be updated. */ @com.google.api.client.util.Key private java.lang.String mask; /** Standard field mask for the set of fields to be updated. */ public java.lang.String getMask() { return mask; } /** Standard field mask for the set of fields to be updated. */ public Patch setMask(java.lang.String mask) { this.mask = mask; return this; } /** * Whether to use Traffic Migration to shift traffic gradually. Traffic can only be migrated * from a single version to another single version. */ @com.google.api.client.util.Key private java.lang.Boolean migrateTraffic; /** Whether to use Traffic Migration to shift traffic gradually. Traffic can only be migrated from a single version to another single version. */ public java.lang.Boolean getMigrateTraffic() { return migrateTraffic; } /** * Whether to use Traffic Migration to shift traffic gradually. Traffic can only be migrated * from a single version to another single version. */ public Patch setMigrateTraffic(java.lang.Boolean migrateTraffic) { this.migrateTraffic = migrateTraffic; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * An accessor for creating requests from the Versions collection. * *

The typical use is:

*
       *   {@code Appengine appengine = new Appengine(...);}
       *   {@code Appengine.Versions.List request = appengine.versions().list(parameters ...)}
       * 
* * @return the resource collection */ public Versions versions() { return new Versions(); } /** * The "versions" collection of methods. */ public class Versions { /** * Deploys new code and resource files to a version. * * Create a request for the method "versions.create". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @param content the {@link com.google.api.services.appengine.model.Version} * @return the request */ public Create create(java.lang.String appsId, java.lang.String servicesId, com.google.api.services.appengine.model.Version content) throws java.io.IOException { Create result = new Create(appsId, servicesId, content); initialize(result); return result; } public class Create extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions"; /** * Deploys new code and resource files to a version. * * Create a request for the method "versions.create". * * This request holds the parameters needed by the the appengine server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

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

* * @param appsId Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @param content the {@link com.google.api.services.appengine.model.Version} * @since 1.13 */ protected Create(java.lang.String appsId, java.lang.String servicesId, com.google.api.services.appengine.model.Version content) { super(Appengine.this, "POST", REST_PATH, content, com.google.api.services.appengine.model.Operation.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); } @Override public Create set$Xgafv(java.lang.String $Xgafv) { return (Create) super.set$Xgafv($Xgafv); } @Override public Create setAccessToken(java.lang.String accessToken) { return (Create) super.setAccessToken(accessToken); } @Override public Create setAlt(java.lang.String alt) { return (Create) super.setAlt(alt); } @Override public Create setBearerToken(java.lang.String bearerToken) { return (Create) super.setBearerToken(bearerToken); } @Override public Create setCallback(java.lang.String callback) { return (Create) super.setCallback(callback); } @Override public Create setFields(java.lang.String fields) { return (Create) super.setFields(fields); } @Override public Create setKey(java.lang.String key) { return (Create) super.setKey(key); } @Override public Create setOauthToken(java.lang.String oauthToken) { return (Create) super.setOauthToken(oauthToken); } @Override public Create setPp(java.lang.Boolean pp) { return (Create) super.setPp(pp); } @Override public Create setPrettyPrint(java.lang.Boolean prettyPrint) { return (Create) super.setPrettyPrint(prettyPrint); } @Override public Create setQuotaUser(java.lang.String quotaUser) { return (Create) super.setQuotaUser(quotaUser); } @Override public Create setUploadType(java.lang.String uploadType) { return (Create) super.setUploadType(uploadType); } @Override public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource to update. For example: * "apps/myapp/services/default". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource to update. For example: * "apps/myapp/services/default". */ public Create setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Create setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Deletes an existing version. * * Create a request for the method "versions.delete". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @return the request */ public Delete delete(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId) throws java.io.IOException { Delete result = new Delete(appsId, servicesId, versionsId); initialize(result); return result; } public class Delete extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}"; /** * Deletes an existing version. * * Create a request for the method "versions.delete". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected Delete(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId) { super(Appengine.this, "DELETE", REST_PATH, null, com.google.api.services.appengine.model.Operation.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); this.versionsId = com.google.api.client.util.Preconditions.checkNotNull(versionsId, "Required parameter versionsId must be specified."); } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setBearerToken(java.lang.String bearerToken) { return (Delete) super.setBearerToken(bearerToken); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Delete) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default/versions/v1". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". */ public Delete setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Delete setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String versionsId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getVersionsId() { return versionsId; } /** Part of `name`. See documentation of `appsId`. */ public Delete setVersionsId(java.lang.String versionsId) { this.versionsId = versionsId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets application deployment information. * * Create a request for the method "versions.get". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @return the request */ public Get get(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId) throws java.io.IOException { Get result = new Get(appsId, servicesId, versionsId); initialize(result); return result; } public class Get extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}"; /** * Gets application deployment information. * * Create a request for the method "versions.get". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected Get(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.Version.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); this.versionsId = com.google.api.client.util.Preconditions.checkNotNull(versionsId, "Required parameter versionsId 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 set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setBearerToken(java.lang.String bearerToken) { return (Get) super.setBearerToken(bearerToken); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Get) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default/versions/v1". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". */ public Get setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Get setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String versionsId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getVersionsId() { return versionsId; } /** Part of `name`. See documentation of `appsId`. */ public Get setVersionsId(java.lang.String versionsId) { this.versionsId = versionsId; return this; } /** Controls the set of fields returned in the `Get` response. */ @com.google.api.client.util.Key private java.lang.String view; /** Controls the set of fields returned in the `Get` response. */ public java.lang.String getView() { return view; } /** Controls the set of fields returned in the `Get` response. */ public Get setView(java.lang.String view) { this.view = view; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists the versions of a service. * * Create a request for the method "versions.list". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @return the request */ public List list(java.lang.String appsId, java.lang.String servicesId) throws java.io.IOException { List result = new List(appsId, servicesId); initialize(result); return result; } public class List extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions"; /** * Lists the versions of a service. * * Create a request for the method "versions.list". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". * @param servicesId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected List(java.lang.String appsId, java.lang.String servicesId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.ListVersionsResponse.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId 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 set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default". */ public List setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public List setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Controls the set of fields returned in the `List` response. */ @com.google.api.client.util.Key private java.lang.String view; /** Controls the set of fields returned in the `List` response. */ public java.lang.String getView() { return view; } /** Controls the set of fields returned in the `List` response. */ public List setView(java.lang.String view) { this.view = view; return this; } /** Maximum results to return per page. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum results to return per page. */ public java.lang.Integer getPageSize() { return pageSize; } /** Maximum results to return per page. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** Continuation token for fetching the next page of results. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Continuation token for fetching the next page of results. */ public java.lang.String getPageToken() { return pageToken; } /** Continuation token for fetching the next page of results. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates the specified Version resource. You can specify the following fields depending on the App * Engine environment and type of scaling that the version resource uses: * * [`serving_status`](/appengine/docs/admin- * api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): For Version * resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. * * [`instance_class`](/appengine/docs/admin- * api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): For Version * resources that run in the App Engine standard environment. * * [`automatic_scaling.min_idle_instances`](/appengine/docs/admin- * api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version * resources that use automatic scaling and run in the App Engine standard environment. * * [`automatic_scaling.max_idle_instances`](/appengine/docs/admin- * api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version * resources that use automatic scaling and run in the App Engine standard environment. * * Create a request for the method "versions.patch". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource to update. For example: * "apps/myapp/services/default/versions/1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @param content the {@link com.google.api.services.appengine.model.Version} * @return the request */ public Patch patch(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId, com.google.api.services.appengine.model.Version content) throws java.io.IOException { Patch result = new Patch(appsId, servicesId, versionsId, content); initialize(result); return result; } public class Patch extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}"; /** * Updates the specified Version resource. You can specify the following fields depending on the * App Engine environment and type of scaling that the version resource uses: * * [`serving_status`](/appengine/docs/admin- * api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): For Version * resources that use basic scaling, manual scaling, or run in the App Engine flexible * environment. * [`instance_class`](/appengine/docs/admin- * api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): For Version * resources that run in the App Engine standard environment. * * [`automatic_scaling.min_idle_instances`](/appengine/docs/admin- * api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For * Version resources that use automatic scaling and run in the App Engine standard environment. * * [`automatic_scaling.max_idle_instances`](/appengine/docs/admin- * api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For * Version resources that use automatic scaling and run in the App Engine standard environment. * * Create a request for the method "versions.patch". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource to update. For example: * "apps/myapp/services/default/versions/1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @param content the {@link com.google.api.services.appengine.model.Version} * @since 1.13 */ protected Patch(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId, com.google.api.services.appengine.model.Version content) { super(Appengine.this, "PATCH", REST_PATH, content, com.google.api.services.appengine.model.Operation.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); this.versionsId = com.google.api.client.util.Preconditions.checkNotNull(versionsId, "Required parameter versionsId must be specified."); } @Override public Patch set$Xgafv(java.lang.String $Xgafv) { return (Patch) super.set$Xgafv($Xgafv); } @Override public Patch setAccessToken(java.lang.String accessToken) { return (Patch) super.setAccessToken(accessToken); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setBearerToken(java.lang.String bearerToken) { return (Patch) super.setBearerToken(bearerToken); } @Override public Patch setCallback(java.lang.String callback) { return (Patch) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Patch) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Patch) super.setUploadType(uploadType); } @Override public Patch setUploadProtocol(java.lang.String uploadProtocol) { return (Patch) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource to update. For example: * "apps/myapp/services/default/versions/1". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default/versions/1". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource to update. For example: * "apps/myapp/services/default/versions/1". */ public Patch setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Patch setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String versionsId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getVersionsId() { return versionsId; } /** Part of `name`. See documentation of `appsId`. */ public Patch setVersionsId(java.lang.String versionsId) { this.versionsId = versionsId; return this; } /** Standard field mask for the set of fields to be updated. */ @com.google.api.client.util.Key private java.lang.String mask; /** Standard field mask for the set of fields to be updated. */ public java.lang.String getMask() { return mask; } /** Standard field mask for the set of fields to be updated. */ public Patch setMask(java.lang.String mask) { this.mask = mask; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * An accessor for creating requests from the Instances collection. * *

The typical use is:

*
         *   {@code Appengine appengine = new Appengine(...);}
         *   {@code Appengine.Instances.List request = appengine.instances().list(parameters ...)}
         * 
* * @return the resource collection */ public Instances instances() { return new Instances(); } /** * The "instances" collection of methods. */ public class Instances { /** * Enable debugging of this VM instance. This call allows you to SSH to the VM. While the VM is in * debug mode, it continues to serve live traffic. After you're done debugging an instance, delete * the instance; the system creates a new instance when needed. You can't debug a non-VM instance. * * Create a request for the method "instances.debug". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Debug#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @param instancesId Part of `name`. See documentation of `appsId`. * @param content the {@link com.google.api.services.appengine.model.DebugInstanceRequest} * @return the request */ public Debug debug(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId, java.lang.String instancesId, com.google.api.services.appengine.model.DebugInstanceRequest content) throws java.io.IOException { Debug result = new Debug(appsId, servicesId, versionsId, instancesId, content); initialize(result); return result; } public class Debug extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug"; /** * Enable debugging of this VM instance. This call allows you to SSH to the VM. While the VM is in * debug mode, it continues to serve live traffic. After you're done debugging an instance, delete * the instance; the system creates a new instance when needed. You can't debug a non-VM instance. * * Create a request for the method "instances.debug". * * This request holds the parameters needed by the the appengine server. After setting any * optional parameters, call the {@link Debug#execute()} method to invoke the remote operation. *

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

* * @param appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @param instancesId Part of `name`. See documentation of `appsId`. * @param content the {@link com.google.api.services.appengine.model.DebugInstanceRequest} * @since 1.13 */ protected Debug(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId, java.lang.String instancesId, com.google.api.services.appengine.model.DebugInstanceRequest content) { super(Appengine.this, "POST", REST_PATH, content, com.google.api.services.appengine.model.Operation.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); this.versionsId = com.google.api.client.util.Preconditions.checkNotNull(versionsId, "Required parameter versionsId must be specified."); this.instancesId = com.google.api.client.util.Preconditions.checkNotNull(instancesId, "Required parameter instancesId must be specified."); } @Override public Debug set$Xgafv(java.lang.String $Xgafv) { return (Debug) super.set$Xgafv($Xgafv); } @Override public Debug setAccessToken(java.lang.String accessToken) { return (Debug) super.setAccessToken(accessToken); } @Override public Debug setAlt(java.lang.String alt) { return (Debug) super.setAlt(alt); } @Override public Debug setBearerToken(java.lang.String bearerToken) { return (Debug) super.setBearerToken(bearerToken); } @Override public Debug setCallback(java.lang.String callback) { return (Debug) super.setCallback(callback); } @Override public Debug setFields(java.lang.String fields) { return (Debug) super.setFields(fields); } @Override public Debug setKey(java.lang.String key) { return (Debug) super.setKey(key); } @Override public Debug setOauthToken(java.lang.String oauthToken) { return (Debug) super.setOauthToken(oauthToken); } @Override public Debug setPp(java.lang.Boolean pp) { return (Debug) super.setPp(pp); } @Override public Debug setPrettyPrint(java.lang.Boolean prettyPrint) { return (Debug) super.setPrettyPrint(prettyPrint); } @Override public Debug setQuotaUser(java.lang.String quotaUser) { return (Debug) super.setQuotaUser(quotaUser); } @Override public Debug setUploadType(java.lang.String uploadType) { return (Debug) super.setUploadType(uploadType); } @Override public Debug setUploadProtocol(java.lang.String uploadProtocol) { return (Debug) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default/versions/v1/instances/instance-1". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". */ public Debug setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Debug setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String versionsId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getVersionsId() { return versionsId; } /** Part of `name`. See documentation of `appsId`. */ public Debug setVersionsId(java.lang.String versionsId) { this.versionsId = versionsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String instancesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getInstancesId() { return instancesId; } /** Part of `name`. See documentation of `appsId`. */ public Debug setInstancesId(java.lang.String instancesId) { this.instancesId = instancesId; return this; } @Override public Debug set(String parameterName, Object value) { return (Debug) super.set(parameterName, value); } } /** * Stops a running instance. * * Create a request for the method "instances.delete". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @param instancesId Part of `name`. See documentation of `appsId`. * @return the request */ public Delete delete(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId, java.lang.String instancesId) throws java.io.IOException { Delete result = new Delete(appsId, servicesId, versionsId, instancesId); initialize(result); return result; } public class Delete extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}"; /** * Stops a running instance. * * Create a request for the method "instances.delete". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @param instancesId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected Delete(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId, java.lang.String instancesId) { super(Appengine.this, "DELETE", REST_PATH, null, com.google.api.services.appengine.model.Operation.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); this.versionsId = com.google.api.client.util.Preconditions.checkNotNull(versionsId, "Required parameter versionsId must be specified."); this.instancesId = com.google.api.client.util.Preconditions.checkNotNull(instancesId, "Required parameter instancesId must be specified."); } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setBearerToken(java.lang.String bearerToken) { return (Delete) super.setBearerToken(bearerToken); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Delete) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default/versions/v1/instances/instance-1". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". */ public Delete setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Delete setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String versionsId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getVersionsId() { return versionsId; } /** Part of `name`. See documentation of `appsId`. */ public Delete setVersionsId(java.lang.String versionsId) { this.versionsId = versionsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String instancesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getInstancesId() { return instancesId; } /** Part of `name`. See documentation of `appsId`. */ public Delete setInstancesId(java.lang.String instancesId) { this.instancesId = instancesId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets instance information. * * Create a request for the method "instances.get". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @param instancesId Part of `name`. See documentation of `appsId`. * @return the request */ public Get get(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId, java.lang.String instancesId) throws java.io.IOException { Get result = new Get(appsId, servicesId, versionsId, instancesId); initialize(result); return result; } public class Get extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}"; /** * Gets instance information. * * Create a request for the method "instances.get". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @param instancesId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected Get(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId, java.lang.String instancesId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.Instance.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); this.versionsId = com.google.api.client.util.Preconditions.checkNotNull(versionsId, "Required parameter versionsId must be specified."); this.instancesId = com.google.api.client.util.Preconditions.checkNotNull(instancesId, "Required parameter instancesId 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 set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setBearerToken(java.lang.String bearerToken) { return (Get) super.setBearerToken(bearerToken); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (Get) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default/versions/v1/instances/instance-1". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1/instances/instance-1". */ public Get setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public Get setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String versionsId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getVersionsId() { return versionsId; } /** Part of `name`. See documentation of `appsId`. */ public Get setVersionsId(java.lang.String versionsId) { this.versionsId = versionsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String instancesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getInstancesId() { return instancesId; } /** Part of `name`. See documentation of `appsId`. */ public Get setInstancesId(java.lang.String instancesId) { this.instancesId = instancesId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists the instances of a version. * * Create a request for the method "instances.list". * * This request holds the parameters needed by the appengine server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @return the request */ public List list(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId) throws java.io.IOException { List result = new List(appsId, servicesId, versionsId); initialize(result); return result; } public class List extends AppengineRequest { private static final String REST_PATH = "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances"; /** * Lists the instances of a version. * * Create a request for the method "instances.list". * * This request holds the parameters needed by the the appengine 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 appsId Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". * @param servicesId Part of `name`. See documentation of `appsId`. * @param versionsId Part of `name`. See documentation of `appsId`. * @since 1.13 */ protected List(java.lang.String appsId, java.lang.String servicesId, java.lang.String versionsId) { super(Appengine.this, "GET", REST_PATH, null, com.google.api.services.appengine.model.ListInstancesResponse.class); this.appsId = com.google.api.client.util.Preconditions.checkNotNull(appsId, "Required parameter appsId must be specified."); this.servicesId = com.google.api.client.util.Preconditions.checkNotNull(servicesId, "Required parameter servicesId must be specified."); this.versionsId = com.google.api.client.util.Preconditions.checkNotNull(versionsId, "Required parameter versionsId 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 set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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 setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". */ @com.google.api.client.util.Key private java.lang.String appsId; /** Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default/versions/v1". */ public java.lang.String getAppsId() { return appsId; } /** * Part of `name`. Name of the resource requested. For example: * "apps/myapp/services/default/versions/v1". */ public List setAppsId(java.lang.String appsId) { this.appsId = appsId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String servicesId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getServicesId() { return servicesId; } /** Part of `name`. See documentation of `appsId`. */ public List setServicesId(java.lang.String servicesId) { this.servicesId = servicesId; return this; } /** Part of `name`. See documentation of `appsId`. */ @com.google.api.client.util.Key private java.lang.String versionsId; /** Part of `name`. See documentation of `appsId`. */ public java.lang.String getVersionsId() { return versionsId; } /** Part of `name`. See documentation of `appsId`. */ public List setVersionsId(java.lang.String versionsId) { this.versionsId = versionsId; return this; } /** Maximum results to return per page. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum results to return per page. */ public java.lang.Integer getPageSize() { return pageSize; } /** Maximum results to return per page. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** Continuation token for fetching the next page of results. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Continuation token for fetching the next page of results. */ public java.lang.String getPageToken() { return pageToken; } /** Continuation token for fetching the next page of results. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } } } } /** * Builder for {@link Appengine}. * *

* 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 Appengine}. */ @Override public Appengine build() { return new Appengine(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 AppengineRequestInitializer}. * * @since 1.12 */ public Builder setAppengineRequestInitializer( AppengineRequestInitializer appengineRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(appengineRequestInitializer); } @Override public Builder setGoogleClientRequestInitializer( com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy