From 7dcfa54fe1de32288f2ee016b81179c359065182 Mon Sep 17 00:00:00 2001
From: Diego Marquez The typical use is:
+ * {@link
+ * CalendarMode#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link
- * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * parameters, call the {@link Update#execute()} method to invoke the remote operation. {@link
+ * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor.
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.Advice.List request = compute.advice().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Advice advice() {
+ return new Advice();
+ }
+
+ /**
+ * The "advice" collection of methods.
+ */
+ public class Advice {
+
+ /**
+ * Advise how, where and when to create the requested amount of instances with specified
+ * accelerators, within the specified time and location limits. The method recommends creating
+ * future reservations for the requested resources.
+ *
+ * Create a request for the method "advice.calendarMode".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link CalendarMode#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for this request.
+ * @param region Name of the region for this request.
+ * @param content the {@link com.google.api.services.compute.model.CalendarModeAdviceRequest}
+ * @return the request
+ */
+ public CalendarMode calendarMode(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CalendarModeAdviceRequest content) throws java.io.IOException {
+ CalendarMode result = new CalendarMode(project, region, content);
+ initialize(result);
+ return result;
+ }
+
+ public class CalendarMode extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.HttpHealthChecks.List request = compute.httpHealthChecks().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public HttpHealthChecks httpHealthChecks() {
- return new HttpHealthChecks();
- }
-
- /**
- * The "httpHealthChecks" collection of methods.
- */
- public class HttpHealthChecks {
-
/**
- * Deletes the specified HttpHealthCheck resource.
+ * Updates a HealthCheck resource in the specified project using the data included in the request.
*
- * Create a request for the method "httpHealthChecks.delete".
+ * Create a request for the method "healthChecks.update".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
- * @param httpHealthCheck Name of the HttpHealthCheck resource to delete.
+ * @param healthCheck Name of the HealthCheck resource to update.
+ * @param content the {@link com.google.api.services.compute.model.HealthCheck}
* @return the request
*/
- public Delete delete(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException {
- Delete result = new Delete(project, httpHealthCheck);
+ public Update update(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException {
+ Update result = new Update(project, healthCheck, content);
initialize(result);
return result;
}
- public class Delete extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.HttpHealthChecks.List request = compute.httpHealthChecks().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public HttpHealthChecks httpHealthChecks() {
+ return new HttpHealthChecks();
+ }
+
+ /**
+ * The "httpHealthChecks" collection of methods.
+ */
+ public class HttpHealthChecks {
+
+ /**
+ * Deletes the specified HttpHealthCheck resource.
+ *
+ * Create a request for the method "httpHealthChecks.delete".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for this request.
+ * @param httpHealthCheck Name of the HttpHealthCheck resource to delete.
+ * @return the request
+ */
+ public Delete delete(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException {
+ Delete result = new Delete(project, httpHealthCheck);
+ initialize(result);
+ return result;
+ }
+
+ public class Delete extends ComputeRequest
{@link GetPartnerMetadata#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param instance Name of the instance scoping this request. * @since 1.13 */ - protected GetScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Screenshot.class); + protected GetPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PartnerMetadata.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -63800,63 +64783,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetScreenshot set$Xgafv(java.lang.String $Xgafv) { - return (GetScreenshot) super.set$Xgafv($Xgafv); + public GetPartnerMetadata set$Xgafv(java.lang.String $Xgafv) { + return (GetPartnerMetadata) super.set$Xgafv($Xgafv); } @Override - public GetScreenshot setAccessToken(java.lang.String accessToken) { - return (GetScreenshot) super.setAccessToken(accessToken); + public GetPartnerMetadata setAccessToken(java.lang.String accessToken) { + return (GetPartnerMetadata) super.setAccessToken(accessToken); } @Override - public GetScreenshot setAlt(java.lang.String alt) { - return (GetScreenshot) super.setAlt(alt); + public GetPartnerMetadata setAlt(java.lang.String alt) { + return (GetPartnerMetadata) super.setAlt(alt); } @Override - public GetScreenshot setCallback(java.lang.String callback) { - return (GetScreenshot) super.setCallback(callback); + public GetPartnerMetadata setCallback(java.lang.String callback) { + return (GetPartnerMetadata) super.setCallback(callback); } @Override - public GetScreenshot setFields(java.lang.String fields) { - return (GetScreenshot) super.setFields(fields); + public GetPartnerMetadata setFields(java.lang.String fields) { + return (GetPartnerMetadata) super.setFields(fields); } @Override - public GetScreenshot setKey(java.lang.String key) { - return (GetScreenshot) super.setKey(key); + public GetPartnerMetadata setKey(java.lang.String key) { + return (GetPartnerMetadata) super.setKey(key); } @Override - public GetScreenshot setOauthToken(java.lang.String oauthToken) { - return (GetScreenshot) super.setOauthToken(oauthToken); + public GetPartnerMetadata setOauthToken(java.lang.String oauthToken) { + return (GetPartnerMetadata) super.setOauthToken(oauthToken); } @Override - public GetScreenshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetScreenshot) super.setPrettyPrint(prettyPrint); + public GetPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetPartnerMetadata) super.setPrettyPrint(prettyPrint); } @Override - public GetScreenshot setQuotaUser(java.lang.String quotaUser) { - return (GetScreenshot) super.setQuotaUser(quotaUser); + public GetPartnerMetadata setQuotaUser(java.lang.String quotaUser) { + return (GetPartnerMetadata) super.setQuotaUser(quotaUser); } @Override - public GetScreenshot setUploadType(java.lang.String uploadType) { - return (GetScreenshot) super.setUploadType(uploadType); + public GetPartnerMetadata setUploadType(java.lang.String uploadType) { + return (GetPartnerMetadata) super.setUploadType(uploadType); } @Override - public GetScreenshot setUploadProtocol(java.lang.String uploadProtocol) { - return (GetScreenshot) super.setUploadProtocol(uploadProtocol); + public GetPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (GetPartnerMetadata) super.setUploadProtocol(uploadProtocol); } @Override - public GetScreenshot setUserIp(java.lang.String userIp) { - return (GetScreenshot) super.setUserIp(userIp); + public GetPartnerMetadata setUserIp(java.lang.String userIp) { + return (GetPartnerMetadata) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -63870,7 +64853,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetScreenshot setProject(java.lang.String project) { + public GetPartnerMetadata setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -63891,7 +64874,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetScreenshot setZone(java.lang.String zone) { + public GetPartnerMetadata setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -63912,7 +64895,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public GetScreenshot setInstance(java.lang.String instance) { + public GetPartnerMetadata setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), "Parameter instance must conform to the pattern " + @@ -63922,33 +64905,49 @@ public GetScreenshot setInstance(java.lang.String instance) { return this; } + /** Comma separated partner metadata namespaces. */ + @com.google.api.client.util.Key + private java.lang.String namespaces; + + /** Comma separated partner metadata namespaces. + */ + public java.lang.String getNamespaces() { + return namespaces; + } + + /** Comma separated partner metadata namespaces. */ + public GetPartnerMetadata setNamespaces(java.lang.String namespaces) { + this.namespaces = namespaces; + return this; + } + @Override - public GetScreenshot set(String parameterName, Object value) { - return (GetScreenshot) super.set(parameterName, value); + public GetPartnerMetadata set(String parameterName, Object value) { + return (GetPartnerMetadata) super.set(parameterName, value); } } /** - * Returns the last 1 MB of serial port output from the specified instance. + * Returns the screenshot from the specified instance. * - * Create a request for the method "instances.getSerialPortOutput". + * Create a request for the method "instances.getScreenshot". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote operation. + * parameters, call the {@link GetScreenshot#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance for this request. + * @param instance Name of the instance scoping this request. * @return the request */ - public GetSerialPortOutput getSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetSerialPortOutput result = new GetSerialPortOutput(project, zone, instance); + public GetScreenshot getScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetScreenshot result = new GetScreenshot(project, zone, instance); initialize(result); return result; } - public class GetSerialPortOutput extends ComputeRequest+ * {@link GetScreenshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} must be called to initialize this instance immediately after invoking the constructor. + *
* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance for this request. + * @param instance Name of the instance scoping this request. * @since 1.13 */ - protected GetSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SerialPortOutput.class); + protected GetScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Screenshot.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetScreenshot set$Xgafv(java.lang.String $Xgafv) { + return (GetScreenshot) super.set$Xgafv($Xgafv); + } + + @Override + public GetScreenshot setAccessToken(java.lang.String accessToken) { + return (GetScreenshot) super.setAccessToken(accessToken); + } + + @Override + public GetScreenshot setAlt(java.lang.String alt) { + return (GetScreenshot) super.setAlt(alt); + } + + @Override + public GetScreenshot setCallback(java.lang.String callback) { + return (GetScreenshot) super.setCallback(callback); + } + + @Override + public GetScreenshot setFields(java.lang.String fields) { + return (GetScreenshot) super.setFields(fields); + } + + @Override + public GetScreenshot setKey(java.lang.String key) { + return (GetScreenshot) super.setKey(key); + } + + @Override + public GetScreenshot setOauthToken(java.lang.String oauthToken) { + return (GetScreenshot) super.setOauthToken(oauthToken); + } + + @Override + public GetScreenshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetScreenshot) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetScreenshot setQuotaUser(java.lang.String quotaUser) { + return (GetScreenshot) super.setQuotaUser(quotaUser); + } + + @Override + public GetScreenshot setUploadType(java.lang.String uploadType) { + return (GetScreenshot) super.setUploadType(uploadType); + } + + @Override + public GetScreenshot setUploadProtocol(java.lang.String uploadProtocol) { + return (GetScreenshot) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetScreenshot setUserIp(java.lang.String userIp) { + return (GetScreenshot) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetScreenshot setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public GetScreenshot setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public GetScreenshot setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + @Override + public GetScreenshot set(String parameterName, Object value) { + return (GetScreenshot) super.set(parameterName, value); + } + } + /** + * Returns the last 1 MB of serial port output from the specified instance. + * + * Create a request for the method "instances.getSerialPortOutput". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance for this request. + * @return the request + */ + public GetSerialPortOutput getSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetSerialPortOutput result = new GetSerialPortOutput(project, zone, instance); + initialize(result); + return result; + } + + public class GetSerialPortOutput extends ComputeRequest{@link GetSerialPortOutput#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance for this request. + * @since 1.13 + */ + protected GetSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SerialPortOutput.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -65151,6 +66358,22 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } + /** View of the instance. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance. */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); @@ -65644,27 +66867,29 @@ public ListReferrers set(String parameterName, Object value) { } } /** - * Perform a manual maintenance on the instance. + * Patches partner metadata of the specified instance. * - * Create a request for the method "instances.performMaintenance". + * Create a request for the method "instances.patchPartnerMetadata". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchPartnerMetadata#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.PartnerMetadata} * @return the request */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, instance); + public PatchPartnerMetadata patchPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.PartnerMetadata content) throws java.io.IOException { + PatchPartnerMetadata result = new PatchPartnerMetadata(project, zone, instance, content); initialize(result); return result; } - public class PerformMaintenance extends ComputeRequest{@link PatchPartnerMetadata#initialize(com.google.api.client.googleapis.services + * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.
* * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.PartnerMetadata} * @since 1.13 */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected PatchPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.PartnerMetadata content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -65714,63 +66940,63 @@ protected PerformMaintenance(java.lang.String project, java.lang.String zone, ja } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public PatchPartnerMetadata set$Xgafv(java.lang.String $Xgafv) { + return (PatchPartnerMetadata) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public PatchPartnerMetadata setAccessToken(java.lang.String accessToken) { + return (PatchPartnerMetadata) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public PatchPartnerMetadata setAlt(java.lang.String alt) { + return (PatchPartnerMetadata) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public PatchPartnerMetadata setCallback(java.lang.String callback) { + return (PatchPartnerMetadata) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public PatchPartnerMetadata setFields(java.lang.String fields) { + return (PatchPartnerMetadata) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public PatchPartnerMetadata setKey(java.lang.String key) { + return (PatchPartnerMetadata) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public PatchPartnerMetadata setOauthToken(java.lang.String oauthToken) { + return (PatchPartnerMetadata) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public PatchPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPartnerMetadata) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public PatchPartnerMetadata setQuotaUser(java.lang.String quotaUser) { + return (PatchPartnerMetadata) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public PatchPartnerMetadata setUploadType(java.lang.String uploadType) { + return (PatchPartnerMetadata) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public PatchPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPartnerMetadata) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public PatchPartnerMetadata setUserIp(java.lang.String userIp) { + return (PatchPartnerMetadata) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -65784,7 +67010,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + public PatchPartnerMetadata setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -65805,7 +67031,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public PerformMaintenance setZone(java.lang.String zone) { + public PatchPartnerMetadata setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -65826,7 +67052,254 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public PerformMaintenance setInstance(java.lang.String instance) { + public PatchPartnerMetadata setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public PatchPartnerMetadata setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchPartnerMetadata set(String parameterName, Object value) { + return (PatchPartnerMetadata) super.set(parameterName, value); + } + } + /** + * Perform a manual maintenance on the instance. + * + * Create a request for the method "instances.performMaintenance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @return the request + */ + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, instance); + initialize(result); + return result; + } + + public class PerformMaintenance extends ComputeRequest{@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @since 1.13 + */ + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); + } + + @Override + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); + } + + @Override + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); + } + + @Override + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); + } + + @Override + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); + } + + @Override + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); + } + + @Override + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); + } + + @Override + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + } + + @Override + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); + } + + @Override + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); + } + + @Override + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public PerformMaintenance setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public PerformMaintenance setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public PerformMaintenance setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), "Parameter instance must conform to the pattern " + @@ -72371,6 +73844,26 @@ public Update setInstance(java.lang.String instance) { return this; } + /** + * Whether to discard local SSDs from the instance during restart default value is false. + */ + @com.google.api.client.util.Key + private java.lang.Boolean discardLocalSsd; + + /** Whether to discard local SSDs from the instance during restart default value is false. + */ + public java.lang.Boolean getDiscardLocalSsd() { + return discardLocalSsd; + } + + /** + * Whether to discard local SSDs from the instance during restart default value is false. + */ + public Update setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { + this.discardLocalSsd = discardLocalSsd; + return this; + } + /** * Specifies the action to take when updating an instance even if the updated properties do * not require it. If not specified, then Compute Engine acts based on the minimum action that @@ -95553,6 +97046,12 @@ public Get set(String parameterName, Object value) { * Creates a network endpoint group in the specified project using the parameters that are included * in the request. * + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with + * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage + * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service + * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet + * NEGs):global API + * * Create a request for the method "networkEndpointGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional @@ -95582,6 +97081,12 @@ public class Insert extends ComputeRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -127717,66 +129225,72 @@ protected Update(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -127790,7 +129304,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -127800,18 +129314,18 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -127821,126 +129335,54 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the autoscaler to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String autoscaler; + private java.lang.String resource; - /** Name of the autoscaler to update. + /** Name or id of the resource for this request. */ - public java.lang.String getAutoscaler() { - return autoscaler; + public java.lang.String getResource() { + return resource; } - /** Name of the autoscaler to update. */ - public Update setAutoscaler(java.lang.String autoscaler) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.autoscaler = autoscaler; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.resource = resource; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the RegionBackendServices collection. - * - *The typical use is:
- *
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.RegionBackendServices.List request = compute.regionBackendServices().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public RegionBackendServices regionBackendServices() {
- return new RegionBackendServices();
- }
-
- /**
- * The "regionBackendServices" collection of methods.
- */
- public class RegionBackendServices {
-
/**
- * Deletes the specified regional BackendService resource.
+ * Updates an autoscaler in the specified project using the data included in the request.
*
- * Create a request for the method "regionBackendServices.delete".
+ * Create a request for the method "regionAutoscalers.update".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
* @param region Name of the region scoping this request.
- * @param backendService Name of the BackendService resource to delete.
+ * @param content the {@link com.google.api.services.compute.model.Autoscaler}
* @return the request
*/
- public Delete delete(java.lang.String project, java.lang.String region, java.lang.String backendService) throws java.io.IOException {
- Delete result = new Delete(project, region, backendService);
+ public Update update(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException {
+ Update result = new Update(project, region, content);
initialize(result);
return result;
}
- public class Delete extends ComputeRequest{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to delete. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String backendService) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Update(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) { + super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -127980,72 +129422,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128059,7 +129495,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -128080,7 +129516,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + public Update setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -128090,24 +129526,293 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the BackendService resource to delete. */ + /** Name of the autoscaler to update. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String autoscaler; - /** Name of the BackendService resource to delete. + /** Name of the autoscaler to update. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getAutoscaler() { + return autoscaler; } - /** Name of the BackendService resource to delete. */ - public Delete setBackendService(java.lang.String backendService) { + /** Name of the autoscaler to update. */ + public Update setAutoscaler(java.lang.String autoscaler) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.backendService = backendService; + this.autoscaler = autoscaler; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionBackendServices collection. + * + *The typical use is:
+ *
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionBackendServices.List request = compute.regionBackendServices().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionBackendServices regionBackendServices() {
+ return new RegionBackendServices();
+ }
+
+ /**
+ * The "regionBackendServices" collection of methods.
+ */
+ public class RegionBackendServices {
+
+ /**
+ * Deletes the specified regional BackendService resource.
+ *
+ * Create a request for the method "regionBackendServices.delete".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for this request.
+ * @param region Name of the region scoping this request.
+ * @param backendService Name of the BackendService resource to delete.
+ * @return the request
+ */
+ public Delete delete(java.lang.String project, java.lang.String region, java.lang.String backendService) throws java.io.IOException {
+ Delete result = new Delete(project, region, backendService);
+ initialize(result);
+ return result;
+ }
+
+ public class Delete extends ComputeRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String backendService) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 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 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); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the BackendService resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to delete. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to delete. */ + public Delete setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; return this; } @@ -132685,288 +134390,79 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the RegionDiskTypes collection. + * An accessor for creating requests from the RegionCompositeHealthChecks collection. * *The typical use is:
*
* {@code Compute compute = new Compute(...);}
- * {@code Compute.RegionDiskTypes.List request = compute.regionDiskTypes().list(parameters ...)}
+ * {@code Compute.RegionCompositeHealthChecks.List request = compute.regionCompositeHealthChecks().list(parameters ...)}
*
*
* @return the resource collection
*/
- public RegionDiskTypes regionDiskTypes() {
- return new RegionDiskTypes();
+ public RegionCompositeHealthChecks regionCompositeHealthChecks() {
+ return new RegionCompositeHealthChecks();
}
/**
- * The "regionDiskTypes" collection of methods.
+ * The "regionCompositeHealthChecks" collection of methods.
*/
- public class RegionDiskTypes {
+ public class RegionCompositeHealthChecks {
/**
- * Returns the specified regional disk type.
- *
- * Create a request for the method "regionDiskTypes.get".
- *
- * This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the
+ * specified project.
*
- * @param project Project ID for this request.
- * @param region The name of the region for this request.
- * @param diskType Name of the disk type to return.
- * @return the request
- */
- public Get get(java.lang.String project, java.lang.String region, java.lang.String diskType) throws java.io.IOException {
- Get result = new Get(project, region, diskType);
- initialize(result);
- return result;
- }
-
- public class Get extends ComputeRequest{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.
- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param diskType Name of the disk type to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String diskType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskType.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.diskType = com.google.api.client.util.Preconditions.checkNotNull(diskType, "Required parameter diskType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), - "Parameter diskType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @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 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 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); - } - - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Get setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the disk type to return. */ - @com.google.api.client.util.Key - private java.lang.String diskType; - - /** Name of the disk type to return. - */ - public java.lang.String getDiskType() { - return diskType; - } - - /** Name of the disk type to return. */ - public Get setDiskType(java.lang.String diskType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), - "Parameter diskType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.diskType = diskType; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of regional disk types available to the specified project. + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. * - * Create a request for the method "regionDiskTypes.list". + * Create a request for the method "regionCompositeHealthChecks.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region The name of the region for this request. + * @param project Name of the project scoping this request. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.
* - * @param project Project ID for this request. - * @param region The name of the region for this request. + * @param project Name of the project scoping this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionDiskTypeList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CompositeHealthCheckAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -132980,77 +134476,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String project) { + /** Name of the project scoping this request. */ + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -133060,27 +134556,6 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public List setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -133212,11 +134687,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -133241,7 +134750,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -133285,7 +134794,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -133308,7 +134817,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -133340,63 +134849,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; - /** - * An accessor for creating requests from the RegionDisks collection. - * - *The typical use is:
- *
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.RegionDisks.List request = compute.regionDisks().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public RegionDisks regionDisks() {
- return new RegionDisks();
- }
+ /** The Shared VPC service project id or service project number for which aggregated list request is
+ invoked for subnetworks list-usable api.
+ */
+ public java.lang.Long getServiceProjectNumber() {
+ return serviceProjectNumber;
+ }
- /**
- * The "regionDisks" collection of methods.
- */
- public class RegionDisks {
+ /**
+ * The Shared VPC service project id or service project number for which aggregated list
+ * request is invoked for subnetworks list-usable api.
+ */
+ public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) {
+ this.serviceProjectNumber = serviceProjectNumber;
+ return this;
+ }
+ @Override
+ public AggregatedList set(String parameterName, Object value) {
+ return (AggregatedList) super.set(parameterName, value);
+ }
+ }
/**
- * Adds existing resource policies to a regional disk. You can only add one policy which will be
- * applied to this disk for scheduling snapshot creation.
+ * Deletes the specified CompositeHealthCheck in the given region
*
- * Create a request for the method "regionDisks.addResourcePolicies".
+ * Create a request for the method "regionCompositeHealthChecks.delete".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
- * @param region The name of the region for this request.
- * @param disk The disk name for this request.
- * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest}
+ * @param region Name of the region scoping this request.
+ * @param compositeHealthCheck Name of the CompositeHealthCheck resource to delete.
* @return the request
*/
- public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest content) throws java.io.IOException {
- AddResourcePolicies result = new AddResourcePolicies(project, region, disk, content);
+ public Delete delete(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) throws java.io.IOException {
+ Delete result = new Delete(project, region, compositeHealthCheck);
initialize(result);
return result;
}
- public class AddResourcePolicies extends ComputeRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to delete. * @since 1.13 */ - protected AddResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -133439,72 +134943,72 @@ protected AddResourcePolicies(java.lang.String project, java.lang.String region, "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + this.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -133518,7 +135022,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddResourcePolicies setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -133528,18 +135032,18 @@ public AddResourcePolicies setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public AddResourcePolicies setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -133549,24 +135053,24 @@ public AddResourcePolicies setRegion(java.lang.String region) { return this; } - /** The disk name for this request. */ + /** Name of the CompositeHealthCheck resource to delete. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String compositeHealthCheck; - /** The disk name for this request. + /** Name of the CompositeHealthCheck resource to delete. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; } - /** The disk name for this request. */ - public AddResourcePolicies setDisk(java.lang.String disk) { + /** Name of the CompositeHealthCheck resource to delete. */ + public Delete setCompositeHealthCheck(java.lang.String compositeHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.disk = disk; + this.compositeHealthCheck = compositeHealthCheck; return this; } @@ -133614,38 +135118,38 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public AddResourcePolicies setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddResourcePolicies set(String parameterName, Object value) { - return (AddResourcePolicies) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Bulk create a set of disks. + * Returns the specified CompositeHealthCheck resource in the given region. * - * Create a request for the method "regionDisks.bulkInsert". + * Create a request for the method "regionCompositeHealthChecks.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to return. * @return the request */ - public BulkInsert bulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertDiskResource content) throws java.io.IOException { - BulkInsert result = new BulkInsert(project, region, content); + public Get get(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) throws java.io.IOException { + Get result = new Get(project, region, compositeHealthCheck); initialize(result); return result; } - public class BulkInsert extends ComputeRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to return. * @since 1.13 */ - protected BulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertDiskResource content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CompositeHealthCheck.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -133683,66 +135189,82 @@ protected BulkInsert(java.lang.String project, java.lang.String region, com.goog "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -133756,7 +135278,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public BulkInsert setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -133766,18 +135288,18 @@ public BulkInsert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public BulkInsert setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -133787,85 +135309,55 @@ public BulkInsert setRegion(java.lang.String region) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the CompositeHealthCheck resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String compositeHealthCheck; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the CompositeHealthCheck resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public BulkInsert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the CompositeHealthCheck resource to return. */ + public Get setCompositeHealthCheck(java.lang.String compositeHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.compositeHealthCheck = compositeHealthCheck; return this; } @Override - public BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using - * snapshots.insert instead, as that method supports more features, such as creating snapshots in a - * project different from the source disk project. + * Create a CompositeHealthCheck in the specified project in the given region using the parameters + * that are included in the request. * - * Create a request for the method "regionDisks.createSnapshot". + * Create a request for the method "regionCompositeHealthChecks.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} * @return the request */ - public CreateSnapshot createSnapshot(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { - CreateSnapshot result = new CreateSnapshot(project, region, disk, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CompositeHealthCheck content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class CreateSnapshot extends ComputeRequest{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} * @since 1.13 */ - protected CreateSnapshot(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CompositeHealthCheck content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -133909,72 +135395,66 @@ protected CreateSnapshot(java.lang.String project, java.lang.String region, java "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { - return (CreateSnapshot) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public CreateSnapshot setAccessToken(java.lang.String accessToken) { - return (CreateSnapshot) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public CreateSnapshot setAlt(java.lang.String alt) { - return (CreateSnapshot) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public CreateSnapshot setCallback(java.lang.String callback) { - return (CreateSnapshot) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public CreateSnapshot setFields(java.lang.String fields) { - return (CreateSnapshot) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public CreateSnapshot setKey(java.lang.String key) { - return (CreateSnapshot) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public CreateSnapshot setOauthToken(java.lang.String oauthToken) { - return (CreateSnapshot) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateSnapshot) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { - return (CreateSnapshot) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public CreateSnapshot setUploadType(java.lang.String uploadType) { - return (CreateSnapshot) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public CreateSnapshot setUserIp(java.lang.String userIp) { - return (CreateSnapshot) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -133988,7 +135468,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateSnapshot setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -133998,18 +135478,18 @@ public CreateSnapshot setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public CreateSnapshot setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -134019,27 +135499,6 @@ public CreateSnapshot setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk to snapshot. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the regional persistent disk to snapshot. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the regional persistent disk to snapshot. */ - public CreateSnapshot setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -134084,40 +135543,37 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public CreateSnapshot setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CreateSnapshot set(String parameterName, Object value) { - return (CreateSnapshot) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas - * of its data permanently and is irreversible. However, deleting a disk does not delete - * anysnapshots previously made from the disk. You must separatelydelete snapshots. + * Lists the CompositeHealthChecks for a project in the given region. * - * Create a request for the method "regionDisks.delete". + * Create a request for the method "regionCompositeHealthChecks.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to delete. + * @param region Name of the region scoping this request. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { - Delete result = new Delete(project, region, disk); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class Delete extends ComputeRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to delete. + * @param region Name of the region scoping this request. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String disk) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CompositeHealthCheckList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -134159,72 +135609,76 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "\\S{1,66}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -134238,7 +135692,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -134248,18 +135702,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -134269,103 +135723,302 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk to delete. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the regional persistent disk to delete. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the regional persistent disk to delete. */ - public Delete setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "\\S{1,66}"); - } - this.disk = disk; - return this; - } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns a specified regional persistent disk. + * Updates the specified regional CompositeHealthCheck resource with the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. * - * Create a request for the method "regionDisks.get". + * Create a request for the method "regionCompositeHealthChecks.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to return. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck to update. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { - Get result = new Get(project, region, disk); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck, com.google.api.services.compute.model.CompositeHealthCheck content) throws java.io.IOException { + Patch result = new Patch(project, region, compositeHealthCheck, content); initialize(result); return result; } - public class Get extends ComputeRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to return. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck to update. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String disk) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Disk.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck, com.google.api.services.compute.model.CompositeHealthCheck content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -134405,82 +136060,67 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @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(); + this.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -134494,7 +136134,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -134504,18 +136144,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -134525,54 +136165,106 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk to return. */ + /** + * Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and + * comply with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String compositeHealthCheck; - /** Name of the regional persistent disk to return. + /** Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and comply with + RFC1035. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; } - /** Name of the regional persistent disk to return. */ - public Get setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; + /** + * Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and + * comply with RFC1035. + */ + public Patch setCompositeHealthCheck(java.lang.String compositeHealthCheck) { + this.compositeHealthCheck = compositeHealthCheck; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionDisks.getIamPolicy". + * Create a request for the method "regionCompositeHealthChecks.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param project Project ID for this request. * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -134623,73 +136315,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l } @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -134703,7 +136385,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -134724,7 +136406,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -134745,7 +136427,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -134755,50 +136437,56 @@ public GetIamPolicy setResource(java.lang.String resource) { return this; } - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the RegionDiskTypes collection. + * + *The typical use is:
+ *
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionDiskTypes.List request = compute.regionDiskTypes().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionDiskTypes regionDiskTypes() {
+ return new RegionDiskTypes();
+ }
+
+ /**
+ * The "regionDiskTypes" collection of methods.
+ */
+ public class RegionDiskTypes {
+
/**
- * Creates a persistent regional disk in the specified project using the data included in the
- * request.
+ * Returns the specified regional disk type.
*
- * Create a request for the method "regionDisks.insert".
+ * Create a request for the method "regionDiskTypes.get".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link Insert#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
- * @param region Name of the region for this request.
- * @param content the {@link com.google.api.services.compute.model.Disk}
+ * @param region The name of the region for this request.
+ * @param diskType Name of the disk type to return.
* @return the request
*/
- public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Disk content) throws java.io.IOException {
- Insert result = new Insert(project, region, content);
+ public Get get(java.lang.String project, java.lang.String region, java.lang.String diskType) throws java.io.IOException {
+ Get result = new Get(project, region, diskType);
initialize(result);
return result;
}
- public class Insert extends ComputeRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.Disk} + * @param region The name of the region for this request. + * @param diskType Name of the disk type to return. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Disk content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String diskType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskType.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -134836,66 +136526,82 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.diskType = com.google.api.client.util.Preconditions.checkNotNull(diskType, "Required parameter diskType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), + "Parameter diskType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -134909,7 +136615,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -134919,18 +136625,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -134940,86 +136646,42 @@ public Insert setRegion(java.lang.String region) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Source image to restore onto a disk. This field is optional. */ + /** Name of the disk type to return. */ @com.google.api.client.util.Key - private java.lang.String sourceImage; + private java.lang.String diskType; - /** Source image to restore onto a disk. This field is optional. + /** Name of the disk type to return. */ - public java.lang.String getSourceImage() { - return sourceImage; + public java.lang.String getDiskType() { + return diskType; } - /** Source image to restore onto a disk. This field is optional. */ - public Insert setSourceImage(java.lang.String sourceImage) { - this.sourceImage = sourceImage; + /** Name of the disk type to return. */ + public Get setDiskType(java.lang.String diskType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), + "Parameter diskType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.diskType = diskType; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves the list of persistent disks contained within the specified region. + * Retrieves a list of regional disk types available to the specified project. * - * Create a request for the method "regionDisks.list". + * Create a request for the method "regionDiskTypes.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param region The name of the region for this request. * @return the request */ public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { @@ -135028,9 +136690,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequestThe typical use is:
+ *
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionDisks.List request = compute.regionDisks().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionDisks regionDisks() {
+ return new RegionDisks();
+ }
+
+ /**
+ * The "regionDisks" collection of methods.
+ */
+ public class RegionDisks {
+
/**
- * Removes resource policies from a regional disk.
+ * Adds existing resource policies to a regional disk. You can only add one policy which will be
+ * applied to this disk for scheduling snapshot creation.
*
- * Create a request for the method "regionDisks.removeResourcePolicies".
+ * Create a request for the method "regionDisks.addResourcePolicies".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote
- * operation.
+ * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
* @param region The name of the region for this request.
* @param disk The disk name for this request.
- * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest}
+ * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest}
* @return the request
*/
- public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest content) throws java.io.IOException {
- RemoveResourcePolicies result = new RemoveResourcePolicies(project, region, disk, content);
+ public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest content) throws java.io.IOException {
+ AddResourcePolicies result = new AddResourcePolicies(project, region, disk, content);
initialize(result);
return result;
}
- public class RemoveResourcePolicies extends ComputeRequest{@link AddResourcePolicies#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.
* * @param project Project ID for this request. * @param region The name of the region for this request. * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} + * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} * @since 1.13 */ - protected RemoveResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest content) { + protected AddResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -135523,63 +137209,63 @@ protected RemoveResourcePolicies(java.lang.String project, java.lang.String regi } @Override - public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { - return (RemoveResourcePolicies) super.setAccessToken(accessToken); + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); } @Override - public RemoveResourcePolicies setAlt(java.lang.String alt) { - return (RemoveResourcePolicies) super.setAlt(alt); + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); } @Override - public RemoveResourcePolicies setCallback(java.lang.String callback) { - return (RemoveResourcePolicies) super.setCallback(callback); + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); } @Override - public RemoveResourcePolicies setFields(java.lang.String fields) { - return (RemoveResourcePolicies) super.setFields(fields); + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); } @Override - public RemoveResourcePolicies setKey(java.lang.String key) { - return (RemoveResourcePolicies) super.setKey(key); + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); } @Override - public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (RemoveResourcePolicies) super.setOauthToken(oauthToken); + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); } @Override - public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { - return (RemoveResourcePolicies) super.setUploadType(uploadType); + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); } @Override - public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveResourcePolicies setUserIp(java.lang.String userIp) { - return (RemoveResourcePolicies) super.setUserIp(userIp); + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -135593,7 +137279,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveResourcePolicies setProject(java.lang.String project) { + public AddResourcePolicies setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -135614,7 +137300,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public RemoveResourcePolicies setRegion(java.lang.String region) { + public AddResourcePolicies setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -135635,7 +137321,7 @@ public java.lang.String getDisk() { } /** The disk name for this request. */ - public RemoveResourcePolicies setDisk(java.lang.String disk) { + public AddResourcePolicies setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), "Parameter disk must conform to the pattern " + @@ -135689,39 +137375,38 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public RemoveResourcePolicies setRequestId(java.lang.String requestId) { + public AddResourcePolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveResourcePolicies set(String parameterName, Object value) { - return (RemoveResourcePolicies) super.set(parameterName, value); + public AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); } } /** - * Resizes the specified regional persistent disk. + * Bulk create a set of disks. * - * Create a request for the method "regionDisks.resize". + * Create a request for the method "regionDisks.bulkInsert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation. + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. * - * @param project The project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksResizeRequest} + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} * @return the request */ - public Resize resize(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksResizeRequest content) throws java.io.IOException { - Resize result = new Resize(project, region, disk, content); + public BulkInsert bulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertDiskResource content) throws java.io.IOException { + BulkInsert result = new BulkInsert(project, region, content); initialize(result); return result; } - public class Resize extends ComputeRequest+ * {@link + * BulkInsert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param project The project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksResizeRequest} + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} * @since 1.13 */ - protected Resize(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksResizeRequest content) { + protected BulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertDiskResource content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -135762,86 +137444,80 @@ protected Resize(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); } @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); } @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); } @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); } @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); } @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); } @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); } @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); } @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); } @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); } @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); } @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) super.setUserIp(userIp); + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** The project ID for this request. */ - public Resize setProject(java.lang.String project) { + /** Project ID for this request. */ + public BulkInsert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -135851,18 +137527,18 @@ public Resize setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Resize setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public BulkInsert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -135872,27 +137548,6 @@ public Resize setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the regional persistent disk. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the regional persistent disk. */ - public Resize setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -135937,39 +137592,41 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Resize setRequestId(java.lang.String requestId) { + public BulkInsert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using + * snapshots.insert instead, as that method supports more features, such as creating snapshots in a + * project different from the source disk project. * - * Create a request for the method "regionDisks.setIamPolicy". + * Create a request for the method "regionDisks.createSnapshot". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to snapshot. + * @param content the {@link com.google.api.services.compute.model.Snapshot} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + public CreateSnapshot createSnapshot(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { + CreateSnapshot result = new CreateSnapshot(project, region, disk, content); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest{@link CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.
* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to snapshot. + * @param content the {@link com.google.api.services.compute.model.Snapshot} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected CreateSnapshot(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -136011,72 +137670,72 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { + return (CreateSnapshot) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public CreateSnapshot setAccessToken(java.lang.String accessToken) { + return (CreateSnapshot) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public CreateSnapshot setAlt(java.lang.String alt) { + return (CreateSnapshot) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public CreateSnapshot setCallback(java.lang.String callback) { + return (CreateSnapshot) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public CreateSnapshot setFields(java.lang.String fields) { + return (CreateSnapshot) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public CreateSnapshot setKey(java.lang.String key) { + return (CreateSnapshot) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public CreateSnapshot setOauthToken(java.lang.String oauthToken) { + return (CreateSnapshot) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateSnapshot) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { + return (CreateSnapshot) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public CreateSnapshot setUploadType(java.lang.String uploadType) { + return (CreateSnapshot) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public CreateSnapshot setUserIp(java.lang.String userIp) { + return (CreateSnapshot) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136090,7 +137749,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public CreateSnapshot setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -136100,18 +137759,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + /** Name of the region for this request. */ + public CreateSnapshot setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -136121,55 +137780,105 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the regional persistent disk to snapshot. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String disk; - /** Name or id of the resource for this request. + /** Name of the regional persistent disk to snapshot. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getDisk() { + return disk; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the regional persistent disk to snapshot. */ + public CreateSnapshot setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.disk = disk; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public CreateSnapshot setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public CreateSnapshot set(String parameterName, Object value) { + return (CreateSnapshot) super.set(parameterName, value); } } /** - * Sets the labels on the target regional disk. + * Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas + * of its data permanently and is irreversible. However, deleting a disk does not delete + * anysnapshots previously made from the disk. You must separatelydelete snapshots. * - * Create a request for the method "regionDisks.setLabels". + * Create a request for the method "regionDisks.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to delete. * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { + Delete result = new Delete(project, region, disk); initialize(result); return result; } - public class SetLabels extends ComputeRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to delete. * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String disk) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -136211,72 +137920,72 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136290,7 +137999,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -136300,18 +138009,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -136321,24 +138030,24 @@ public SetLabels setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the regional persistent disk to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String disk; - /** Name or id of the resource for this request. + /** Name of the regional persistent disk to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getDisk() { + return disk; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the regional persistent disk to delete. */ + public Delete setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); } - this.resource = resource; + this.disk = disk; return this; } @@ -136386,40 +138095,38 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public SetLabels setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Starts asynchronous replication. Must be invoked on the primary disk. + * Returns a specified regional persistent disk. * - * Create a request for the method "regionDisks.startAsyncReplication". + * Create a request for the method "regionDisks.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StartAsyncReplication#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to return. * @return the request */ - public StartAsyncReplication startAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest content) throws java.io.IOException { - StartAsyncReplication result = new StartAsyncReplication(project, region, disk, content); + public Get get(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { + Get result = new Get(project, region, disk); initialize(result); return result; } - public class StartAsyncReplication extends ComputeRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to return. * @since 1.13 */ - protected StartAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String disk) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Disk.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -136470,63 +138175,73 @@ protected StartAsyncReplication(java.lang.String project, java.lang.String regio } @Override - public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StartAsyncReplication) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StartAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StartAsyncReplication) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StartAsyncReplication setAlt(java.lang.String alt) { - return (StartAsyncReplication) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public StartAsyncReplication setCallback(java.lang.String callback) { - return (StartAsyncReplication) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public StartAsyncReplication setFields(java.lang.String fields) { - return (StartAsyncReplication) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public StartAsyncReplication setKey(java.lang.String key) { - return (StartAsyncReplication) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StartAsyncReplication) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StartAsyncReplication) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public StartAsyncReplication setUploadType(java.lang.String uploadType) { - return (StartAsyncReplication) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public StartAsyncReplication setUserIp(java.lang.String userIp) { - return (StartAsyncReplication) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136540,7 +138255,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StartAsyncReplication setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -136550,18 +138265,18 @@ public StartAsyncReplication setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public StartAsyncReplication setRegion(java.lang.String region) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -136571,18 +138286,18 @@ public StartAsyncReplication setRegion(java.lang.String region) { return this; } - /** The name of the persistent disk. */ + /** Name of the regional persistent disk to return. */ @com.google.api.client.util.Key private java.lang.String disk; - /** The name of the persistent disk. + /** Name of the regional persistent disk to return. */ public java.lang.String getDisk() { return disk; } - /** The name of the persistent disk. */ - public StartAsyncReplication setDisk(java.lang.String disk) { + /** Name of the regional persistent disk to return. */ + public Get setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), "Parameter disk must conform to the pattern " + @@ -136592,83 +138307,33 @@ public StartAsyncReplication setDisk(java.lang.String disk) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public StartAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public StartAsyncReplication set(String parameterName, Object value) { - return (StartAsyncReplication) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionDisks.stopAsyncReplication". + * Create a request for the method "regionDisks.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param region The name of the region for this request. - * @param disk The name of the persistent disk. + * @param resource Name or id of the resource for this request. * @return the request */ - public StopAsyncReplication stopAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { - StopAsyncReplication result = new StopAsyncReplication(project, region, disk); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); initialize(result); return result; } - public class StopAsyncReplication extends ComputeRequest+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. * @param region The name of the region for this request. - * @param disk The name of the persistent disk. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected StopAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -136709,72 +138375,82 @@ protected StopAsyncReplication(java.lang.String project, java.lang.String region "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopAsyncReplication) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StopAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopAsyncReplication) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StopAsyncReplication setAlt(java.lang.String alt) { - return (StopAsyncReplication) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public StopAsyncReplication setCallback(java.lang.String callback) { - return (StopAsyncReplication) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public StopAsyncReplication setFields(java.lang.String fields) { - return (StopAsyncReplication) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public StopAsyncReplication setKey(java.lang.String key) { - return (StopAsyncReplication) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopAsyncReplication) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopAsyncReplication) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public StopAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopAsyncReplication) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public StopAsyncReplication setUserIp(java.lang.String userIp) { - return (StopAsyncReplication) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136788,7 +138464,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopAsyncReplication setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -136809,7 +138485,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public StopAsyncReplication setRegion(java.lang.String region) { + public GetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -136819,107 +138495,71 @@ public StopAsyncReplication setRegion(java.lang.String region) { return this; } - /** The name of the persistent disk. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String resource; - /** The name of the persistent disk. + /** Name or id of the resource for this request. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getResource() { + return resource; } - /** The name of the persistent disk. */ - public StopAsyncReplication setDisk(java.lang.String disk) { + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.disk = disk; + this.resource = resource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public StopAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public StopAsyncReplication set(String parameterName, Object value) { - return (StopAsyncReplication) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the - * primary or secondary scope. + * Creates a persistent regional disk in the specified project using the data included in the + * request. * - * Create a request for the method "regionDisks.stopGroupAsyncReplication". + * Create a request for the method "regionDisks.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. This must be the region of the - primary or secondary disks - * in the consistency group. - * @param content the {@link com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} * @return the request */ - public StopGroupAsyncReplication stopGroupAsyncReplication(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource content) throws java.io.IOException { - StopGroupAsyncReplication result = new StopGroupAsyncReplication(project, region, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Disk content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class StopGroupAsyncReplication extends ComputeRequest{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region The name of the region for this request. This must be the region of the - primary or secondary disks - * in the consistency group. - * @param content the {@link com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} * @since 1.13 */ - protected StopGroupAsyncReplication(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Disk content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -136963,63 +138600,63 @@ protected StopGroupAsyncReplication(java.lang.String project, java.lang.String r } @Override - public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopGroupAsyncReplication) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public StopGroupAsyncReplication setAlt(java.lang.String alt) { - return (StopGroupAsyncReplication) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public StopGroupAsyncReplication setCallback(java.lang.String callback) { - return (StopGroupAsyncReplication) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public StopGroupAsyncReplication setFields(java.lang.String fields) { - return (StopGroupAsyncReplication) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public StopGroupAsyncReplication setKey(java.lang.String key) { - return (StopGroupAsyncReplication) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopGroupAsyncReplication) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { - return (StopGroupAsyncReplication) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -137033,7 +138670,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopGroupAsyncReplication setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -137043,25 +138680,18 @@ public StopGroupAsyncReplication setProject(java.lang.String project) { return this; } - /** - * The name of the region for this request. This must be the region of the primary or - * secondary disks in the consistency group. - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. This must be the region of the primary or secondary disks - in the consistency group. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** - * The name of the region for this request. This must be the region of the primary or - * secondary disks in the consistency group. - */ - public StopGroupAsyncReplication setRegion(java.lang.String region) { + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -137115,39 +138745,53 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public StopGroupAsyncReplication setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** Source image to restore onto a disk. This field is optional. */ + @com.google.api.client.util.Key + private java.lang.String sourceImage; + + /** Source image to restore onto a disk. This field is optional. + */ + public java.lang.String getSourceImage() { + return sourceImage; + } + + /** Source image to restore onto a disk. This field is optional. */ + public Insert setSourceImage(java.lang.String sourceImage) { + this.sourceImage = sourceImage; + return this; + } + @Override - public StopGroupAsyncReplication set(String parameterName, Object value) { - return (StopGroupAsyncReplication) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of persistent disks contained within the specified region. * - * Create a request for the method "regionDisks.testIamPermissions". + * Create a request for the method "regionDisks.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region for this request. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region for this request. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -137189,72 +138827,76 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -137268,7 +138910,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -137278,18 +138920,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + /** Name of the region for this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -137299,87 +138941,328 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Update the specified disk with the data included in the request. Update is performed only on - * selected fields included as part of update-mask. Only the following fields can be modified: - * user_license. - * - * Create a request for the method "regionDisks.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.Disk} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Disk content) throws java.io.IOException { - Update result = new Update(project, region, disk, content); - initialize(result); - return result; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - public class Update extends ComputeRequest{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote + * operation.{@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic + * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param project Project ID for this request. * @param region The name of the region for this request. * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.Disk} + * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Disk content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected RemoveResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -137401,63 +139284,63 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { + return (RemoveResourcePolicies) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public RemoveResourcePolicies setAlt(java.lang.String alt) { + return (RemoveResourcePolicies) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public RemoveResourcePolicies setCallback(java.lang.String callback) { + return (RemoveResourcePolicies) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public RemoveResourcePolicies setFields(java.lang.String fields) { + return (RemoveResourcePolicies) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public RemoveResourcePolicies setKey(java.lang.String key) { + return (RemoveResourcePolicies) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (RemoveResourcePolicies) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { + return (RemoveResourcePolicies) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public RemoveResourcePolicies setUserIp(java.lang.String userIp) { + return (RemoveResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -137471,7 +139354,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public RemoveResourcePolicies setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -137492,7 +139375,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public Update setRegion(java.lang.String region) { + public RemoveResourcePolicies setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -137513,7 +139396,7 @@ public java.lang.String getDisk() { } /** The disk name for this request. */ - public Update setDisk(java.lang.String disk) { + public RemoveResourcePolicies setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), "Parameter disk must conform to the pattern " + @@ -137523,21 +139406,6 @@ public Update setDisk(java.lang.String disk) { return this; } - @com.google.api.client.util.Key - private java.util.ListThe typical use is:
- *
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.RegionHealthCheckServices.List request = compute.regionHealthCheckServices().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public RegionHealthCheckServices regionHealthCheckServices() {
- return new RegionHealthCheckServices();
- }
-
- /**
- * The "regionHealthCheckServices" collection of methods.
- */
- public class RegionHealthCheckServices {
-
/**
- * Deletes the specified regional HealthCheckService.
+ * Resizes the specified regional persistent disk.
*
- * Create a request for the method "regionHealthCheckServices.delete".
+ * Create a request for the method "regionDisks.resize".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Resize#execute()} method to invoke the remote operation.
*
- * @param project Project ID for this request.
- * @param region Name of the region scoping this request.
- * @param healthCheckService Name of the HealthCheckService to delete. The name
- must be 1-63 characters long, and comply with
- * RFC1035.
+ * @param project The project ID for this request.
+ * @param region Name of the region for this request.
+ * @param disk Name of the regional persistent disk.
+ * @param content the {@link com.google.api.services.compute.model.RegionDisksResizeRequest}
* @return the request
*/
- public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) throws java.io.IOException {
- Delete result = new Delete(project, region, healthCheckService);
+ public Resize resize(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksResizeRequest content) throws java.io.IOException {
+ Resize result = new Resize(project, region, disk, content);
initialize(result);
return result;
}
- public class Delete extends ComputeRequest{@link + * Resize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to delete. The name - must be 1-63 characters long, and comply with - * RFC1035. + * @param project The project ID for this request. + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk. + * @param content the {@link com.google.api.services.compute.model.RegionDisksResizeRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Resize(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksResizeRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -137693,81 +139523,86 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Resize setUserIp(java.lang.String userIp) { + return (Resize) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + /** The project ID for this request. */ + public Resize setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -137777,18 +139612,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + /** Name of the region for this request. */ + public Resize setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -137798,26 +139633,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** - * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** Name of the regional persistent disk. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String disk; - /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with - RFC1035. + /** Name of the regional persistent disk. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getDisk() { + return disk; } - /** - * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - public Delete setHealthCheckService(java.lang.String healthCheckService) { - this.healthCheckService = healthCheckService; + /** Name of the regional persistent disk. */ + public Resize setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; return this; } @@ -137865,40 +139698,39 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Resize setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); } } /** - * Returns the specified regional HealthCheckService resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionHealthCheckServices.get". + * Create a request for the method "regionDisks.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to update. The name - must be 1-63 characters long, and comply with - * RFC1035. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) throws java.io.IOException { - Get result = new Get(project, region, healthCheckService); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); initialize(result); return result; } - public class Get extends ComputeRequest+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to update. The name - must be 1-63 characters long, and comply with - * RFC1035. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckService.class); + protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -137937,77 +139772,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService 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(); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138021,7 +139851,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -138031,18 +139861,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public SetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -138052,57 +139882,55 @@ public Get setRegion(java.lang.String region) { return this; } - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String resource; - /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with - RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getResource() { + return resource; } - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - public Get setHealthCheckService(java.lang.String healthCheckService) { - this.healthCheckService = healthCheckService; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Creates a regional HealthCheckService resource in the specified project and region using the data - * included in the request. + * Sets the labels on the target regional disk. * - * Create a request for the method "regionHealthCheckServices.insert". + * Create a request for the method "regionDisks.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheckService content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); initialize(result); return result; } - public class Insert extends ComputeRequest+ * {@link + * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheckService content) { + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -138140,66 +139972,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138213,7 +140051,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public SetLabels setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -138223,18 +140061,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -138244,6 +140082,27 @@ public Insert setRegion(java.lang.String region) { return this; } + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -138288,38 +140147,40 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Lists all the HealthCheckService resources that have been configured for the specified project in - * the given region. + * Starts asynchronous replication. Must be invoked on the primary disk. * - * Create a request for the method "regionHealthCheckServices.list". + * Create a request for the method "regionDisks.startAsyncReplication". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link StartAsyncReplication#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. + * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public StartAsyncReplication startAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest content) throws java.io.IOException { + StartAsyncReplication result = new StartAsyncReplication(project, region, disk, content); initialize(result); return result; } - public class List extends ComputeRequest{@link StartAsyncReplication#initialize(com.google.api.client.googleapis.service + * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. + * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckServicesList.class); + protected StartAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -138356,76 +140222,72 @@ protected List(java.lang.String project, java.lang.String region) { "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @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); + public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StartAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StartAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StartAsyncReplication) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StartAsyncReplication setAlt(java.lang.String alt) { + return (StartAsyncReplication) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StartAsyncReplication setCallback(java.lang.String callback) { + return (StartAsyncReplication) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StartAsyncReplication setFields(java.lang.String fields) { + return (StartAsyncReplication) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StartAsyncReplication setKey(java.lang.String key) { + return (StartAsyncReplication) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StartAsyncReplication) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StartAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StartAsyncReplication setUploadType(java.lang.String uploadType) { + return (StartAsyncReplication) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public StartAsyncReplication setUserIp(java.lang.String userIp) { + return (StartAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138439,7 +140301,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public StartAsyncReplication setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -138449,18 +140311,18 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public StartAsyncReplication setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -138470,301 +140332,104 @@ public List setRegion(java.lang.String region) { return this; } + /** The name of the persistent disk. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The name of the persistent disk. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The name of the persistent disk. */ + public StartAsyncReplication setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + return this; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private java.lang.String requestId; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You cannot combine constraints on multiple fields using regular expressions. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public StartAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public StartAsyncReplication set(String parameterName, Object value) { + return (StartAsyncReplication) super.set(parameterName, value); } } /** - * Updates the specified regional HealthCheckService resource with the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. * - * Create a request for the method "regionHealthCheckServices.patch". + * Create a request for the method "regionDisks.stopAsyncReplication". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthCheckService, com.google.api.services.compute.model.HealthCheckService content) throws java.io.IOException { - Patch result = new Patch(project, region, healthCheckService, content); + public StopAsyncReplication stopAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { + StopAsyncReplication result = new StopAsyncReplication(project, region, disk); initialize(result); return result; } - public class Patch extends ComputeRequest{@link StopAsyncReplication#initialize(com.google.api.client.googleapis.services + * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthCheckService, com.google.api.services.compute.model.HealthCheckService content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected StopAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -138806,67 +140470,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public StopAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopAsyncReplication) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public StopAsyncReplication setAlt(java.lang.String alt) { + return (StopAsyncReplication) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public StopAsyncReplication setCallback(java.lang.String callback) { + return (StopAsyncReplication) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public StopAsyncReplication setFields(java.lang.String fields) { + return (StopAsyncReplication) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public StopAsyncReplication setKey(java.lang.String key) { + return (StopAsyncReplication) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopAsyncReplication) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public StopAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopAsyncReplication) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public StopAsyncReplication setUserIp(java.lang.String userIp) { + return (StopAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138880,7 +140549,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public StopAsyncReplication setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -138890,18 +140559,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public StopAsyncReplication setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -138911,26 +140580,24 @@ public Patch setRegion(java.lang.String region) { return this; } - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** The name of the persistent disk. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String disk; - /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with - RFC1035. + /** The name of the persistent disk. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getDisk() { + return disk; } - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - public Patch setHealthCheckService(java.lang.String healthCheckService) { - this.healthCheckService = healthCheckService; + /** The name of the persistent disk. */ + public StopAsyncReplication setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; return this; } @@ -138978,61 +140645,42 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public StopAsyncReplication setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public StopAsyncReplication set(String parameterName, Object value) { + return (StopAsyncReplication) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the RegionHealthChecks collection. - * - *The typical use is:
- *
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.RegionHealthChecks.List request = compute.regionHealthChecks().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public RegionHealthChecks regionHealthChecks() {
- return new RegionHealthChecks();
- }
-
- /**
- * The "regionHealthChecks" collection of methods.
- */
- public class RegionHealthChecks {
-
/**
- * Deletes the specified HealthCheck resource.
+ * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the
+ * primary or secondary scope.
*
- * Create a request for the method "regionHealthChecks.delete".
+ * Create a request for the method "regionDisks.stopGroupAsyncReplication".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote
+ * operation.
*
* @param project Project ID for this request.
- * @param region Name of the region scoping this request.
- * @param healthCheck Name of the HealthCheck resource to delete.
+ * @param region The name of the region for this request. This must be the region of the
+ primary or secondary disks
+ * in the consistency group.
+ * @param content the {@link com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource}
* @return the request
*/
- public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthCheck) throws java.io.IOException {
- Delete result = new Delete(project, region, healthCheck);
+ public StopGroupAsyncReplication stopGroupAsyncReplication(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource content) throws java.io.IOException {
+ StopGroupAsyncReplication result = new StopGroupAsyncReplication(project, region, content);
initialize(result);
return result;
}
- public class Delete extends ComputeRequest{@link StopGroupAsyncReplication#initialize(com.google.api.client.googleapis.ser + * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to delete. + * @param region The name of the region for this request. This must be the region of the + primary or secondary disks + * in the consistency group. + * @param content the {@link com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected StopGroupAsyncReplication(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -139072,72 +140721,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopGroupAsyncReplication) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public StopGroupAsyncReplication setAlt(java.lang.String alt) { + return (StopGroupAsyncReplication) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public StopGroupAsyncReplication setCallback(java.lang.String callback) { + return (StopGroupAsyncReplication) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public StopGroupAsyncReplication setFields(java.lang.String fields) { + return (StopGroupAsyncReplication) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public StopGroupAsyncReplication setKey(java.lang.String key) { + return (StopGroupAsyncReplication) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopGroupAsyncReplication) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { + return (StopGroupAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139151,7 +140794,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public StopGroupAsyncReplication setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -139161,18 +140804,25 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * The name of the region for this request. This must be the region of the primary or + * secondary disks in the consistency group. + */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. This must be the region of the primary or secondary disks + in the consistency group. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + /** + * The name of the region for this request. This must be the region of the primary or + * secondary disks in the consistency group. + */ + public StopGroupAsyncReplication setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -139182,27 +140832,6 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to delete. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to delete. */ - public Delete setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -139247,38 +140876,39 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public StopGroupAsyncReplication setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public StopGroupAsyncReplication set(String parameterName, Object value) { + return (StopGroupAsyncReplication) super.set(parameterName, value); } } /** - * Returns the specified HealthCheck resource. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionHealthChecks.get". + * Create a request for the method "regionDisks.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to return. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String healthCheck) throws java.io.IOException { - Get result = new Get(project, region, healthCheck); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); initialize(result); return result; } - public class Get extends ComputeRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to return. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String healthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheck.class); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -139318,82 +140950,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139407,7 +141029,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -139417,18 +141039,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -139438,54 +141060,56 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String resource; - /** Name of the HealthCheck resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getResource() { + return resource; } - /** Name of the HealthCheck resource to return. */ - public Get setHealthCheck(java.lang.String healthCheck) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.healthCheck = healthCheck; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Creates a HealthCheck resource in the specified project using the data included in the request. + * Update the specified disk with the data included in the request. Update is performed only on + * selected fields included as part of update-mask. * - * Create a request for the method "regionHealthChecks.insert". + * Create a request for the method "regionDisks.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region The name of the region for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Update update(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Disk content) throws java.io.IOException { + Update result = new Update(project, region, disk, content); initialize(result); return result; } - public class Insert extends ComputeRequest{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region The name of the region for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Update(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Disk content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -139522,66 +141151,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139595,7 +141230,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -139605,18 +141240,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public Update setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -139626,6 +141261,42 @@ public Insert setRegion(java.lang.String region) { return this; } + /** The disk name for this request. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The disk name for this request. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The disk name for this request. */ + public Update setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + return this; + } + + @com.google.api.client.util.Key + private java.util.ListThe typical use is:
+ *
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionHealthAggregationPolicies.List request = compute.regionHealthAggregationPolicies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionHealthAggregationPolicies regionHealthAggregationPolicies() {
+ return new RegionHealthAggregationPolicies();
+ }
+
+ /**
+ * The "regionHealthAggregationPolicies" collection of methods.
+ */
+ public class RegionHealthAggregationPolicies {
+
/**
- * Retrieves the list of HealthCheck resources available to the specified project.
+ * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to
+ * the specified project.
*
- * Create a request for the method "regionHealthChecks.list".
+ * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to
+ * `true`.
+ *
+ * Create a request for the method "regionHealthAggregationPolicies.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
- * @param project Project ID for this request.
- * @param region Name of the region scoping this request.
+ * @param project Name of the project scoping this request.
* @return the request
*/
- public List list(java.lang.String project, java.lang.String region) throws java.io.IOException {
- List result = new List(project, region);
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
initialize(result);
return result;
}
- public class List extends ComputeRequest{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.
* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. + * @param project Name of the project scoping this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthAggregationPolicyAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -139749,77 +141457,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String project) { + /** Name of the project scoping this request. */ + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -139829,27 +141537,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -139981,11 +141668,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -140010,7 +141731,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -140054,7 +141775,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -140077,7 +141798,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -140109,40 +141830,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Deletes the specified HealthAggregationPolicy in the given region. * - * Create a request for the method "regionHealthChecks.patch". + * Create a request for the method "regionHealthAggregationPolicies.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, region, healthCheck, content); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) throws java.io.IOException { + Delete result = new Delete(project, region, healthAggregationPolicy); initialize(result); return result; } - public class Patch extends ComputeRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -140184,72 +141924,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + this.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), + "Parameter healthAggregationPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -140263,7 +142003,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -140284,7 +142024,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -140294,24 +142034,24 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to patch. */ + /** Name of the HealthAggregationPolicy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String healthAggregationPolicy; - /** Name of the HealthCheck resource to patch. + /** Name of the HealthAggregationPolicy resource to delete. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; } - /** Name of the HealthCheck resource to patch. */ - public Patch setHealthCheck(java.lang.String healthCheck) { + /** Name of the HealthAggregationPolicy resource to delete. */ + public Delete setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), + "Parameter healthAggregationPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.healthCheck = healthCheck; + this.healthAggregationPolicy = healthAggregationPolicy; return this; } @@ -140359,39 +142099,38 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. + * Returns the specified HealthAggregationPolicy resource in the given region. * - * Create a request for the method "regionHealthChecks.update". + * Create a request for the method "regionHealthAggregationPolicies.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. * @return the request */ - public Update update(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { - Update result = new Update(project, region, healthCheck, content); + public Get get(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) throws java.io.IOException { + Get result = new Get(project, region, healthAggregationPolicy); initialize(result); return result; } - public class Update extends ComputeRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthAggregationPolicy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -140432,72 +142170,82 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + this.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), + "Parameter healthAggregationPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -140511,7 +142259,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -140532,7 +142280,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String region) { + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -140542,173 +142290,79 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to update. */ + /** Name of the HealthAggregationPolicy resource to return. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String healthAggregationPolicy; - /** Name of the HealthCheck resource to update. + /** Name of the HealthAggregationPolicy resource to return. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; } - /** Name of the HealthCheck resource to update. */ - public Update setHealthCheck(java.lang.String healthCheck) { + /** Name of the HealthAggregationPolicy resource to return. */ + public Get setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), + "Parameter healthAggregationPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.healthCheck = healthCheck; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.healthAggregationPolicy = healthAggregationPolicy; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the RegionInstanceGroupManagers collection. - * - *The typical use is:
- *
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.RegionInstanceGroupManagers.List request = compute.regionInstanceGroupManagers().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public RegionInstanceGroupManagers regionInstanceGroupManagers() {
- return new RegionInstanceGroupManagers();
- }
-
- /**
- * The "regionInstanceGroupManagers" collection of methods.
- */
- public class RegionInstanceGroupManagers {
-
/**
- * Flags the specified instances to be immediately removed from the managed instance group.
- * Abandoning an instance does not delete the instance, but it does remove the instance from any
- * target pools that are applied by the managed instance group. This method reduces thetargetSize of
- * the managed instance group by the number of instances that you abandon. This operation is marked
- * asDONE when the action is scheduled even if the instances have not yet been removed from the
- * group. You must separately verify the status of the abandoning action with
- * thelistmanagedinstances method.
- *
- * If the group is part of a backend service that has enabled connection draining, it can take up to
- * 60 seconds after the connection draining duration has elapsed before the VM instance is removed
- * or deleted.
- *
- * You can specify a maximum of 1000 instances with this method per request.
+ * Create a HealthAggregationPolicy in the specified project in the given region using the
+ * parameters that are included in the request.
*
- * Create a request for the method "regionInstanceGroupManagers.abandonInstances".
+ * Create a request for the method "regionHealthAggregationPolicies.insert".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
* @param region Name of the region scoping this request.
- * @param instanceGroupManager Name of the managed instance group.
- * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest}
+ * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy}
* @return the request
*/
- public AbandonInstances abandonInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest content) throws java.io.IOException {
- AbandonInstances result = new AbandonInstances(project, region, instanceGroupManager, content);
+ public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthAggregationPolicy content) throws java.io.IOException {
+ Insert result = new Insert(project, region, content);
initialize(result);
return result;
}
- public class AbandonInstances extends ComputeRequest{@link AbandonInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogle - * ClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.
+ * parameters, call the {@link Insert#execute()} method to invoke the remote operation.{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} * @since 1.13 */ - protected AbandonInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthAggregationPolicy content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -140717,67 +142371,71 @@ protected AbandonInstances(java.lang.String project, java.lang.String region, ja "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { - return (AbandonInstances) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AbandonInstances setAccessToken(java.lang.String accessToken) { - return (AbandonInstances) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AbandonInstances setAlt(java.lang.String alt) { - return (AbandonInstances) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AbandonInstances setCallback(java.lang.String callback) { - return (AbandonInstances) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AbandonInstances setFields(java.lang.String fields) { - return (AbandonInstances) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AbandonInstances setKey(java.lang.String key) { - return (AbandonInstances) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AbandonInstances setOauthToken(java.lang.String oauthToken) { - return (AbandonInstances) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AbandonInstances) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AbandonInstances setQuotaUser(java.lang.String quotaUser) { - return (AbandonInstances) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AbandonInstances setUploadType(java.lang.String uploadType) { - return (AbandonInstances) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AbandonInstances) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AbandonInstances setUserIp(java.lang.String userIp) { - return (AbandonInstances) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -140791,7 +142449,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AbandonInstances setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -140812,27 +142470,16 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public AbandonInstances setRegion(java.lang.String region) { + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } this.region = region; return this; } - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -140877,63 +142524,60 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public AbandonInstances setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AbandonInstances set(String parameterName, Object value) { - return (AbandonInstances) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Apply updates to selected instances the managed instance group. + * Lists the HealthAggregationPolicies for a project in the given region. * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * Create a request for the method "regionHealthAggregationPolicies.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersApplyUpdatesRequest} + * @param region Name of the region scoping this request. * @return the request */ - public ApplyUpdatesToInstances applyUpdatesToInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersApplyUpdatesRequest content) throws java.io.IOException { - ApplyUpdatesToInstances result = new ApplyUpdatesToInstances(project, region, instanceGroupManager, content); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class ApplyUpdatesToInstances extends ComputeRequest{@link ApplyUpdatesToInstances#initialize(com.google.api.client.googleapis.servi - * ces.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * 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 project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersApplyUpdatesRequest} + * @param region Name of the region scoping this request. * @since 1.13 */ - protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersApplyUpdatesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthAggregationPolicyList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -140941,67 +142585,81 @@ protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String reg "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { - return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { - return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ApplyUpdatesToInstances setAlt(java.lang.String alt) { - return (ApplyUpdatesToInstances) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ApplyUpdatesToInstances setCallback(java.lang.String callback) { - return (ApplyUpdatesToInstances) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ApplyUpdatesToInstances setFields(java.lang.String fields) { - return (ApplyUpdatesToInstances) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ApplyUpdatesToInstances setKey(java.lang.String key) { - return (ApplyUpdatesToInstances) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { - return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { - return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { - return (ApplyUpdatesToInstances) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { - return (ApplyUpdatesToInstances) super.setUserIp(userIp); + 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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141015,7 +142673,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ApplyUpdatesToInstances setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -141025,103 +142683,352 @@ public ApplyUpdatesToInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request, should conform to RFC1035. */ - public ApplyUpdatesToInstances setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } this.region = region; return this; } - /** The name of the managed instance group, should conform to RFC1035. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String filter; - /** The name of the managed instance group, should conform to RFC1035. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getFilter() { + return filter; } - /** The name of the managed instance group, should conform to RFC1035. */ - public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public ApplyUpdatesToInstances set(String parameterName, Object value) { - return (ApplyUpdatesToInstances) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Creates instances with per-instance configurations in this regional managed instance group. - * Instances are created using the current instance template. The create instances operation is - * marked DONE if the createInstances request is successful. The underlying actions take additional - * time. You must separately verify the status of thecreating or actions with the - * listmanagedinstances method. + * Updates the specified regional HealthAggregationPolicy resource with the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. * - * Create a request for the method "regionInstanceGroupManagers.createInstances". + * Create a request for the method "regionHealthAggregationPolicies.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of theregion - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersCreateInstancesRequest} + * @param region Name of the region scoping this request. + * @param healthAggregationPolicy Name of the HealthAggregationPolicy to update. The name + must be 1-63 characters long, and comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} * @return the request */ - public CreateInstances createInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersCreateInstancesRequest content) throws java.io.IOException { - CreateInstances result = new CreateInstances(project, region, instanceGroupManager, content); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy, com.google.api.services.compute.model.HealthAggregationPolicy content) throws java.io.IOException { + Patch result = new Patch(project, region, healthAggregationPolicy, content); initialize(result); return result; } - public class CreateInstances extends ComputeRequest{@link CreateInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.
+ * 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 project Project ID for this request. - * @param region The name of theregion - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersCreateInstancesRequest} + * @param region Name of the region scoping this request. + * @param healthAggregationPolicy Name of the HealthAggregationPolicy to update. The name + must be 1-63 characters long, and comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} * @since 1.13 */ - protected CreateInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersCreateInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy, com.google.api.services.compute.model.HealthAggregationPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -141129,67 +143036,72 @@ protected CreateInstances(java.lang.String project, java.lang.String region, jav "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); } @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141203,7 +143115,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateInstances setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -141213,45 +143125,47 @@ public CreateInstances setProject(java.lang.String project) { return this; } - /** - * The name of theregion where the managed instance group is located. It should conform to - * RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of theregion where the managed instance group is located. It should conform to RFC1035. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** - * The name of theregion where the managed instance group is located. It should conform to - * RFC1035. - */ - public CreateInstances setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } this.region = region; return this; } /** - * The name of the managed instance group. It should conform to RFC1035. + * Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and + * comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String healthAggregationPolicy; - /** The name of the managed instance group. It should conform to RFC1035. + /** Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and comply + with RFC1035. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; } /** - * The name of the managed instance group. It should conform to RFC1035. + * Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and + * comply with RFC1035. */ - public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + public Patch setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { + this.healthAggregationPolicy = healthAggregationPolicy; return this; } @@ -141263,7 +143177,7 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -141276,7 +143190,8 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -141293,64 +143208,73 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public CreateInstances setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes the specified managed instance group and all of the instances in that group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.delete". + * Create a request for the method "regionHealthAggregationPolicies.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group to delete. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { - Delete result = new Delete(project, region, instanceGroupManager); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); initialize(result); return result; } - public class Delete extends ComputeRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group to delete. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -141358,67 +143282,77 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141432,7 +143366,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -141442,242 +143376,214 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } this.region = region; return this; } - /** Name of the managed instance group to delete. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** Name of the managed instance group to delete. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** Name of the managed instance group to delete. */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * An accessor for creating requests from the RegionHealthCheckServices collection. + * + *The typical use is:
+ *
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionHealthCheckServices.List request = compute.regionHealthCheckServices().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionHealthCheckServices regionHealthCheckServices() {
+ return new RegionHealthCheckServices();
+ }
- /**
- * An optional request ID to identify requests. Specify a unique request ID so that if you
- * must retry your request, the server will know to ignore the request if it has already been
- * completed.
- *
- * For example, consider a situation where you make an initial request and the request times
- * out. If you make the request again with the same request ID, the server can check if
- * original operation with the same request ID was received, and if so, will ignore the second
- * request. This prevents clients from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is not supported
- * (00000000-0000-0000-0000-000000000000).
- */
- public Delete setRequestId(java.lang.String requestId) {
- this.requestId = requestId;
- return this;
- }
+ /**
+ * The "regionHealthCheckServices" collection of methods.
+ */
+ public class RegionHealthCheckServices {
- @Override
- public Delete set(String parameterName, Object value) {
- return (Delete) super.set(parameterName, value);
- }
- }
/**
- * Flags the specified instances in the managed instance group to be immediately deleted. The
- * instances are also removed from any target pools of which they were a member. This method reduces
- * thetargetSize of the managed instance group by the number of instances that you delete. The
- * deleteInstances operation is marked DONE if the deleteInstances request is successful. The
- * underlying actions take additional time. You must separately verify the status of thedeleting
- * action with thelistmanagedinstances method.
- *
- * If the group is part of a backend service that has enabled connection draining, it can take up to
- * 60 seconds after the connection draining duration has elapsed before the VM instance is removed
- * or deleted.
+ * Retrieves the list of all HealthCheckService resources, regional and global, available to the
+ * specified project.
*
- * You can specify a maximum of 1000 instances with this method per request.
+ * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to
+ * `true`.
*
- * Create a request for the method "regionInstanceGroupManagers.deleteInstances".
+ * Create a request for the method "regionHealthCheckServices.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
- * @param project Project ID for this request.
- * @param region Name of the region scoping this request.
- * @param instanceGroupManager Name of the managed instance group.
- * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest}
+ * @param project Name of the project scoping this request.
* @return the request
*/
- public DeleteInstances deleteInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest content) throws java.io.IOException {
- DeleteInstances result = new DeleteInstances(project, region, instanceGroupManager, content);
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
initialize(result);
return result;
}
- public class DeleteInstances extends ComputeRequest{@link DeleteInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *
{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the * constructor.
* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest} + * @param project Name of the project scoping this request. * @since 1.13 */ - protected DeleteInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckServiceAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) super.setUserIp(userIp); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public DeleteInstances setProject(java.lang.String project) { + /** Name of the project scoping this request. */ + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -141687,139 +143593,382 @@ public DeleteInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** Name of the region scoping this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFilter() { + return filter; } - /** Name of the region scoping this request. */ - public DeleteInstances setRegion(java.lang.String region) { - this.region = region; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** Name of the managed instance group. */ + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.Boolean includeAllScopes; - /** Name of the managed instance group. + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Name of the managed instance group. */ - public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public DeleteInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public DeleteInstances set(String parameterName, Object value) { - return (DeleteInstances) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Deletes selected per-instance configurations for the managed instance group. + * Deletes the specified regional HealthCheckService. * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * Create a request for the method "regionHealthCheckServices.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagerDeleteInstanceConfigReq} + * @param region Name of the region scoping this request. + * @param healthCheckService Name of the HealthCheckService to delete. The name + must be 1-63 characters long, and comply with + * RFC1035. * @return the request */ - public DeletePerInstanceConfigs deletePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagerDeleteInstanceConfigReq content) throws java.io.IOException { - DeletePerInstanceConfigs result = new DeletePerInstanceConfigs(project, region, instanceGroupManager, content); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) throws java.io.IOException { + Delete result = new Delete(project, region, healthCheckService); initialize(result); return result; } - public class DeletePerInstanceConfigs extends ComputeRequest{@link DeletePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * 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 project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagerDeleteInstanceConfigReq} + * @param region Name of the region scoping this request. + * @param healthCheckService Name of the HealthCheckService to delete. The name + must be 1-63 characters long, and comply with + * RFC1035. * @since 1.13 */ - protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagerDeleteInstanceConfigReq content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -141827,67 +143976,72 @@ protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String re "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); } @Override - public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DeletePerInstanceConfigs setAlt(java.lang.String alt) { - return (DeletePerInstanceConfigs) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DeletePerInstanceConfigs setCallback(java.lang.String callback) { - return (DeletePerInstanceConfigs) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DeletePerInstanceConfigs setFields(java.lang.String fields) { - return (DeletePerInstanceConfigs) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DeletePerInstanceConfigs setKey(java.lang.String key) { - return (DeletePerInstanceConfigs) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (DeletePerInstanceConfigs) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (DeletePerInstanceConfigs) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141901,7 +144055,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeletePerInstanceConfigs setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -141911,73 +144065,139 @@ public DeletePerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request, should conform to RFC1035. */ - public DeletePerInstanceConfigs setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } this.region = region; return this; } - /** The name of the managed instance group. It should conform to RFC1035. */ + /** + * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply + * with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String healthCheckService; - /** The name of the managed instance group. It should conform to RFC1035. + /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with + RFC1035. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthCheckService() { + return healthCheckService; } - /** The name of the managed instance group. It should conform to RFC1035. */ - public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply + * with RFC1035. + */ + public Delete setHealthCheckService(java.lang.String healthCheckService) { + this.healthCheckService = healthCheckService; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public DeletePerInstanceConfigs set(String parameterName, Object value) { - return (DeletePerInstanceConfigs) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns all of the details about the specified managed instance group. + * Returns the specified regional HealthCheckService resource. * - * Create a request for the method "regionInstanceGroupManagers.get". + * Create a request for the method "regionHealthCheckServices.get". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group to return. + * @param healthCheckService Name of the HealthCheckService to update. The name + must be 1-63 characters long, and comply with + * RFC1035. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { - Get result = new Get(project, region, instanceGroupManager); + public Get get(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) throws java.io.IOException { + Get result = new Get(project, region, healthCheckService); initialize(result); return result; } - public class Get extends ComputeRequest {@link
@@ -141986,11 +144206,13 @@ public class Get extends ComputeRequest {@link
@@ -142179,10 +144411,10 @@ public class Insert extends ComputeRequest {@link
@@ -142384,7 +144631,7 @@ public class List extends ComputeRequest
- * {@link
- * ListErrors#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link
+ * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
+ * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AbandonInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogle
+ * ClientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link ApplyUpdatesToInstances#initialize(com.google.api.client.googleapis.servi
+ * ces.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link CreateInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC
+ * lientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link DeleteInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC
+ * lientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link DeletePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv
+ * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * ListErrors#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * GetVersion#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * GetVersion#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor.
+ * {@link
+ * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
* {@link
- * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor.
- * {@link
- * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor.
- * {@link
- * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
- * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
@@ -196521,10 +210550,11 @@ public class Delete extends ComputeRequest {@link
@@ -196735,23 +210759,19 @@ public class Get extends ComputeRequest {@link
@@ -196909,10 +210928,10 @@ public class Insert extends ComputeRequest {@link
@@ -197095,7 +211114,7 @@ public class List extends ComputeRequest {@link ListAvailableFeatures#initialize(com.google.api.client.googleapis.service
+ * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
@@ -198208,19 +212640,30 @@ public class Get extends ComputeRequest {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
@@ -198560,16 +212843,23 @@ public class List extends ComputeRequest The typical use is: {@link ListAvailableFeatures#initialize(com.google.api.client.googleapis.service
- * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
- * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * 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. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor.
+ * {@link
+ * ListDisks#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link
+ * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor.
- * {@link
- * ListDisks#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link ExpandIpCidrRange#initialize(com.google.api.client.googleapis.services.AbstractGoogl
+ * eClientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor.
+ * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.
* {@link
- * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
- * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
- * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor.
+ * {@link
+ * ListUsable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link SetPrivateIpGoogleAccess#initialize(com.google.api.client.googleapis.serv
+ * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor.
- * {@link
- * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
@@ -205179,11 +220193,10 @@ public class Insert extends ComputeRequest {@link
@@ -205394,23 +220376,16 @@ public class List extends ComputeRequest {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is:
- * {@link
- * ListUsable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
- * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * 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.
- * {@link
- * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link SetPrivateIpGoogleAccess#initialize(com.google.api.client.googleapis.serv
- * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
- * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetUrlMap#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
- * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * 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. The typical use is: {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * 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. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link SetCertificateMap#initialize(com.google.api.client.googleapis.services.AbstractGoogl
+ * eClientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link SetQuicOverride#initialize(com.google.api.client.googleapis.services.AbstractGoogleC
+ * lientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link
- * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetSslPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
@@ -210152,11 +225489,12 @@ public class SetUrlMap extends ComputeRequest The typical use is: {@link
@@ -210863,10 +226207,11 @@ public class Delete extends ComputeRequest {@link
@@ -211077,21 +226453,28 @@ public class Get extends ComputeRequest {@link
@@ -211251,10 +226659,11 @@ public class Insert extends ComputeRequest {@link
@@ -211434,16 +226874,23 @@ public class List extends ComputeRequest {@link
- * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link SetCertificateMap#initialize(com.google.api.client.googleapis.services.AbstractGoogl
+ * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation.
+ * {@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl
* eClientRequest)} must be called to initialize this instance immediately after invoking the
* constructor. {@link SetQuicOverride#initialize(com.google.api.client.googleapis.services.AbstractGoogleC
- * lientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A
+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote
+ * operation. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
* bstractGoogleClientRequest)} must be called to initialize this instance immediately after
* invoking the constructor. The typical use is:
- * {@link
- * SetSslPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link AddHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor.
+ * parameters, call the {@link AddInstance#execute()} method to invoke the remote operation.
* {@link
- * SetUrlMap#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * AddInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
@@ -213656,11 +228758,11 @@ public class Delete extends ComputeRequest {@link
@@ -213902,28 +229004,28 @@ public class Get extends ComputeRequest {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * GetHealth#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl
- * eClientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
- * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link RemoveHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogl
+ * eClientRequest)} must be called to initialize this instance immediately after invoking the
* constructor. {@link RemoveInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor.
+ * {@link
+ * SetBackup#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl
+ * eClientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is:
- * {@link
- * GetHealth#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
@@ -216860,11 +231688,10 @@ public class Insert extends ComputeRequest {@link
@@ -217075,23 +231871,16 @@ public class List extends ComputeRequest {@link RemoveHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogl
+ * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation.
+ * {@link SetBackendService#initialize(com.google.api.client.googleapis.services.AbstractGoogl
* eClientRequest)} must be called to initialize this instance immediately after invoking the
* constructor. {@link SetCertificateMap#initialize(com.google.api.client.googleapis.services.AbstractGoogl
+ * eClientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link RemoveInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation.
+ * {@link SetProxyHeader#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
* ientRequest)} must be called to initialize this instance immediately after invoking the
* constructor.
- * {@link
- * SetBackup#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl
- * eClientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor.
+ * {@link
+ * SetSslPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. The typical use is: {@link
@@ -218749,10 +234043,10 @@ public class Delete extends ComputeRequest {@link
@@ -218963,21 +234257,21 @@ public class Get extends ComputeRequest {@link
@@ -219137,10 +234431,10 @@ public class Insert extends ComputeRequest {@link
@@ -219323,7 +234617,7 @@ public class List extends ComputeRequest {@link SetCertificateMap#initialize(com.google.api.client.googleapis.services.AbstractGoogl
- * eClientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor.
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionHealthChecks.List request = compute.regionHealthChecks().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionHealthChecks regionHealthChecks() {
+ return new RegionHealthChecks();
+ }
+
+ /**
+ * The "regionHealthChecks" collection of methods.
+ */
+ public class RegionHealthChecks {
+
+ /**
+ * Deletes the specified HealthCheck resource.
+ *
+ * Create a request for the method "regionHealthChecks.delete".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for this request.
+ * @param region Name of the region scoping this request.
+ * @param healthCheck Name of the HealthCheck resource to delete.
+ * @return the request
+ */
+ public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthCheck) throws java.io.IOException {
+ Delete result = new Delete(project, region, healthCheck);
+ initialize(result);
+ return result;
+ }
+
+ public class Delete extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionHealthSources.List request = compute.regionHealthSources().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionHealthSources regionHealthSources() {
+ return new RegionHealthSources();
+ }
+
+ /**
+ * The "regionHealthSources" collection of methods.
+ */
+ public class RegionHealthSources {
+
+ /**
+ * Retrieves the list of all HealthSource resources (all regional) available to the specified
+ * project.
+ *
+ * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
+ * `true`.
+ *
+ * Create a request for the method "regionHealthSources.aggregatedList".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
+ *
+ * @param project Name of the project scoping this request.
+ * @return the request
+ */
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
+ initialize(result);
+ return result;
+ }
+
+ public class AggregatedList extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionInstanceGroupManagerResizeRequests.List request = compute.regionInstanceGroupManagerResizeRequests().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionInstanceGroupManagerResizeRequests regionInstanceGroupManagerResizeRequests() {
+ return new RegionInstanceGroupManagerResizeRequests();
+ }
+
+ /**
+ * The "regionInstanceGroupManagerResizeRequests" collection of methods.
+ */
+ public class RegionInstanceGroupManagerResizeRequests {
+
+ /**
+ * Cancels the specified resize request. Cancelled resize request no longer waits for the resources
+ * to be provisioned. Cancel is only possible for requests that are in accepted state.
+ *
+ * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for this request.
+ * @param region The name of the region
+ scoping this request. Name should conform to RFC1035.
+ * @param instanceGroupManager The name of the managed instance group.
+ Name should conform to RFC1035 or be a resource ID.
+ * @param resizeRequest The name of the resize request to cancel.
+ Name should conform to RFC1035 or be a resource ID.
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException {
+ Cancel result = new Cancel(project, region, instanceGroupManager, resizeRequest);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.RegionInstanceGroupManagers.List request = compute.regionInstanceGroupManagers().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RegionInstanceGroupManagers regionInstanceGroupManagers() {
+ return new RegionInstanceGroupManagers();
+ }
+
+ /**
+ * The "regionInstanceGroupManagers" collection of methods.
+ */
+ public class RegionInstanceGroupManagers {
+
+ /**
+ * Flags the specified instances to be immediately removed from the managed instance group.
+ * Abandoning an instance does not delete the instance, but it does remove the instance from any
+ * target pools that are applied by the managed instance group. This method reduces thetargetSize of
+ * the managed instance group by the number of instances that you abandon. This operation is marked
+ * asDONE when the action is scheduled even if the instances have not yet been removed from the
+ * group. You must separately verify the status of the abandoning action with
+ * thelistmanagedinstances method.
+ *
+ * If the group is part of a backend service that has enabled connection draining, it can take up to
+ * 60 seconds after the connection draining duration has elapsed before the VM instance is removed
+ * or deleted.
+ *
+ * You can specify a maximum of 1000 instances with this method per request.
+ *
+ * Create a request for the method "regionInstanceGroupManagers.abandonInstances".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for this request.
+ * @param region Name of the region scoping this request.
+ * @param instanceGroupManager Name of the managed instance group.
+ * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest}
+ * @return the request
+ */
+ public AbandonInstances abandonInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest content) throws java.io.IOException {
+ AbandonInstances result = new AbandonInstances(project, region, instanceGroupManager, content);
+ initialize(result);
+ return result;
+ }
+
+ public class AbandonInstances extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.ReservationSlots.List request = compute.reservationSlots().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public ReservationSlots reservationSlots() {
+ return new ReservationSlots();
+ }
+
+ /**
+ * The "reservationSlots" collection of methods.
+ */
+ public class ReservationSlots {
+
+ /**
+ * Retrieves information about the specified reservation slot.
+ *
+ * Create a request for the method "reservationSlots.get".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param project The project ID for this request.
+ * @param zone The name of the zone for this request, formatted as RFC1035.
+ * @param parentName The name of the parent reservation and parent block, formatted as
+ reservations/{reservation_name}/re
+ * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name}
+ * @param reservationSlot The name of the reservation slot, formatted as RFC1035 or a resource ID
+ number.
+ * @return the request
+ */
+ public Get get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) throws java.io.IOException {
+ Get result = new Get(project, zone, parentName, reservationSlot);
+ initialize(result);
+ return result;
+ }
+
+ public class Get extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.SslCertificates.List request = compute.sslCertificates().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public SslCertificates sslCertificates() {
+ return new SslCertificates();
+ }
+
+ /**
+ * The "sslCertificates" collection of methods.
+ */
+ public class SslCertificates {
+
/**
- * Retrieves the list of Snapshot resources contained within the specified project.
+ * Retrieves the list of all SslCertificate resources, regional and global, available to the
+ * specified project.
*
- * Create a request for the method "snapshots.list".
+ * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
+ * `true`.
+ *
+ * Create a request for the method "sslCertificates.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
- * @param project Project ID for this request.
+ * @param project Name of the project scoping this request.
* @return the request
*/
- public List list(java.lang.String project) throws java.io.IOException {
- List result = new List(project);
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
initialize(result);
return result;
}
- public class List extends ComputeRequest
* {@code Compute compute = new Compute(...);}
- * {@code Compute.SslCertificates.List request = compute.sslCertificates().list(parameters ...)}
+ * {@code Compute.SslPolicies.List request = compute.sslPolicies().list(parameters ...)}
*
*
* @return the resource collection
*/
- public SslCertificates sslCertificates() {
- return new SslCertificates();
+ public SslPolicies sslPolicies() {
+ return new SslPolicies();
}
/**
- * The "sslCertificates" collection of methods.
+ * The "sslPolicies" collection of methods.
*/
- public class SslCertificates {
+ public class SslPolicies {
/**
- * Retrieves the list of all SslCertificate resources, regional and global, available to the
- * specified project.
+ * Retrieves the list of all SslPolicy resources, regional and global, available to the specified
+ * project.
*
* To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
* `true`.
*
- * Create a request for the method "sslCertificates.aggregatedList".
+ * Create a request for the method "sslPolicies.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
* parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
@@ -196030,21 +210059,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO
return result;
}
- public class AggregatedList extends ComputeRequest
* {@code Compute compute = new Compute(...);}
- * {@code Compute.SslPolicies.List request = compute.sslPolicies().list(parameters ...)}
+ * {@code Compute.StoragePoolTypes.List request = compute.storagePoolTypes().list(parameters ...)}
*
*
* @return the resource collection
*/
- public SslPolicies sslPolicies() {
- return new SslPolicies();
+ public StoragePoolTypes storagePoolTypes() {
+ return new StoragePoolTypes();
}
/**
- * The "sslPolicies" collection of methods.
+ * The "storagePoolTypes" collection of methods.
*/
- public class SslPolicies {
+ public class StoragePoolTypes {
/**
- * Retrieves the list of all SslPolicy resources, regional and global, available to the specified
- * project.
+ * Retrieves an aggregated list of storage pool types.
*
* To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
* `true`.
*
- * Create a request for the method "sslPolicies.aggregatedList".
+ * Create a request for the method "storagePoolTypes.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
* parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
- * @param project Name of the project scoping this request.
+ * @param project Project ID for this request.
* @return the request
*/
public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
@@ -197508,21 +212146,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO
return result;
}
- public class AggregatedList extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.StoragePools.List request = compute.storagePools().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public StoragePools storagePools() {
+ return new StoragePools();
+ }
+
+ /**
+ * The "storagePools" collection of methods.
+ */
+ public class StoragePools {
+
/**
- * Lists all features that can be specified in the SSL policy when using custom profile.
+ * Retrieves an aggregated list of storage pools.
*
- * Create a request for the method "sslPolicies.listAvailableFeatures".
+ * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
+ * `true`.
+ *
+ * Create a request for the method "storagePools.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote
- * operation.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
* @return the request
*/
- public ListAvailableFeatures listAvailableFeatures(java.lang.String project) throws java.io.IOException {
- ListAvailableFeatures result = new ListAvailableFeatures(project);
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
initialize(result);
return result;
}
- public class ListAvailableFeatures extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.StoragePoolTypes.List request = compute.storagePoolTypes().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public StoragePoolTypes storagePoolTypes() {
- return new StoragePoolTypes();
- }
-
- /**
- * The "storagePoolTypes" collection of methods.
- */
- public class StoragePoolTypes {
-
/**
- * Retrieves an aggregated list of storage pool types.
- *
- * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
- * `true`.
+ * Returns a specified storage pool. Gets a list of available storage pools by making a list()
+ * request.
*
- * Create a request for the method "storagePoolTypes.aggregatedList".
+ * Create a request for the method "storagePools.get".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param storagePool Name of the storage pool to return.
* @return the request
*/
- public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
- AggregatedList result = new AggregatedList(project);
+ public Get get(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException {
+ Get result = new Get(project, zone, storagePool);
initialize(result);
return result;
}
- public class AggregatedList extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.StoragePools.List request = compute.storagePools().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public StoragePools storagePools() {
- return new StoragePools();
- }
-
- /**
- * The "storagePools" collection of methods.
- */
- public class StoragePools {
-
/**
- * Retrieves an aggregated list of storage pools.
- *
- * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
- * `true`.
+ * Lists the disks in a specified storage pool.
*
- * Create a request for the method "storagePools.aggregatedList".
+ * Create a request for the method "storagePools.listDisks".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
+ * parameters, call the {@link ListDisks#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param storagePool Name of the storage pool to list disks of.
* @return the request
*/
- public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
- AggregatedList result = new AggregatedList(project);
+ public ListDisks listDisks(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException {
+ ListDisks result = new ListDisks(project, zone, storagePool);
initialize(result);
return result;
}
- public class AggregatedList extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.Subnetworks.List request = compute.subnetworks().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Subnetworks subnetworks() {
+ return new Subnetworks();
+ }
+
+ /**
+ * The "subnetworks" collection of methods.
+ */
+ public class Subnetworks {
+
/**
- * Retrieves a list of storage pools contained within the specified zone.
+ * Retrieves an aggregated list of subnetworks.
*
- * Create a request for the method "storagePools.list".
+ * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
+ * `true`.
+ *
+ * Create a request for the method "subnetworks.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
- * @param zone The name of the zone for this request.
* @return the request
*/
- public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException {
- List result = new List(project, zone);
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
initialize(result);
return result;
}
- public class List extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.Subnetworks.List request = compute.subnetworks().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Subnetworks subnetworks() {
- return new Subnetworks();
- }
-
- /**
- * The "subnetworks" collection of methods.
- */
- public class Subnetworks {
-
/**
- * Retrieves an aggregated list of subnetworks.
- *
- * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
- * `true`.
+ * Retrieves an aggregated list of all usable subnetworks in the project.
*
- * Create a request for the method "subnetworks.aggregatedList".
+ * Create a request for the method "subnetworks.listUsable".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
+ * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
* @return the request
*/
- public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
- AggregatedList result = new AggregatedList(project);
+ public ListUsable listUsable(java.lang.String project) throws java.io.IOException {
+ ListUsable result = new ListUsable(project);
initialize(result);
return result;
}
- public class AggregatedList extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.TargetGrpcProxies.List request = compute.targetGrpcProxies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public TargetGrpcProxies targetGrpcProxies() {
+ return new TargetGrpcProxies();
+ }
+
+ /**
+ * The "targetGrpcProxies" collection of methods.
+ */
+ public class TargetGrpcProxies {
+
+ /**
+ * Deletes the specified TargetGrpcProxy in the given scope
+ *
+ * Create a request for the method "targetGrpcProxies.delete".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for this request.
+ * @param targetGrpcProxy Name of the TargetGrpcProxy resource to delete.
+ * @return the request
+ */
+ public Delete delete(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException {
+ Delete result = new Delete(project, targetGrpcProxy);
+ initialize(result);
+ return result;
+ }
+
+ public class Delete extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.TargetHttpProxies.List request = compute.targetHttpProxies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public TargetHttpProxies targetHttpProxies() {
+ return new TargetHttpProxies();
+ }
+
+ /**
+ * The "targetHttpProxies" collection of methods.
+ */
+ public class TargetHttpProxies {
+
/**
- * Retrieves an aggregated list of all usable subnetworks in the project.
+ * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the
+ * specified project.
*
- * Create a request for the method "subnetworks.listUsable".
+ * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
+ * `true`.
+ *
+ * Create a request for the method "targetHttpProxies.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
- * @param project Project ID for this request.
+ * @param project Name of the project scoping this request.
* @return the request
*/
- public ListUsable listUsable(java.lang.String project) throws java.io.IOException {
- ListUsable result = new ListUsable(project);
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
initialize(result);
return result;
}
- public class ListUsable extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.TargetGrpcProxies.List request = compute.targetGrpcProxies().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public TargetGrpcProxies targetGrpcProxies() {
- return new TargetGrpcProxies();
- }
+ You can also filter nested fields. For example, you could specify `scheduling.automaticRestart =
+ false` to include instances only if they are not scheduled for automatic restarts. You can use
+ filtering on nested fields to filter based onresource labels.
- /**
- * The "targetGrpcProxies" collection of methods.
- */
- public class TargetGrpcProxies {
+ To filter on multiple expressions, provide each separate expression within parentheses. For
+ example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default,
+ each expression is an `AND` expression. However, you can include `AND` and `OR` expressions
+ explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell")
+ AND (scheduling.automaticRestart = true) ```
- /**
- * Deletes the specified TargetGrpcProxy in the given scope
- *
- * Create a request for the method "targetGrpcProxies.delete".
- *
- * This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
- *
- * @param project Project ID for this request.
- * @param targetGrpcProxy Name of the TargetGrpcProxy resource to delete.
- * @return the request
- */
- public Delete delete(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException {
- Delete result = new Delete(project, targetGrpcProxy);
- initialize(result);
- return result;
- }
+ If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against
+ a single un-parenthesized expression with or without quotes or against multiple parenthesized
+ expressions. Examples:
- public class Delete extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.TargetHttpsProxies.List request = compute.targetHttpsProxies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public TargetHttpsProxies targetHttpsProxies() {
+ return new TargetHttpsProxies();
+ }
+
+ /**
+ * The "targetHttpsProxies" collection of methods.
+ */
+ public class TargetHttpsProxies {
+
/**
- * Lists the TargetGrpcProxies for a project in the given scope.
+ * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the
+ * specified project.
*
- * Create a request for the method "targetGrpcProxies.list".
+ * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
+ * `true`.
+ *
+ * Create a request for the method "targetHttpsProxies.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
- * @param project Project ID for this request.
+ * @param project Name of the project scoping this request.
* @return the request
*/
- public List list(java.lang.String project) throws java.io.IOException {
- List result = new List(project);
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
initialize(result);
return result;
}
- public class List extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.TargetHttpProxies.List request = compute.targetHttpProxies().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public TargetHttpProxies targetHttpProxies() {
- return new TargetHttpProxies();
- }
+ private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}";
- /**
- * The "targetHttpProxies" collection of methods.
- */
- public class TargetHttpProxies {
+ private final java.util.regex.Pattern PROJECT_PATTERN =
+ java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))");
+
+ private final java.util.regex.Pattern TARGET_HTTPS_PROXY_PATTERN =
+ java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}");
+
+ /**
+ * Returns the specified TargetHttpsProxy resource.
+ *
+ * Create a request for the method "targetHttpsProxies.get".
+ *
+ * This request holds the parameters needed by the the compute server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@code Compute compute = new Compute(...);}
- * {@code Compute.TargetHttpsProxies.List request = compute.targetHttpsProxies().list(parameters ...)}
+ * {@code Compute.TargetInstances.List request = compute.targetInstances().list(parameters ...)}
*
*
* @return the resource collection
*/
- public TargetHttpsProxies targetHttpsProxies() {
- return new TargetHttpsProxies();
+ public TargetInstances targetInstances() {
+ return new TargetInstances();
}
/**
- * The "targetHttpsProxies" collection of methods.
+ * The "targetInstances" collection of methods.
*/
- public class TargetHttpsProxies {
+ public class TargetInstances {
/**
- * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the
- * specified project.
+ * Retrieves an aggregated list of target instances.
*
* To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
* `true`.
*
- * Create a request for the method "targetHttpsProxies.aggregatedList".
+ * Create a request for the method "targetInstances.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
* parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
*
- * @param project Name of the project scoping this request.
+ * @param project Project ID for this request.
* @return the request
*/
public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
@@ -210372,21 +225713,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO
return result;
}
- public class AggregatedList extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.TargetPools.List request = compute.targetPools().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public TargetPools targetPools() {
+ return new TargetPools();
+ }
+
+ /**
+ * The "targetPools" collection of methods.
+ */
+ public class TargetPools {
+
/**
- * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for
- * SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do
- * not affect the connection between the load balancer and the backends.
+ * Adds health check URLs to a target pool.
*
- * Create a request for the method "targetHttpsProxies.setSslPolicy".
+ * Create a request for the method "targetPools.addHealthCheck".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.
+ * parameters, call the {@link AddHealthCheck#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
- * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose SSL policy is
- to be set. The name must be 1-63
- * characters long, and comply with RFC1035.
- * @param content the {@link com.google.api.services.compute.model.SslPolicyReference}
+ * @param region Name of the region scoping this request.
+ * @param targetPool Name of the target pool to add a health check to.
+ * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest}
* @return the request
*/
- public SetSslPolicy setSslPolicy(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.SslPolicyReference content) throws java.io.IOException {
- SetSslPolicy result = new SetSslPolicy(project, targetHttpsProxy, content);
+ public AddHealthCheck addHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest content) throws java.io.IOException {
+ AddHealthCheck result = new AddHealthCheck(project, region, targetPool, content);
initialize(result);
return result;
}
- public class SetSslPolicy extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.TargetInstances.List request = compute.targetInstances().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public TargetInstances targetInstances() {
- return new TargetInstances();
- }
-
- /**
- * The "targetInstances" collection of methods.
- */
- public class TargetInstances {
-
/**
- * Retrieves an aggregated list of target instances.
+ * Retrieves an aggregated list of target pools.
*
* To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
* `true`.
*
- * Create a request for the method "targetInstances.aggregatedList".
+ * Create a request for the method "targetPools.aggregatedList".
*
* This request holds the parameters needed by the compute server. After setting any optional
* parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
@@ -213162,20 +228264,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO
return result;
}
- public class AggregatedList extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.TargetPools.List request = compute.targetPools().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public TargetPools targetPools() {
- return new TargetPools();
- }
+ /**
+ * Sorts list results by a certain order. By default, results are returned in alphanumerical
+ * order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp using
+ * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
+ * field in reverse chronological order (newest result first). Use this to sort resources like
+ * operations so that the newest operation is returned first.
+ *
+ * Currently, only sorting by `name` or `creationTimestamp desc` is supported.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String orderBy;
- /**
- * The "targetPools" collection of methods.
- */
- public class TargetPools {
+ /** Sorts list results by a certain order. By default, results are returned in alphanumerical order
+ based on the resource name.
+
+ You can also sort results in descending order based on the creation timestamp using
+ `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in
+ reverse chronological order (newest result first). Use this to sort resources like operations so
+ that the newest operation is returned first.
+
+ Currently, only sorting by `name` or `creationTimestamp desc` is supported.
+ */
+ public java.lang.String getOrderBy() {
+ return orderBy;
+ }
+
+ /**
+ * Sorts list results by a certain order. By default, results are returned in alphanumerical
+ * order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp using
+ * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
+ * field in reverse chronological order (newest result first). Use this to sort resources like
+ * operations so that the newest operation is returned first.
+ *
+ * Currently, only sorting by `name` or `creationTimestamp desc` is supported.
+ */
+ public List setOrderBy(java.lang.String orderBy) {
+ this.orderBy = orderBy;
+ return this;
+ }
+
+ /**
+ * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a
+ * previous list request to get the next page of results.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String pageToken;
+
+ /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list
+ request to get the next page of results.
+ */
+ public java.lang.String getPageToken() {
+ return pageToken;
+ }
+
+ /**
+ * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a
+ * previous list request to get the next page of results.
+ */
+ public List setPageToken(java.lang.String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ /**
+ * Opt-in for partial success behavior which provides partial results in case of failure. The
+ * default value is false.
+ *
+ * For example, when partial success behavior is enabled, aggregatedList for a single zone
+ * scope either returns all resources in the zone or no resources, with an error code.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.Boolean returnPartialSuccess;
+
+ /** Opt-in for partial success behavior which provides partial results in case of failure. The default
+ value is false.
+
+ For example, when partial success behavior is enabled, aggregatedList for a single zone scope
+ either returns all resources in the zone or no resources, with an error code.
+ */
+ public java.lang.Boolean getReturnPartialSuccess() {
+ return returnPartialSuccess;
+ }
+
+ /**
+ * Opt-in for partial success behavior which provides partial results in case of failure. The
+ * default value is false.
+ *
+ * For example, when partial success behavior is enabled, aggregatedList for a single zone
+ * scope either returns all resources in the zone or no resources, with an error code.
+ */
+ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) {
+ this.returnPartialSuccess = returnPartialSuccess;
+ return this;
+ }
+ @Override
+ public List set(String parameterName, Object value) {
+ return (List) super.set(parameterName, value);
+ }
+ }
/**
- * Adds health check URLs to a target pool.
+ * Removes health check URL from a target pool.
*
- * Create a request for the method "targetPools.addHealthCheck".
+ * Create a request for the method "targetPools.removeHealthCheck".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link AddHealthCheck#execute()} method to invoke the remote operation.
+ * parameters, call the {@link RemoveHealthCheck#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
- * @param region Name of the region scoping this request.
- * @param targetPool Name of the target pool to add a health check to.
- * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest}
+ * @param region Name of the region for this request.
+ * @param targetPool Name of the target pool to remove health checks from.
+ * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest}
* @return the request
*/
- public AddHealthCheck addHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest content) throws java.io.IOException {
- AddHealthCheck result = new AddHealthCheck(project, region, targetPool, content);
+ public RemoveHealthCheck removeHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest content) throws java.io.IOException {
+ RemoveHealthCheck result = new RemoveHealthCheck(project, region, targetPool, content);
initialize(result);
return result;
}
- public class AddHealthCheck extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.TargetSslProxies.List request = compute.targetSslProxies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public TargetSslProxies targetSslProxies() {
+ return new TargetSslProxies();
+ }
+
+ /**
+ * The "targetSslProxies" collection of methods.
+ */
+ public class TargetSslProxies {
+
/**
- * Gets the most recent health check results for each IP for the instance that is referenced by the
- * given target pool.
+ * Deletes the specified TargetSslProxy resource.
*
- * Create a request for the method "targetPools.getHealth".
+ * Create a request for the method "targetSslProxies.delete".
*
* This request holds the parameters needed by the compute server. After setting any optional
- * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
- * @param region Name of the region scoping this request.
- * @param targetPool Name of the TargetPool resource to which the queried instance belongs.
- * @param content the {@link com.google.api.services.compute.model.InstanceReference}
+ * @param targetSslProxy Name of the TargetSslProxy resource to delete.
* @return the request
*/
- public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.InstanceReference content) throws java.io.IOException {
- GetHealth result = new GetHealth(project, region, targetPool, content);
+ public Delete delete(java.lang.String project, java.lang.String targetSslProxy) throws java.io.IOException {
+ Delete result = new Delete(project, targetSslProxy);
initialize(result);
return result;
}
- public class GetHealth extends ComputeRequest
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.TargetTcpProxies.List request = compute.targetTcpProxies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public TargetTcpProxies targetTcpProxies() {
+ return new TargetTcpProxies();
+ }
+
+ /**
+ * The "targetTcpProxies" collection of methods.
+ */
+ public class TargetTcpProxies {
+
+ /**
+ * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the
+ * specified project.
+ *
+ * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to
+ * `true`.
+ *
+ * Create a request for the method "targetTcpProxies.aggregatedList".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation.
+ *
+ * @param project Name of the project scoping this request.
+ * @return the request
+ */
+ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException {
+ AggregatedList result = new AggregatedList(project);
+ initialize(result);
+ return result;
+ }
+
+ public class AggregatedList extends ComputeRequest
- * {@code Compute compute = new Compute(...);}
- * {@code Compute.TargetSslProxies.List request = compute.targetSslProxies().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public TargetSslProxies targetSslProxies() {
- return new TargetSslProxies();
- }
-
- /**
- * The "targetSslProxies" collection of methods.
- */
- public class TargetSslProxies {
-
/**
- * Deletes the specified TargetSslProxy resource.
+ * Deletes the specified TargetTcpProxy resource.
*
- * Create a request for the method "targetSslProxies.delete".
+ * Create a request for the method "targetTcpProxies.delete".
*
* This request holds the parameters needed by the compute server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param project Project ID for this request.
- * @param targetSslProxy Name of the TargetSslProxy resource to delete.
+ * @param targetTcpProxy Name of the TargetTcpProxy resource to delete.
* @return the request
*/
- public Delete delete(java.lang.String project, java.lang.String targetSslProxy) throws java.io.IOException {
- Delete result = new Delete(project, targetSslProxy);
+ public Delete delete(java.lang.String project, java.lang.String targetTcpProxy) throws java.io.IOException {
+ Delete result = new Delete(project, targetTcpProxy);
initialize(result);
return result;
}
public class Delete extends ComputeRequest