diff --git a/clients/google-api-services-compute/v1/2.0.0/README.md b/clients/google-api-services-compute/v1/2.0.0/README.md index 7e642923724..6ec57d6ec8a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/README.md +++ b/clients/google-api-services-compute/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - v1-rev20251110-2.0.0 + v1-rev20260306-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20251110-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260306-2.0.0' } ``` diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java index 1ed6f6eed50..b9801d76755 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java @@ -103,7 +103,7 @@ public class Compute extends com.google.api.client.googleapis.services.json.Abst * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * * @param jsonFactory JSON factory, which may be: @@ -3574,6 +3574,201 @@ public TestIamPermissions set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the Advice collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + + private static final String REST_PATH = "projects/{project}/regions/{region}/advice/calendarMode"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * 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 the compute server. After setting any optional + * parameters, call the {@link CalendarMode#execute()} method to invoke the remote operation.

    + * {@link + * CalendarMode#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.CalendarModeAdviceRequest} + * @since 1.13 + */ + protected CalendarMode(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CalendarModeAdviceRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.CalendarModeAdviceResponse.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 + public CalendarMode set$Xgafv(java.lang.String $Xgafv) { + return (CalendarMode) super.set$Xgafv($Xgafv); + } + + @Override + public CalendarMode setAccessToken(java.lang.String accessToken) { + return (CalendarMode) super.setAccessToken(accessToken); + } + + @Override + public CalendarMode setAlt(java.lang.String alt) { + return (CalendarMode) super.setAlt(alt); + } + + @Override + public CalendarMode setCallback(java.lang.String callback) { + return (CalendarMode) super.setCallback(callback); + } + + @Override + public CalendarMode setFields(java.lang.String fields) { + return (CalendarMode) super.setFields(fields); + } + + @Override + public CalendarMode setKey(java.lang.String key) { + return (CalendarMode) super.setKey(key); + } + + @Override + public CalendarMode setOauthToken(java.lang.String oauthToken) { + return (CalendarMode) super.setOauthToken(oauthToken); + } + + @Override + public CalendarMode setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CalendarMode) super.setPrettyPrint(prettyPrint); + } + + @Override + public CalendarMode setQuotaUser(java.lang.String quotaUser) { + return (CalendarMode) super.setQuotaUser(quotaUser); + } + + @Override + public CalendarMode setUploadType(java.lang.String uploadType) { + return (CalendarMode) super.setUploadType(uploadType); + } + + @Override + public CalendarMode setUploadProtocol(java.lang.String uploadProtocol) { + return (CalendarMode) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CalendarMode setUserIp(java.lang.String userIp) { + return (CalendarMode) 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 CalendarMode 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public CalendarMode 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; + } + + @Override + public CalendarMode set(String parameterName, Object value) { + return (CalendarMode) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the Autoscalers collection. * @@ -5415,6 +5610,206 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "autoscalers.testIamPermissions". + * + * 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. + * + * @param project Project ID for this request. + * @param zone The name of the zone 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 TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions"; + + 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "autoscalers.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 zone The name of the zone 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 TestIamPermissions(java.lang.String project, java.lang.String zone, 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 TestIamPermissions 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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } /** * Updates an autoscaler in the specified project using the data included in the request. * @@ -19506,8 +19901,7 @@ public TestIamPermissions set(String parameterName, Object value) { } /** * Updates the specified disk with the data included in the request. The update is performed only on - * selected fields included as part of update-mask. Only the following fields can be modified: - * user_license. + * selected fields included as part of update-mask. * * Create a request for the method "disks.update". * @@ -19541,8 +19935,7 @@ public class Update extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/global/healthChecks/{resource}/testIamPermissions"; 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 HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates a HealthCheck resource in the specified project using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "healthChecks.update". + * Create a request for the method "healthChecks.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    + * 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 healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @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 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 TestIamPermissions(java.lang.String project, 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(), "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.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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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. */ @@ -40718,7 +41150,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 " + @@ -40728,220 +41160,150 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the HealthCheck resource to update. */ + /** 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 update. + /** 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 update. */ - public Update 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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; - 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 HttpHealthChecks collection. - * - *

    The typical use is:

    - *
    -   *   {@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 { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; 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 HTTP_HEALTH_CHECK_PATTERN = + private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * 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 the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    * * @param 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} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String httpHealthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Update(java.lang.String project, 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); 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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + 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(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + + 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 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. */ @@ -40955,7 +41317,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 " + @@ -40965,24 +41327,261 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the HttpHealthCheck resource to delete. */ + /** Name of the HealthCheck resource to update. */ @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; + private java.lang.String healthCheck; - /** Name of the HttpHealthCheck resource to delete. + /** Name of the HealthCheck resource to update. */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** Name of the HttpHealthCheck resource to delete. */ - public Delete setHttpHealthCheck(java.lang.String httpHealthCheck) { + /** Name of the HealthCheck resource to update. */ + public Update setHealthCheck(java.lang.String healthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + + 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.httpHealthCheck = httpHealthCheck; + 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; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the HttpHealthChecks collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; + + 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 HTTP_HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified HttpHealthCheck resource. + * + * Create a request for the method "httpHealthChecks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param httpHealthCheck Name of the HttpHealthCheck resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String httpHealthCheck) { + 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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck 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 HttpHealthCheck resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String httpHealthCheck; + + /** Name of the HttpHealthCheck resource to delete. + */ + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; + } + + /** Name of the HttpHealthCheck resource to delete. */ + public Delete setHttpHealthCheck(java.lang.String httpHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpHealthCheck = httpHealthCheck; return this; } @@ -42028,6 +42627,174 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpHealthChecks.testIamPermissions". + * + * 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. + * + * @param project Project ID 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 TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions"; + + 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 RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 TestIamPermissions(java.lang.String project, 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } /** * Updates a HttpHealthCheck resource in the specified project using the data included in the * request. @@ -43471,6 +44238,174 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpsHealthChecks.testIamPermissions". + * + * 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. + * + * @param project Project ID 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 TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions"; + + 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 RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpsHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 TestIamPermissions(java.lang.String project, 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } /** * Updates a HttpsHealthCheck resource in the specified project using the data included in the * request. @@ -58844,6 +59779,22 @@ public Get setInstanceTemplate(java.lang.String instanceTemplate) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); @@ -59634,6 +60585,22 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + 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); @@ -63021,6 +63988,22 @@ public Get setInstance(java.lang.String instance) { 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 Get setView(java.lang.String view) { + this.view = view; + return this; + } + @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); @@ -63720,27 +64703,27 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Returns the screenshot from the specified instance. + * Gets partner metadata of the specified instance and namespaces. * - * Create a request for the method "instances.getScreenshot". + * Create a request for the method "instances.getPartnerMetadata". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetScreenshot#execute()} method to invoke the remote operation. + * parameters, call the {@link GetPartnerMetadata#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 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); + public GetPartnerMetadata getPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetPartnerMetadata result = new GetPartnerMetadata(project, zone, instance); initialize(result); return result; } - public class GetScreenshot extends ComputeRequest { + public class GetPartnerMetadata extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/screenshot"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata"; 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])?))"); @@ -63752,23 +64735,23 @@ public class GetScreenshot 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. - *

    + * parameters, call the {@link GetPartnerMetadata#execute()} method to invoke the remote + * operation.

    {@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 { + public class GetScreenshot extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/serialPort"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/screenshot"; 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])?))"); @@ -63960,23 +64959,231 @@ 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.

    + * parameters, call the {@link GetScreenshot#execute()} method to invoke the remote operation.

    + * {@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 { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/serialPort"; + + 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * 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 the compute server. After setting any optional + * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote + * operation.

    {@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 { + public class PatchPartnerMetadata extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata"; 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])?))"); @@ -65676,23 +66901,24 @@ 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 + * parameters, call the {@link PatchPartnerMetadata#execute()} method to invoke the remote + * operation.

    {@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 { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance"; + + 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Perform a manual maintenance on the instance. + * + * Create a request for the method "instances.performMaintenance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

    {@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 { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions"; 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])?))"); @@ -127685,26 +129191,28 @@ 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 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 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 { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; 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])?))"); @@ -127948,26 +129390,26 @@ public class Delete extends ComputeRequest {@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.

    * * @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 { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern BACKEND_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified regional BackendService resource. + * + * Create a request for the method "regionBackendServices.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * + * @param 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 { - - private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; - - 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern DISK_TYPE_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 regional disk type. - * - * Create a request for the method "regionDiskTypes.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.

    {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes"; + private static final String REST_PATH = "projects/{project}/aggregated/compositeHealthChecks"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves a list of regional disk types available to the specified project. + * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the + * specified project. * - * Create a request for the method "regionDiskTypes.list". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionCompositeHealthChecks.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * 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 { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; 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])?))"); @@ -133404,29 +134911,26 @@ public class AddResourcePolicies extends ComputeRequest {@link AddResourcePolicies#initialize(com.google.api.client.googleapis.services. - * 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 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; 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])?))"); @@ -133653,24 +135157,26 @@ public class BulkInsert extends ComputeRequest - * {@link - * BulkInsert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    * * @param 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 { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; 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])?))"); @@ -133873,29 +135365,23 @@ public class CreateSnapshot 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.

    + * 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 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; 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])?))"); @@ -134125,28 +135581,22 @@ 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 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 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 { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; 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])?))"); @@ -134373,26 +136026,28 @@ 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.

    + * 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 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 { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions"; 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])?))"); @@ -134584,24 +136276,24 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#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 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; 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])?))"); @@ -134806,24 +136494,26 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    * * @param 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 ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes"; 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])?))"); @@ -135039,9 +136701,9 @@ public class List extends ComputeRequest {@link @@ -135049,11 +136711,11 @@ public class List extends ComputeRequest * * @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. * @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.DiskList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionDiskTypeList.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(), @@ -135159,17 +136821,17 @@ public List 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. */ + /** 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(), @@ -135449,30 +137111,53 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * 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 "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 { + public class AddResourcePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; 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])?))"); @@ -135484,23 +137169,24 @@ public class RemoveResourcePolicies extends ComputeRequest {@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote + * operation.

    {@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 { + public class BulkInsert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; 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])?))"); @@ -135729,26 +137414,23 @@ public class Resize extends ComputeRequest {@link - * Resize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

    + * {@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 { + public class CreateSnapshot extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; 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])?))"); @@ -135977,28 +137634,30 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. + *

    {@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 { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; 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])?))"); @@ -136177,28 +137886,28 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.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 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; 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])?))"); @@ -136431,24 +138138,22 @@ public class StartAsyncReplication 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    * * @param 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 { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; 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])?))"); @@ -136676,27 +138341,28 @@ public class StopAsyncReplication extends ComputeRequest {@link StopAsyncReplication#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 + * 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 { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; 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])?))"); @@ -136928,25 +138568,22 @@ public class StopGroupAsyncReplication 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.

    + * 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 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; 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])?))"); @@ -137155,28 +138799,22 @@ public class TestIamPermissions 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.

    + * 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 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 { + 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:* ``` - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + 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. - 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])?))"); + 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) ``` - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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: - private final java.util.regex.Pattern DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + `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; + } /** - * 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. + * 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. * - * Create a request for the method "regionDisks.update". + * 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 List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Removes resource policies from a regional disk. + * + * Create a request for the method "regionDisks.removeResourcePolicies". + * + * 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. + * + * @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} + * @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); + initialize(result); + return result; + } + + public class RemoveResourcePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Removes resource policies from a regional disk. + * + * Create a request for the method "regionDisks.removeResourcePolicies". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    + * 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.List paths; - - /** - - */ - public java.util.List getPaths() { - return paths; - } - - public Update setPaths(java.util.List paths) { - this.paths = paths; - 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 @@ -137582,79 +139450,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 Update setRequestId(java.lang.String requestId) { + public RemoveResourcePolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) super.set(parameterName, value); } } - - } - - /** - * 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(); - } - - /** - * 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 { + public class Resize extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; 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])?))"); @@ -137662,25 +139490,27 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

    {@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 { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setIamPolicy"; 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])?))"); @@ -137906,25 +139738,28 @@ 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.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    + * {@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 { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setLabels"; 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])?))"); @@ -138110,23 +139938,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    + * {@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 { + public class StartAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication"; 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])?))"); @@ -138327,23 +140188,28 @@ 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 StartAsyncReplication#execute()} method to invoke the remote + * operation.

    {@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 { + public class StopAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication"; 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])?))"); @@ -138772,28 +140437,27 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote + * operation.

    {@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 { + public class StopGroupAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; 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])?))"); @@ -139040,26 +140688,27 @@ 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 StopGroupAsyncReplication#execute()} method to invoke the remote + * operation.

    {@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 { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/testIamPermissions"; 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])?))"); @@ -139286,26 +140916,28 @@ 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.

    + * 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 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 { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; 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])?))"); @@ -139493,23 +141117,28 @@ public class Insert extends ComputeRequest {@link - * Insert#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.

    * * @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.List paths; + + /** + + */ + public java.util.List getPaths() { + return paths; + } + + public Update setPaths(java.util.List paths) { + this.paths = paths; + 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 @@ -139670,72 +141341,109 @@ 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 Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the RegionHealthAggregationPolicies collection. + * + *

    The 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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + private static final String REST_PATH = "projects/{project}/aggregated/healthAggregationPolicies"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * 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 the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * 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 { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; 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])?))"); @@ -140150,28 +141892,26 @@ public class Patch extends ComputeRequest {@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.

    * * @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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; 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])?))"); @@ -140399,27 +142138,26 @@ 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 Get#execute()} method to invoke the remote operation.

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

    * * @param 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 { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * 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 the compute server. After setting any optional - * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. - *

    {@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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * 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 the compute server. After setting any optional - * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation.

    {@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 { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * 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 the compute server. After setting any optional - * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. - *

    {@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 { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * 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 the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * 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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + private static final String REST_PATH = "projects/{project}/aggregated/healthCheckServices"; 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])?))"); /** - * 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 the compute server. After setting any optional - * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. - *

    {@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 { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * 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 the compute server. After setting any optional - * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation.

    {@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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * 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 the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

    {@link @@ -141986,11 +144206,13 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Creates a managed instance group using the information that you specify in the request. After - * the group is created, instances in the group are created using the specified instance template. - * This operation is marked as DONE when the group is created even if the instances in the group - * have not yet been created. You must separately verify the status of the individual instances - * with thelistmanagedinstances method. - * - * A regional managed instance group can contain up to 2000 instances. + * Creates a regional HealthCheckService resource in the specified project and region using the + * data included in the request. * - * Create a request for the method "regionInstanceGroupManagers.insert". + * Create a request for the method "regionHealthCheckServices.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

    {@link @@ -142179,10 +144411,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Retrieves the list of managed instance groups that are contained within the specified region. + * Lists all the HealthCheckService resources that have been configured for the specified project + * in the given region. * - * Create a request for the method "regionInstanceGroupManagers.list". + * Create a request for the method "regionHealthCheckServices.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -142384,7 +144631,7 @@ public class List extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Lists all errors thrown by actions on instances for a given regional managed instance group. - * The filter andorderBy query parameters are not supported. + * 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. * - * Create a request for the method "regionInstanceGroupManagers.listErrors". + * Create a request for the method "regionHealthCheckServices.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation.

    - * {@link - * ListErrors#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * 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 Name of the region scoping this request. - This should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035, - * or an - unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @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} * @since 1.13 */ - protected ListErrors(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupManagersListErrorsResponse.class); + 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); 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(), @@ -142833,77 +145089,8013 @@ protected ListErrors(java.lang.String project, java.lang.String region, java.lan "(?:(?:[-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 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(); + 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 ListErrors set$Xgafv(java.lang.String $Xgafv) { - return (ListErrors) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public ListErrors setAccessToken(java.lang.String accessToken) { - return (ListErrors) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public ListErrors setAlt(java.lang.String alt) { - return (ListErrors) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public ListErrors setCallback(java.lang.String callback) { - return (ListErrors) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public ListErrors setFields(java.lang.String fields) { - return (ListErrors) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public ListErrors setKey(java.lang.String key) { - return (ListErrors) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public ListErrors setOauthToken(java.lang.String oauthToken) { - return (ListErrors) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListErrors) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public ListErrors setQuotaUser(java.lang.String quotaUser) { - return (ListErrors) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public ListErrors setUploadType(java.lang.String uploadType) { - return (ListErrors) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { - return (ListErrors) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public ListErrors setUserIp(java.lang.String userIp) { - return (ListErrors) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) 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 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 " + + "(?:(?:[-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 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; + } + + /** + * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply + * with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String healthCheckService; + + /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with + RFC1035. + */ + public java.lang.String getHealthCheckService() { + return healthCheckService; + } + + /** + * 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; + 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthCheckServices.testIamPermissions". + * + * 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. + * + * @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 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 TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthCheckServices.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) 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. + * + * 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 { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified HealthCheck resource. + * + * Create a request for the method "regionHealthChecks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to delete. + * @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); + 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.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); + } + + @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 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 + * 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified HealthCheck resource. + * + * Create a request for the method "regionHealthChecks.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 healthCheck Name of the HealthCheck resource to return. + * @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); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HEALTH_CHECK_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 HealthCheck resource. + * + * Create a request for the method "regionHealthChecks.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.

    {@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 return. + * @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); + 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.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 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; + } + + /** 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 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 HealthCheck resource to return. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to return. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to return. */ + public Get 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "regionHealthChecks.insert". + * + * 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. + * + * @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} + * @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); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Creates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "regionHealthChecks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param 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} + * @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); + 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 + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 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 " + + "(?:(?:[-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 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; + } + + /** + * 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; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of HealthCheck resources available to the specified project. + * + * Create a request for the method "regionHealthChecks.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 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); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves the list of HealthCheck resources available to the specified project. + * + * Create a request for the method "regionHealthChecks.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region 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); + 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 + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) 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 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 " + + "(?:(?:[-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 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 + * 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 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 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 List set(String parameterName, Object value) { + return (List) 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. + * + * Create a request for the method "regionHealthChecks.patch". + * + * 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. + * + * @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} + * @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); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * 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. + * + * Create a request for the method "regionHealthChecks.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

    + * + * @param 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} + * @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); + 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.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 Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) 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 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 " + + "(?:(?:[-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 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; + } + + /** Name of the HealthCheck resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to patch. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to patch. */ + public Patch 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 + * 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthChecks.testIamPermissions". + * + * 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. + * + * @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 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 TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "regionHealthChecks.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 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} + * @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); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "regionHealthChecks.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    + * + * @param 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} + * @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); + 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.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 Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 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 " + + "(?:(?:[-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 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 " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the HealthCheck resource to update. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to update. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to update. */ + public Update 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 + * 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 RegionHealthSources collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + + private static final String REST_PATH = "projects/{project}/aggregated/healthSources"; + + 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])?))"); + + /** + * 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 the compute server. After setting any optional + * 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 Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthSourceAggregatedList.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])?))"); + } + } + + @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @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; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return 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 " + + "(?:(?:[-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; + } + + /** + * 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 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 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 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 + * 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. + * + * 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 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 AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified HealthSource in the given region + * + * Create a request for the method "regionHealthSources.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 healthSource Name of the HealthSource resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthSource) throws java.io.IOException { + Delete result = new Delete(project, region, healthSource); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HEALTH_SOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified HealthSource in the given region + * + * Create a request for the method "regionHealthSources.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthSource) { + 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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource 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 HealthSource resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String healthSource; + + /** Name of the HealthSource resource to delete. + */ + public java.lang.String getHealthSource() { + return healthSource; + } + + /** Name of the HealthSource resource to delete. */ + public Delete setHealthSource(java.lang.String healthSource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthSource = healthSource; + 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified HealthSource resource in the given region. + * + * Create a request for the method "regionHealthSources.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 healthSource Name of the HealthSource resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String healthSource) throws java.io.IOException { + Get result = new Get(project, region, healthSource); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HEALTH_SOURCE_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 HealthSource resource in the given region. + * + * Create a request for the method "regionHealthSources.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.

    {@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 healthSource Name of the HealthSource resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String healthSource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthSource.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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource 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; + } + + /** 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 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 HealthSource resource to return. */ + @com.google.api.client.util.Key + private java.lang.String healthSource; + + /** Name of the HealthSource resource to return. + */ + public java.lang.String getHealthSource() { + return healthSource; + } + + /** Name of the HealthSource resource to return. */ + public Get setHealthSource(java.lang.String healthSource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthSource = healthSource; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Create a HealthSource in the specified project in the given region using the parameters that are + * included in the request. + * + * Create a request for the method "regionHealthSources.insert". + * + * 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. + * + * @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.HealthSource} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthSource content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Create a HealthSource in the specified project in the given region using the parameters that + * are included in the request. + * + * Create a request for the method "regionHealthSources.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param 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.HealthSource} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthSource 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(), + "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 + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 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 " + + "(?:(?:[-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 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; + } + + /** + * 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; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the HealthSources for a project in the given region. + * + * Create a request for the method "regionHealthSources.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 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); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Lists the HealthSources for a project in the given region. + * + * Create a request for the method "regionHealthSources.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region 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.HealthSourceList.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 + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) 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 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 " + + "(?:(?:[-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 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 + * 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 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 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 List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified regional HealthSource 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 "regionHealthSources.patch". + * + * 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. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource to update. The name + must be 1-63 characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthSource} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthSource, com.google.api.services.compute.model.HealthSource content) throws java.io.IOException { + Patch result = new Patch(project, region, healthSource, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Updates the specified regional HealthSource 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 "regionHealthSources.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource to update. The name + must be 1-63 characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthSource} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthSource, com.google.api.services.compute.model.HealthSource 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(), + "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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) 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 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 " + + "(?:(?:[-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 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; + } + + /** + * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String healthSource; + + /** Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getHealthSource() { + return healthSource; + } + + /** + * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Patch setHealthSource(java.lang.String healthSource) { + this.healthSource = healthSource; + 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthSources.testIamPermissions". + * + * 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. + * + * @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 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 TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthSources.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionInstanceGroupManagerResizeRequests collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; + + 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])?))"); + + /** + * 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 the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

    {@link + * Cancel#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 + 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. + * @since 1.13 + */ + protected Cancel(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + 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.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."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) 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 Cancel 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 scoping this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + public Cancel setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public Cancel setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request to cancel. Name should conform to RFC1035 or be a resource + * ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request to cancel. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request to cancel. Name should conform to RFC1035 or be a resource + * ID. + */ + public Cancel setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + 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 Cancel setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. + * Deleting request does not delete instances that were provisioned previously. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 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 delete. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Delete result = new Delete(project, region, instanceGroupManager, resizeRequest); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + + 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])?))"); + + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be + * deleted. Deleting request does not delete instances that were provisioned previously. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * + * @param 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 delete. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete 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; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + public Delete setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request to delete. Name should conform to RFC1035 or be a resource + * ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request to delete. Name should conform to RFC1035 or be a resource + * ID. + */ + public Delete setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns all of the details about the specified resize request. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 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. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Get result = new Get(project, region, instanceGroupManager, resizeRequest); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + + 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])?))"); + + /** + * Returns all of the details about the specified resize request. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.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.

    {@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 + 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. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest.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."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get 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 scoping this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + public Get setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + public Get setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.insert". + * + * 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. + * + * @param project Project ID for this request. + * @param region Name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group to which the resize request is scoped. + Name should conform to + * RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) throws java.io.IOException { + Insert result = new Insert(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + + 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])?))"); + + /** + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group to which the resize request is scoped. + Name should conform to + * RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest 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(), + "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 Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 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 " + + "(?:(?:[-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. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Name of the region scoping this request. Name should conform to RFC1035. + */ + public Insert setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Name of the managed instance group to which the resize request is scoped. Name should + * conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group to which the resize request is scoped. Name should conform to + RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * Name of the managed instance group to which the resize request is scoped. Name should + * conform to RFC1035 or be a resource ID. + */ + public Insert 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 + * 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; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of Resize Requests that are contained in the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { + List result = new List(project, region, instanceGroupManager); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + + 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])?))"); + + /** + * Retrieves a list of Resize Requests that are contained in the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupManagerResizeRequestsListResponse.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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) 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 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 " + + "(?:(?:[-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. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Name of the region scoping this request. Name should conform to RFC1035. + */ + public List setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the managed instance group. The name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. The name should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. The name should conform to RFC1035. */ + public List setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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. + * + * 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 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 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 List set(String parameterName, Object value) { + return (List) 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 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 { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; + + 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])?))"); + + /** + * 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 the compute server. After setting any optional + * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. + *

    {@link AbandonInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogle + * ClientRequest)} 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} + * @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) { + 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(), + "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 AbandonInstances set$Xgafv(java.lang.String $Xgafv) { + return (AbandonInstances) super.set$Xgafv($Xgafv); + } + + @Override + public AbandonInstances setAccessToken(java.lang.String accessToken) { + return (AbandonInstances) super.setAccessToken(accessToken); + } + + @Override + public AbandonInstances setAlt(java.lang.String alt) { + return (AbandonInstances) super.setAlt(alt); + } + + @Override + public AbandonInstances setCallback(java.lang.String callback) { + return (AbandonInstances) super.setCallback(callback); + } + + @Override + public AbandonInstances setFields(java.lang.String fields) { + return (AbandonInstances) super.setFields(fields); + } + + @Override + public AbandonInstances setKey(java.lang.String key) { + return (AbandonInstances) super.setKey(key); + } + + @Override + public AbandonInstances setOauthToken(java.lang.String oauthToken) { + return (AbandonInstances) super.setOauthToken(oauthToken); + } + + @Override + public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AbandonInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public AbandonInstances setQuotaUser(java.lang.String quotaUser) { + return (AbandonInstances) super.setQuotaUser(quotaUser); + } + + @Override + public AbandonInstances setUploadType(java.lang.String uploadType) { + return (AbandonInstances) super.setUploadType(uploadType); + } + + @Override + public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AbandonInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AbandonInstances setUserIp(java.lang.String userIp) { + return (AbandonInstances) 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 AbandonInstances 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 AbandonInstances setRegion(java.lang.String region) { + 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 + * 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 AbandonInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AbandonInstances set(String parameterName, Object value) { + return (AbandonInstances) super.set(parameterName, value); + } + } + /** + * Apply updates to selected instances the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * + * 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. + * + * @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} + * @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); + initialize(result); + return result; + } + + public class ApplyUpdatesToInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; + + 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])?))"); + + /** + * Apply updates to selected instances the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote + * operation.

    {@link ApplyUpdatesToInstances#initialize(com.google.api.client.googleapis.servi + * ces.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} + * @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); + 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 ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { + return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { + return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); + } + + @Override + public ApplyUpdatesToInstances setAlt(java.lang.String alt) { + return (ApplyUpdatesToInstances) super.setAlt(alt); + } + + @Override + public ApplyUpdatesToInstances setCallback(java.lang.String callback) { + return (ApplyUpdatesToInstances) super.setCallback(callback); + } + + @Override + public ApplyUpdatesToInstances setFields(java.lang.String fields) { + return (ApplyUpdatesToInstances) super.setFields(fields); + } + + @Override + public ApplyUpdatesToInstances setKey(java.lang.String key) { + return (ApplyUpdatesToInstances) super.setKey(key); + } + + @Override + public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { + return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); + } + + @Override + public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { + return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { + return (ApplyUpdatesToInstances) super.setUploadType(uploadType); + } + + @Override + public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { + return (ApplyUpdatesToInstances) 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 ApplyUpdatesToInstances 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, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request, should conform to RFC1035. + */ + 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) { + this.region = region; + return this; + } + + /** The name of the managed instance group, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group, should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group, should conform to RFC1035. */ + public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public ApplyUpdatesToInstances set(String parameterName, Object value) { + return (ApplyUpdatesToInstances) 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. + * + * Create a request for the method "regionInstanceGroupManagers.createInstances". + * + * 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. + * + * @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} + * @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); + initialize(result); + return result; + } + + public class CreateInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + + 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])?))"); + + /** + * 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. + * + * Create a request for the method "regionInstanceGroupManagers.createInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. + *

    {@link CreateInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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} + * @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); + 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 CreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (CreateInstances) super.set$Xgafv($Xgafv); + } + + @Override + public CreateInstances setAccessToken(java.lang.String accessToken) { + return (CreateInstances) super.setAccessToken(accessToken); + } + + @Override + public CreateInstances setAlt(java.lang.String alt) { + return (CreateInstances) super.setAlt(alt); + } + + @Override + public CreateInstances setCallback(java.lang.String callback) { + return (CreateInstances) super.setCallback(callback); + } + + @Override + public CreateInstances setFields(java.lang.String fields) { + return (CreateInstances) super.setFields(fields); + } + + @Override + public CreateInstances setKey(java.lang.String key) { + return (CreateInstances) super.setKey(key); + } + + @Override + public CreateInstances setOauthToken(java.lang.String oauthToken) { + return (CreateInstances) super.setOauthToken(oauthToken); + } + + @Override + public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateInstances setQuotaUser(java.lang.String quotaUser) { + return (CreateInstances) super.setQuotaUser(quotaUser); + } + + @Override + public CreateInstances setUploadType(java.lang.String uploadType) { + return (CreateInstances) super.setUploadType(uploadType); + } + + @Override + public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CreateInstances setUserIp(java.lang.String userIp) { + return (CreateInstances) 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 CreateInstances 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 theregion where the managed instance group is located. It should conform to + * RFC1035. + */ + @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. + */ + 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) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public CreateInstances 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 + * 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. + * + * 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. + + 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. + * + * 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) { + this.requestId = requestId; + return this; + } + + @Override + public CreateInstances set(String parameterName, Object value) { + return (CreateInstances) super.set(parameterName, value); + } + } + /** + * Deletes the specified managed instance group and all of the instances in that group. + * + * Create a request for the method "regionInstanceGroupManagers.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 instanceGroupManager Name of the managed instance group to delete. + * @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); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + + 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])?))"); + + /** + * Deletes the specified managed instance group and all of the instances in that group. + * + * Create a request for the method "regionInstanceGroupManagers.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * + * @param 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. + * @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); + 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 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) { + this.region = region; + return this; + } + + /** Name of the managed instance group to delete. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group to delete. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group to delete. */ + public Delete 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 + * 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 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. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * + * 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. + * + * @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} + * @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); + initialize(result); + return result; + } + + public class DeleteInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + + 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])?))"); + + /** + * 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. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. + *

    {@link DeleteInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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} + * @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); + 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); + } + + @Override + public DeleteInstances setAccessToken(java.lang.String accessToken) { + return (DeleteInstances) super.setAccessToken(accessToken); + } + + @Override + public DeleteInstances setAlt(java.lang.String alt) { + return (DeleteInstances) super.setAlt(alt); + } + + @Override + public DeleteInstances setCallback(java.lang.String callback) { + return (DeleteInstances) super.setCallback(callback); + } + + @Override + public DeleteInstances setFields(java.lang.String fields) { + return (DeleteInstances) super.setFields(fields); + } + + @Override + public DeleteInstances setKey(java.lang.String key) { + return (DeleteInstances) super.setKey(key); + } + + @Override + public DeleteInstances setOauthToken(java.lang.String oauthToken) { + return (DeleteInstances) super.setOauthToken(oauthToken); + } + + @Override + public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteInstances setQuotaUser(java.lang.String quotaUser) { + return (DeleteInstances) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteInstances setUploadType(java.lang.String uploadType) { + return (DeleteInstances) super.setUploadType(uploadType); + } + + @Override + public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteInstances setUserIp(java.lang.String userIp) { + return (DeleteInstances) 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 DeleteInstances 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 DeleteInstances setRegion(java.lang.String region) { + 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 DeleteInstances 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 + * 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 DeleteInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteInstances set(String parameterName, Object value) { + return (DeleteInstances) super.set(parameterName, value); + } + } + /** + * Deletes selected per-instance configurations for the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * + * 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. + * + * @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} + * @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); + initialize(result); + return result; + } + + public class DeletePerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; + + 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])?))"); + + /** + * Deletes selected per-instance configurations for the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote + * operation.

    {@link DeletePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv + * ices.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} + * @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); + 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 DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public DeletePerInstanceConfigs setAlt(java.lang.String alt) { + return (DeletePerInstanceConfigs) super.setAlt(alt); + } + + @Override + public DeletePerInstanceConfigs setCallback(java.lang.String callback) { + return (DeletePerInstanceConfigs) super.setCallback(callback); + } + + @Override + public DeletePerInstanceConfigs setFields(java.lang.String fields) { + return (DeletePerInstanceConfigs) super.setFields(fields); + } + + @Override + public DeletePerInstanceConfigs setKey(java.lang.String key) { + return (DeletePerInstanceConfigs) super.setKey(key); + } + + @Override + public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (DeletePerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (DeletePerInstanceConfigs) 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 DeletePerInstanceConfigs 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, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request, should conform to RFC1035. + */ + 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) { + this.region = region; + return this; + } + + /** The name of the managed instance group. It should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. It should conform to RFC1035. */ + public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public DeletePerInstanceConfigs set(String parameterName, Object value) { + return (DeletePerInstanceConfigs) super.set(parameterName, value); + } + } + /** + * Returns all of the details about the specified managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.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. + * @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); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + + 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])?))"); + + /** + * Returns all of the details about the specified managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.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.

    {@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 instanceGroupManager Name of the managed instance group to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManager.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 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; + } + + /** 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 Get setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group to return. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group to return. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group to return. */ + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a managed instance group using the information that you specify in the request. After the + * group is created, instances in the group are created using the specified instance template. This + * operation is marked as DONE when the group is created even if the instances in the group have not + * yet been created. You must separately verify the status of the individual instances with + * thelistmanagedinstances method. + * + * A regional managed instance group can contain up to 2000 instances. + * + * Create a request for the method "regionInstanceGroupManagers.insert". + * + * 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. + * + * @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.InstanceGroupManager} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + + 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])?))"); + + /** + * Creates a managed instance group using the information that you specify in the request. After + * the group is created, instances in the group are created using the specified instance template. + * This operation is marked as DONE when the group is created even if the instances in the group + * have not yet been created. You must separately verify the status of the individual instances + * with thelistmanagedinstances method. + * + * A regional managed instance group can contain up to 2000 instances. + * + * Create a request for the method "regionInstanceGroupManagers.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param 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.InstanceGroupManager} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstanceGroupManager 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(), + "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."); + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 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 " + + "(?:(?:[-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 Insert setRegion(java.lang.String region) { + this.region = 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; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of managed instance groups that are contained within the specified region. + * + * Create a request for the method "regionInstanceGroupManagers.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 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); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + + 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])?))"); + + /** + * Retrieves the list of managed instance groups that are contained within the specified region. + * + * Create a request for the method "regionInstanceGroupManagers.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region 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.RegionInstanceGroupManagerList.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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) 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 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 " + + "(?:(?:[-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 List setRegion(java.lang.String region) { + 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 + * 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 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 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 List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists all errors thrown by actions on instances for a given regional managed instance group. The + * filter andorderBy query parameters are not supported. + * + * Create a request for the method "regionInstanceGroupManagers.listErrors". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + This should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035, + * or an + unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @return the request + */ + public ListErrors listErrors(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { + ListErrors result = new ListErrors(project, region, instanceGroupManager); + initialize(result); + return result; + } + + public class ListErrors extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; + + 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])?))"); + + /** + * Lists all errors thrown by actions on instances for a given regional managed instance group. + * The filter andorderBy query parameters are not supported. + * + * Create a request for the method "regionInstanceGroupManagers.listErrors". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation.

    + * {@link + * ListErrors#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. + This should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035, + * or an + unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @since 1.13 + */ + protected ListErrors(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupManagersListErrorsResponse.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 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 ListErrors set$Xgafv(java.lang.String $Xgafv) { + return (ListErrors) super.set$Xgafv($Xgafv); + } + + @Override + public ListErrors setAccessToken(java.lang.String accessToken) { + return (ListErrors) super.setAccessToken(accessToken); + } + + @Override + public ListErrors setAlt(java.lang.String alt) { + return (ListErrors) super.setAlt(alt); + } + + @Override + public ListErrors setCallback(java.lang.String callback) { + return (ListErrors) super.setCallback(callback); + } + + @Override + public ListErrors setFields(java.lang.String fields) { + return (ListErrors) super.setFields(fields); + } + + @Override + public ListErrors setKey(java.lang.String key) { + return (ListErrors) super.setKey(key); + } + + @Override + public ListErrors setOauthToken(java.lang.String oauthToken) { + return (ListErrors) super.setOauthToken(oauthToken); + } + + @Override + public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListErrors) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListErrors setQuotaUser(java.lang.String quotaUser) { + return (ListErrors) super.setQuotaUser(quotaUser); + } + + @Override + public ListErrors setUploadType(java.lang.String uploadType) { + return (ListErrors) super.setUploadType(uploadType); + } + + @Override + public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { + return (ListErrors) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListErrors setUserIp(java.lang.String userIp) { + return (ListErrors) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -148783,6 +158975,22 @@ public Get setInstanceTemplate(java.lang.String instanceTemplate) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); @@ -149442,6 +159650,22 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + 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); @@ -152648,6 +162872,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 "regionNetworkEndpointGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional @@ -152677,6 +162907,12 @@ public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/notificationEndpoints"; + + 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])?))"); + + /** + * Retrieves the list of all NotificationEndpoint resources, regional and global, available to the + * specified project. + * + * Create a request for the method "regionNotificationEndpoints.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NotificationEndpointAggregatedList.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])?))"); + } + } + + @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @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; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return 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 " + + "(?:(?:[-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; + } + + /** + * 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 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 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 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 + * 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. + * + * 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 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 AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } /** * Deletes the specified NotificationEndpoint in the given region * @@ -159156,6 +169859,206 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionNotificationEndpoints.testIamPermissions". + * + * 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. + * + * @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 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 TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionNotificationEndpoints.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } } @@ -174657,6 +185560,1177 @@ public TestIamPermissions set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the ReservationSlots collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Retrieves information about the specified reservation slot. + * + * Create a request for the method "reservationSlots.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.

    {@link + * Get#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 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. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSlotsGetResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get 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); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public Get setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block, formatted as reservations/{reservation + * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo + * ck_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block, formatted as reservations/{reservation_name}/r + eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block, formatted as reservations/{reservation + * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo + * ck_name} + */ + public Get setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation slot, formatted as RFC1035 or a resource ID number. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSlot; + + /** The name of the reservation slot, formatted as RFC1035 or a resource ID number. + */ + public java.lang.String getReservationSlot() { + return reservationSlot; + } + + /** + * The name of the reservation slot, formatted as RFC1035 or a resource ID number. + */ + public Get setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Allows customers to get SBOM versions of a reservation slot. + * + * Create a request for the method "reservationSlots.getVersion". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + reservations/{reservation_name + * }/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_n + * ame} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSlotsGetVersionRequest} + * @return the request + */ + public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.model.ReservationSlotsGetVersionRequest content) throws java.io.IOException { + GetVersion result = new GetVersion(project, zone, parentName, reservationSlot, content); + initialize(result); + return result; + } + + public class GetVersion extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getVersion"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Allows customers to get SBOM versions of a reservation slot. + * + * Create a request for the method "reservationSlots.getVersion". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

    + * {@link + * GetVersion#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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + reservations/{reservation_name + * }/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_n + * ame} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSlotsGetVersionRequest} + * @since 1.13 + */ + protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.model.ReservationSlotsGetVersionRequest 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); + } + + @Override + public GetVersion set$Xgafv(java.lang.String $Xgafv) { + return (GetVersion) super.set$Xgafv($Xgafv); + } + + @Override + public GetVersion setAccessToken(java.lang.String accessToken) { + return (GetVersion) super.setAccessToken(accessToken); + } + + @Override + public GetVersion setAlt(java.lang.String alt) { + return (GetVersion) super.setAlt(alt); + } + + @Override + public GetVersion setCallback(java.lang.String callback) { + return (GetVersion) super.setCallback(callback); + } + + @Override + public GetVersion setFields(java.lang.String fields) { + return (GetVersion) super.setFields(fields); + } + + @Override + public GetVersion setKey(java.lang.String key) { + return (GetVersion) super.setKey(key); + } + + @Override + public GetVersion setOauthToken(java.lang.String oauthToken) { + return (GetVersion) super.setOauthToken(oauthToken); + } + + @Override + public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVersion) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVersion setQuotaUser(java.lang.String quotaUser) { + return (GetVersion) super.setQuotaUser(quotaUser); + } + + @Override + public GetVersion setUploadType(java.lang.String uploadType) { + return (GetVersion) super.setUploadType(uploadType); + } + + @Override + public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVersion) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVersion setUserIp(java.lang.String userIp) { + return (GetVersion) 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 GetVersion setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public GetVersion setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of reservations/{reserva + * tion_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub + * _block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of reservations/{reservation_nam + e}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of reservations/{reserva + * tion_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub + * _block_name} + */ + public GetVersion setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSlot; + + /** The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSlot() { + return reservationSlot; + } + + /** + * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + public GetVersion setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + 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 GetVersion setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); + } + } + /** + * Retrieves a list of reservation slots under a single reservation. + * + * Create a request for the method "reservationSlots.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 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} + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone, java.lang.String parentName) throws java.io.IOException { + List result = new List(project, zone, parentName); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Retrieves a list of reservation slots under a single reservation. + * + * Create a request for the method "reservationSlots.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * + * @param 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} + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String parentName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSlotsListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([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); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public List setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block, formatted as reservations/{reservation + * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo + * ck_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block, formatted as reservations/{reservation_name}/r + eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block, formatted as reservations/{reservation + * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo + * ck_name} + */ + public List setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + 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. + * + * 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 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 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 List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Update a reservation slot in the specified sub-block. + * + * Create a request for the method "reservationSlots.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 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 sub-block resource. + * @param reservationSlot The name of the slot resource. + * @param content the {@link com.google.api.services.compute.model.ReservationSlot} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.model.ReservationSlot content) throws java.io.IOException { + Update result = new Update(project, zone, parentName, reservationSlot, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Update a reservation slot in the specified sub-block. + * + * Create a request for the method "reservationSlots.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    + * + * @param 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 sub-block resource. + * @param reservationSlot The name of the slot resource. + * @param content the {@link com.google.api.services.compute.model.ReservationSlot} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.model.ReservationSlot 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public Update setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public Update setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the sub-block resource. */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the sub-block resource. + */ + public java.lang.String getParentName() { + return parentName; + } + + /** The name of the sub-block resource. */ + public Update setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + return this; + } + + /** The name of the slot resource. */ + @com.google.api.client.util.Key + private java.lang.String reservationSlot; + + /** The name of the slot resource. + */ + public java.lang.String getReservationSlot() { + return reservationSlot; + } + + /** The name of the slot resource. */ + public Update setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + return this; + } + + /** The fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the ReservationSubBlocks collection. * @@ -174701,7 +186775,10 @@ public Get get(java.lang.String project, java.lang.String zone, java.lang.String public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** * Retrieves information about the specified reservation subBlock. @@ -174726,6 +186803,11 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @@ -174850,6 +186932,11 @@ public java.lang.String getParentName() { * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ public Get setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } this.parentName = parentName; return this; } @@ -174917,7 +187004,7 @@ public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; 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])?))"); @@ -175152,6 +187239,263 @@ public GetIamPolicy set(String parameterName, Object value) { return (GetIamPolicy) super.set(parameterName, value); } } + /** + * Allows customers to get SBOM versions of a reservation subBlock. + * + * Create a request for the method "reservationSubBlocks.getVersion". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSubBlocksGetVersionRequest} + * @return the request + */ + public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlocksGetVersionRequest content) throws java.io.IOException { + GetVersion result = new GetVersion(project, zone, parentName, reservationSubBlock, content); + initialize(result); + return result; + } + + public class GetVersion extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/getVersion"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + + /** + * Allows customers to get SBOM versions of a reservation subBlock. + * + * Create a request for the method "reservationSubBlocks.getVersion". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

    + * {@link + * GetVersion#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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSubBlocksGetVersionRequest} + * @since 1.13 + */ + protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlocksGetVersionRequest 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + } + + @Override + public GetVersion set$Xgafv(java.lang.String $Xgafv) { + return (GetVersion) super.set$Xgafv($Xgafv); + } + + @Override + public GetVersion setAccessToken(java.lang.String accessToken) { + return (GetVersion) super.setAccessToken(accessToken); + } + + @Override + public GetVersion setAlt(java.lang.String alt) { + return (GetVersion) super.setAlt(alt); + } + + @Override + public GetVersion setCallback(java.lang.String callback) { + return (GetVersion) super.setCallback(callback); + } + + @Override + public GetVersion setFields(java.lang.String fields) { + return (GetVersion) super.setFields(fields); + } + + @Override + public GetVersion setKey(java.lang.String key) { + return (GetVersion) super.setKey(key); + } + + @Override + public GetVersion setOauthToken(java.lang.String oauthToken) { + return (GetVersion) super.setOauthToken(oauthToken); + } + + @Override + public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVersion) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVersion setQuotaUser(java.lang.String quotaUser) { + return (GetVersion) super.setQuotaUser(quotaUser); + } + + @Override + public GetVersion setUploadType(java.lang.String uploadType) { + return (GetVersion) super.setUploadType(uploadType); + } + + @Override + public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVersion) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVersion setUserIp(java.lang.String userIp) { + return (GetVersion) 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 GetVersion setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public GetVersion setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public GetVersion setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSubBlock; + + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public GetVersion setReservationSubBlock(java.lang.String reservationSubBlock) { + this.reservationSubBlock = reservationSubBlock; + 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 GetVersion setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); + } + } /** * Retrieves a list of reservation subBlocks under a single reservation. * @@ -175174,7 +187518,10 @@ public List list(java.lang.String project, java.lang.String zone, java.lang.Stri public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** * Retrieves a list of reservation subBlocks under a single reservation. @@ -175197,6 +187544,11 @@ protected List(java.lang.String project, java.lang.String zone, java.lang.String this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } } @Override @@ -175320,6 +187672,11 @@ public java.lang.String getParentName() { * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ public List setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } this.parentName = parentName; return this; } @@ -175617,7 +187974,10 @@ public PerformMaintenance performMaintenance(java.lang.String project, java.lang public class PerformMaintenance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** * Allows customers to perform maintenance on a reservation subBlock @@ -175643,6 +188003,11 @@ protected PerformMaintenance(java.lang.String project, java.lang.String zone, ja this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @@ -175757,6 +188122,11 @@ public java.lang.String getParentName() { * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ public PerformMaintenance setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } this.parentName = parentName; return this; } @@ -175860,7 +188230,10 @@ public ReportFaulty reportFaulty(java.lang.String project, java.lang.String zone public class ReportFaulty extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** * Allows customers to report a faulty subBlock. @@ -175887,6 +188260,11 @@ protected ReportFaulty(java.lang.String project, java.lang.String zone, java.lan this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @@ -176001,6 +188379,11 @@ public java.lang.String getParentName() { * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ public ReportFaulty setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } this.parentName = parentName; return this; } @@ -176102,7 +188485,7 @@ public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; 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])?))"); @@ -176334,7 +188717,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; 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])?))"); @@ -188335,6 +200718,174 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "routes.testIamPermissions". + * + * 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. + * + * @param project Project ID 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 TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/routes/{resource}/testIamPermissions"; + + 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 RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "routes.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 TestIamPermissions(java.lang.String project, 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } } @@ -194540,107 +207091,1065 @@ 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 snapshot Name of the Snapshot resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String snapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Snapshot.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot 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; + } + + /** Name of the Snapshot resource to return. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the Snapshot resource to return. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the Snapshot resource to return. */ + public Get setSnapshot(java.lang.String snapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.snapshot = snapshot; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "snapshots.getIamPolicy". + * + * 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. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/getIamPolicy"; + + 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 RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "snapshots.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

    + * {@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 resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, 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(), + "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.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 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); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + 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. */ + @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 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 " + + "(?:(?:[-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 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 GetIamPolicy 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; + } + + /** 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); + } + } + /** + * Creates a snapshot in the specified project using the data included in the request. For regular + * snapshot creation, consider using this method instead of disks.createSnapshot, as this method + * supports more features, such as creating snapshots in a project different from the source disk + * project. + * + * Create a request for the method "snapshots.insert". + * + * 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. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots"; + + 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])?))"); + + /** + * Creates a snapshot in the specified project using the data included in the request. For regular + * snapshot creation, consider using this method instead of disks.createSnapshot, as this method + * supports more features, such as creating snapshots in a project different from the source disk + * project. + * + * Create a request for the method "snapshots.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @since 1.13 + */ + protected Insert(java.lang.String project, 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(), + "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])?))"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 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 " + + "(?:(?:[-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; + } + + /** + * 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; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of Snapshot resources contained within the specified project. + * + * Create a request for the method "snapshots.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. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots"; + + 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])?))"); + + /** + * Retrieves the list of Snapshot resources contained within the specified project. + * + * Create a request for the method "snapshots.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotList.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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) 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 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 " + + "(?:(?:[-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; + } + + /** + * 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 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 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 List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "snapshots.setIamPolicy". + * + * 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. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setIamPolicy"; + + 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 RESOURCE_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 Snapshot resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "snapshots.get". + * Create a request for the method "snapshots.setIamPolicy". * * 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.

    {@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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * {@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 snapshot Name of the Snapshot resource to return. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String snapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Snapshot.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest 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(), "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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot 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(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot 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(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 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. */ @@ -194654,7 +208163,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 " + @@ -194664,53 +208173,55 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the Snapshot resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String snapshot; + private java.lang.String resource; - /** Name of the Snapshot resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getSnapshot() { - return snapshot; + public java.lang.String getResource() { + return resource; } - /** Name of the Snapshot resource to return. */ - public Get setSnapshot(java.lang.String snapshot) { + /** 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(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot 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(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.snapshot = snapshot; + 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); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "snapshots.getIamPolicy". + * Create a request for the method "snapshots.setLabels". * * 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 SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setLabels"; 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])?))"); @@ -194719,23 +208230,24 @@ public class GetIamPolicy extends ComputeRequest + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    * {@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.

    * * @param project Project ID for this request. * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest 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(), @@ -194751,73 +208263,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String resource) { } @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 SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -194831,7 +208333,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy 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 " + @@ -194852,7 +208354,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -194862,140 +208364,130 @@ 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 SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Creates a snapshot in the specified project using the data included in the request. For regular - * snapshot creation, consider using this method instead of disks.createSnapshot, as this method - * supports more features, such as creating snapshots in a project different from the source disk - * project. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "snapshots.insert". + * Create a request for the method "snapshots.testIamPermissions". * * 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 TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @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 Insert insert(java.lang.String project, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { - Insert result = new Insert(project, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots"; + private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/testIamPermissions"; 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 RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a snapshot in the specified project using the data included in the request. For regular - * snapshot creation, consider using this method instead of disks.createSnapshot, as this method - * supports more features, such as creating snapshots in a project different from the source disk - * project. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "snapshots.insert". + * Create a request for the method "snapshots.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * 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 content the {@link com.google.api.services.compute.model.Snapshot} + * @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 Insert(java.lang.String project, com.google.api.services.compute.model.Snapshot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, 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(), "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.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 TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -195009,7 +208501,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert 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 " + @@ -195019,99 +208511,103 @@ public Insert setProject(java.lang.String project) { 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 or id of the resource for this request. */ @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 resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** 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; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the SslCertificates collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots"; + private static final String REST_PATH = "projects/{project}/aggregated/sslCertificates"; 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])?))"); /** - * 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 the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * 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 project Name of the project scoping this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificateAggregatedList.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(), @@ -195131,77 +208627,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 " + @@ -195342,11 +208838,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 @@ -195371,7 +208901,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; } @@ -195415,7 +208945,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; } @@ -195438,7 +208968,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; } @@ -195470,135 +209000,155 @@ 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); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Deletes the specified SslCertificate resource. * - * Create a request for the method "snapshots.setIamPolicy". + * Create a request for the method "sslCertificates.delete". * * 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 Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param sslCertificate Name of the SslCertificate resource to delete. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public Delete delete(java.lang.String project, java.lang.String sslCertificate) throws java.io.IOException { + Delete result = new Delete(project, sslCertificate); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; 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 RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern SSL_CERTIFICATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Deletes the specified SslCertificate resource. * - * Create a request for the method "snapshots.setIamPolicy". + * Create a request for the method "sslCertificates.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param sslCertificate Name of the SslCertificate resource to delete. * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Delete(java.lang.String project, java.lang.String sslCertificate) { + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate 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(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate 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 Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -195612,7 +209162,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy 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 " + @@ -195622,153 +209172,207 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the SslCertificate resource to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String sslCertificate; - /** Name or id of the resource for this request. + /** Name of the SslCertificate resource to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getSslCertificate() { + return sslCertificate; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the SslCertificate resource to delete. */ + public Delete setSslCertificate(java.lang.String sslCertificate) { 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(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate 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.sslCertificate = sslCertificate; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources - * documentation. + * Returns the specified SslCertificate resource. * - * Create a request for the method "snapshots.setLabels". + * Create a request for the method "sslCertificates.get". * * 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 Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param sslCertificate Name of the SslCertificate resource to return. * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); + public Get get(java.lang.String project, java.lang.String sslCertificate) throws java.io.IOException { + Get result = new Get(project, sslCertificate); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; 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 RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern SSL_CERTIFICATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources - * documentation. + * Returns the specified SslCertificate resource. * - * Create a request for the method "snapshots.setLabels". + * Create a request for the method "sslCertificates.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param sslCertificate Name of the SslCertificate resource to return. * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest 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 sslCertificate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificate.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate 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(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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. */ @@ -195782,7 +209386,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels 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 " + @@ -195792,151 +209396,333 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the SslCertificate resource to return. */ + @com.google.api.client.util.Key + private java.lang.String sslCertificate; + + /** Name of the SslCertificate resource to return. + */ + public java.lang.String getSslCertificate() { + return sslCertificate; + } + + /** Name of the SslCertificate resource to return. */ + public Get setSslCertificate(java.lang.String sslCertificate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.sslCertificate = sslCertificate; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a SslCertificate resource in the specified project using the data included in the + * request. + * + * Create a request for the method "sslCertificates.insert". + * + * 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. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.SslCertificate} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.SslCertificate content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslCertificates"; + + 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])?))"); + + /** + * Creates a SslCertificate resource in the specified project using the data included in the + * request. + * + * Create a request for the method "sslCertificates.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.SslCertificate} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.SslCertificate 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(), + "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])?))"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 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 " + + "(?:(?:[-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; + } + + /** + * 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 resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** 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 getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * 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; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) 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 SslCertificate resources available to the specified project. * - * Create a request for the method "snapshots.testIamPermissions". + * Create a request for the method "sslCertificates.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 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 TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/sslCertificates"; 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 RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of SslCertificate resources available to the specified project. * - * Create a request for the method "snapshots.testIamPermissions". + * Create a request for the method "sslCertificates.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * 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 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 TestIamPermissions(java.lang.String project, 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) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificateList.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.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. */ @@ -195950,7 +209736,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 " + @@ -195960,63 +209746,306 @@ public TestIamPermissions setProject(java.lang.String project) { 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. + /** 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 getResource() { - return resource; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the SslCertificates collection. + * An accessor for creating requests from the SslPolicies collection. * *

    The typical use is:

    *
        *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/sslCertificates"; + private static final String REST_PATH = "projects/{project}/aggregated/sslPolicies"; 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])?))"); /** - * 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 the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -196056,7 +210085,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; 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 SSL_CERTIFICATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified SslCertificate resource. + * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in + * use by any TargetHttpsProxy or TargetSslProxy resources. * - * Create a request for the method "sslCertificates.delete". + * Create a request for the method "sslPolicies.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -196521,10 +210550,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param sslCertificate Name of the SslCertificate resource to delete. + * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, + and comply with RFC1035. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String sslCertificate) { + protected Delete(java.lang.String project, java.lang.String sslPolicy) { 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()) { @@ -196532,12 +210562,7 @@ protected Delete(java.lang.String project, java.lang.String sslCertificate) { "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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); } @Override @@ -196621,24 +210646,25 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the SslCertificate resource to delete. */ + /** + * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String sslCertificate; + private java.lang.String sslPolicy; - /** Name of the SslCertificate resource to delete. + /** Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. */ - public java.lang.String getSslCertificate() { - return sslCertificate; + public java.lang.String getSslPolicy() { + return sslPolicy; } - /** Name of the SslCertificate resource to delete. */ - public Delete setSslCertificate(java.lang.String sslCertificate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.sslCertificate = sslCertificate; + /** + * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Delete setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; return this; } @@ -196697,37 +210723,35 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified SslCertificate resource. + * Lists all of the ordered rules present in a single specified policy. * - * Create a request for the method "sslCertificates.get". + * Create a request for the method "sslPolicies.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 sslCertificate Name of the SslCertificate resource to return. + * @param sslPolicy Name of the SSL policy 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 sslCertificate) throws java.io.IOException { - Get result = new Get(project, sslCertificate); + public Get get(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { + Get result = new Get(project, sslPolicy); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; 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 SSL_CERTIFICATE_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 SslCertificate resource. + * Lists all of the ordered rules present in a single specified policy. * - * Create a request for the method "sslCertificates.get". + * Create a request for the method "sslPolicies.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.

    {@link @@ -196735,23 +210759,19 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param sslCertificate Name of the SslCertificate resource to return. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String sslCertificate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificate.class); + protected Get(java.lang.String project, java.lang.String sslPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPolicy.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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); } @Override @@ -196845,24 +210865,25 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the SslCertificate resource to return. */ + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String sslCertificate; + private java.lang.String sslPolicy; - /** Name of the SslCertificate resource to return. + /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. */ - public java.lang.String getSslCertificate() { - return sslCertificate; + public java.lang.String getSslPolicy() { + return sslPolicy; } - /** Name of the SslCertificate resource to return. */ - public Get setSslCertificate(java.lang.String sslCertificate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.sslCertificate = sslCertificate; + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Get setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; return this; } @@ -196872,19 +210893,18 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a SslCertificate resource in the specified project using the data included in the - * request. + * Returns the specified SSL policy resource. * - * Create a request for the method "sslCertificates.insert". + * Create a request for the method "sslPolicies.insert". * * 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. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.SslCertificate} + * @param content the {@link com.google.api.services.compute.model.SslPolicy} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.SslCertificate content) throws java.io.IOException { + public Insert insert(java.lang.String project, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { Insert result = new Insert(project, content); initialize(result); return result; @@ -196892,16 +210912,15 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslCertificates"; + private static final String REST_PATH = "projects/{project}/global/sslPolicies"; 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])?))"); /** - * Creates a SslCertificate resource in the specified project using the data included in the - * request. + * Returns the specified SSL policy resource. * - * Create a request for the method "sslCertificates.insert". + * Create a request for the method "sslPolicies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

    {@link @@ -196909,10 +210928,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.SslCertificate} + * @param content the {@link com.google.api.services.compute.model.SslPolicy} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.SslCertificate content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.SslPolicy 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()) { @@ -197058,9 +211077,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of SslCertificate resources available to the specified project. + * Lists all the SSL policies that have been configured for the specified project. * - * Create a request for the method "sslCertificates.list". + * Create a request for the method "sslPolicies.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. @@ -197074,17 +211093,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslCertificates"; + private static final String REST_PATH = "projects/{project}/global/sslPolicies"; 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])?))"); /** - * Retrieves the list of SslCertificate resources available to the specified project. + * Lists all the SSL policies that have been configured for the specified project. * - * Create a request for the method "sslCertificates.list". + * Create a request for the method "sslPolicies.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -197095,7 +211114,7 @@ public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/listAvailableFeatures"; + + 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])?))"); + + /** + * Lists all features that can be specified in the SSL policy when using custom profile. + * + * Create a request for the method "sslPolicies.listAvailableFeatures". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote + * operation.

    {@link ListAvailableFeatures#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. + * @since 1.13 + */ + protected ListAvailableFeatures(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesListAvailableFeaturesResponse.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])?))"); + } + } + + @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 ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { + return (ListAvailableFeatures) super.set$Xgafv($Xgafv); + } + + @Override + public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { + return (ListAvailableFeatures) super.setAccessToken(accessToken); + } + + @Override + public ListAvailableFeatures setAlt(java.lang.String alt) { + return (ListAvailableFeatures) super.setAlt(alt); + } + + @Override + public ListAvailableFeatures setCallback(java.lang.String callback) { + return (ListAvailableFeatures) super.setCallback(callback); + } + + @Override + public ListAvailableFeatures setFields(java.lang.String fields) { + return (ListAvailableFeatures) super.setFields(fields); + } + + @Override + public ListAvailableFeatures setKey(java.lang.String key) { + return (ListAvailableFeatures) super.setKey(key); + } + + @Override + public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { + return (ListAvailableFeatures) super.setOauthToken(oauthToken); + } + + @Override + public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { + return (ListAvailableFeatures) super.setQuotaUser(quotaUser); + } + + @Override + public ListAvailableFeatures setUploadType(java.lang.String uploadType) { + return (ListAvailableFeatures) super.setUploadType(uploadType); + } + + @Override + public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListAvailableFeatures setUserIp(java.lang.String userIp) { + return (ListAvailableFeatures) 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 ListAvailableFeatures 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; + } + + /** + * 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 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 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 ListAvailableFeatures setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -197355,7 +211783,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 ListAvailableFeatures setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -197399,7 +211827,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListAvailableFeatures setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -197422,7 +211850,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 ListAvailableFeatures setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -197454,52 +211882,262 @@ 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 ListAvailableFeatures setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListAvailableFeatures set(String parameterName, Object value) { + return (ListAvailableFeatures) super.set(parameterName, value); + } + } + /** + * Patches the specified SSL policy with the data included in the request. + * + * Create a request for the method "sslPolicies.patch". + * + * 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. + * + * @param project Project ID for this request. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String sslPolicy, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { + Patch result = new Patch(project, sslPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + + 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])?))"); + + /** + * Patches the specified SSL policy with the data included in the request. + * + * Create a request for the method "sslPolicies.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String sslPolicy, com.google.api.services.compute.model.SslPolicy 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(), + "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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) 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 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 " + + "(?:(?:[-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 SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Patch setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the SslPolicies collection. + * An accessor for creating requests from the StoragePoolTypes collection. * *

    The typical use is:

    *
        *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/sslPolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/storagePoolTypes"; 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])?))"); /** - * 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 the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -197530,11 +212167,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolTypeAggregatedList.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(), @@ -197613,17 +212250,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -197961,246 +212598,41 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use - * by any TargetHttpsProxy or TargetSslProxy resources. + * Returns the specified storage pool type. * - * Create a request for the method "sslPolicies.delete". + * Create a request for the method "storagePoolTypes.get". * * 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 Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. + * @param zone The name of the zone for this request. + * @param storagePoolType Name of the storage pool type to return. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { - Delete result = new Delete(project, sslPolicy); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String storagePoolType) throws java.io.IOException { + Get result = new Get(project, zone, storagePoolType); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}"; 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])?))"); - /** - * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in - * use by any TargetHttpsProxy or TargetSslProxy resources. - * - * Create a request for the method "sslPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    - * - * @param project Project ID for this request. - * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String sslPolicy) { - 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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete 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 SSL policy to delete. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - public Delete setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Lists all of the ordered rules present in a single specified policy. - * - * Create a request for the method "sslPolicies.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 sslPolicy Name of the SSL policy 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 sslPolicy) throws java.io.IOException { - Get result = new Get(project, sslPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - 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 STORAGE_POOL_TYPE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Lists all of the ordered rules present in a single specified policy. + * Returns the specified storage pool type. * - * Create a request for the method "sslPolicies.get". + * Create a request for the method "storagePoolTypes.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.

    {@link @@ -198208,19 +212640,30 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. + * @param zone The name of the zone for this request. + * @param storagePoolType Name of the storage pool type to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String sslPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPolicy.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String storagePoolType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolType.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + 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.storagePoolType = com.google.api.client.util.Preconditions.checkNotNull(storagePoolType, "Required parameter storagePoolType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_TYPE_PATTERN.matcher(storagePoolType).matches(), + "Parameter storagePoolType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -198314,245 +212757,85 @@ public Get setProject(java.lang.String project) { return this; } - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } + private java.lang.String zone; - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. + /** The name of the zone for this request. */ - public Get setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public java.lang.String getZone() { + return zone; } - } - /** - * Returns the specified SSL policy resource. - * - * Create a request for the method "sslPolicies.insert". - * - * 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. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.SslPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies"; - - 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])?))"); - - /** - * Returns the specified SSL policy resource. - * - * Create a request for the method "sslPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.SslPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.SslPolicy 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."); + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { 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])?))"); + 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; } - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); - } - - /** Project ID for this request. */ + /** Name of the storage pool type to return. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String storagePoolType; - /** Project ID for this request. + /** Name of the storage pool type to return. */ - public java.lang.String getProject() { - return project; + public java.lang.String getStoragePoolType() { + return storagePoolType; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** Name of the storage pool type to return. */ + public Get setStoragePoolType(java.lang.String storagePoolType) { 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])?))"); + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_TYPE_PATTERN.matcher(storagePoolType).matches(), + "Parameter storagePoolType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.project = project; - 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; + this.storagePoolType = storagePoolType; 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); } } /** - * Lists all the SSL policies that have been configured for the specified project. + * Retrieves a list of storage pool types available to the specified project. * - * Create a request for the method "sslPolicies.list". + * Create a request for the method "storagePoolTypes.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 zone The name of the zone for this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslPolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Lists all the SSL policies that have been configured for the specified project. + * Retrieves a list of storage pool types available to the specified project. * - * Create a request for the method "sslPolicies.list". + * Create a request for the method "storagePoolTypes.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -198560,16 +212843,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. + * @param zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesList.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolTypeList.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])?"); + } } @Override @@ -198663,6 +212953,27 @@ public List setProject(java.lang.String 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 List 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; + } + /** * 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 @@ -198932,47 +213243,75 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the StoragePools collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslPolicies/listAvailableFeatures"; + private static final String REST_PATH = "projects/{project}/aggregated/storagePools"; 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])?))"); /** - * 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 the compute server. After setting any optional - * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote - * operation.

    {@link ListAvailableFeatures#initialize(com.google.api.client.googleapis.service - * s.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. * @since 1.13 */ - protected ListAvailableFeatures(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesListAvailableFeaturesResponse.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolAggregatedList.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(), @@ -198992,63 +213331,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { - return (ListAvailableFeatures) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { - return (ListAvailableFeatures) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListAvailableFeatures setAlt(java.lang.String alt) { - return (ListAvailableFeatures) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListAvailableFeatures setCallback(java.lang.String callback) { - return (ListAvailableFeatures) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListAvailableFeatures setFields(java.lang.String fields) { - return (ListAvailableFeatures) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListAvailableFeatures setKey(java.lang.String key) { - return (ListAvailableFeatures) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { - return (ListAvailableFeatures) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { - return (ListAvailableFeatures) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListAvailableFeatures setUploadType(java.lang.String uploadType) { - return (ListAvailableFeatures) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public ListAvailableFeatures setUserIp(java.lang.String userIp) { - return (ListAvailableFeatures) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -199062,7 +213401,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListAvailableFeatures setProject(java.lang.String project) { + 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 " + @@ -199203,11 +213542,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListAvailableFeatures 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 @@ -199232,7 +213605,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 ListAvailableFeatures setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -199276,7 +213649,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListAvailableFeatures setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -199299,7 +213672,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 ListAvailableFeatures setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -199331,128 +213704,170 @@ 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 ListAvailableFeatures 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 ListAvailableFeatures set(String parameterName, Object value) { - return (ListAvailableFeatures) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Patches the specified SSL policy with the data included in the request. + * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is + * irreversible. However, deleting a storagePool does not delete any snapshots previously made from + * the storagePool. You must separately delete snapshots. * - * Create a request for the method "sslPolicies.patch". + * Create a request for the method "storagePools.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 sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @param zone The name of the zone for this request. + * @param storagePool Name of the storage pool to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String sslPolicy, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { - Patch result = new Patch(project, sslPolicy, content); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException { + Delete result = new Delete(project, zone, storagePool); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern STORAGE_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Patches the specified SSL policy with the data included in the request. + * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is + * irreversible. However, deleting a storagePool does not delete any snapshots previously made + * from the storagePool. You must separately delete snapshots. * - * Create a request for the method "sslPolicies.patch". + * Create a request for the method "storagePools.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @param zone The name of the zone for this request. + * @param storagePool Name of the storage pool to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String sslPolicy, com.google.api.services.compute.model.SslPolicy 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 zone, java.lang.String storagePool) { + 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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + 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.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool 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. */ @@ -199466,7 +213881,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 " + @@ -199476,25 +213891,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String sslPolicy; + private java.lang.String zone; - /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + /** The name of the zone for this request. */ - public java.lang.String getSslPolicy() { - return sslPolicy; + public java.lang.String getZone() { + return zone; } - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. + /** The name of the zone for this request. */ + public Delete 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 storage pool to delete. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** Name of the storage pool to delete. */ - public Patch setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; + public java.lang.String getStoragePool() { + return storagePool; + } + + /** Name of the storage pool to delete. */ + public Delete setStoragePool(java.lang.String storagePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePool = storagePool; return this; } @@ -199542,91 +213977,85 @@ 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); } } - - } - - /** - * An accessor for creating requests from the StoragePoolTypes collection. - * - *

    The typical use is:

    - *
    -   *   {@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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/storagePoolTypes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern STORAGE_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * 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 the compute server. After setting any optional - * 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    * * @param 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. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolTypeAggregatedList.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePool.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.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -199640,63 +214069,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -199710,7 +214139,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList 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 " + @@ -199720,354 +214149,300 @@ public AggregatedList setProject(java.lang.String project) { 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. - * - * 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. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String zone; - /** 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. + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } - 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 name of the zone for this request. */ + public Get 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; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** Name of the storage pool to return. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; - 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:* ``` + /** Name of the storage pool to return. + */ + public java.lang.String getStoragePool() { + return storagePool; + } - 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. + /** Name of the storage pool to return. */ + public Get setStoragePool(java.lang.String storagePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePool = storagePool; + return this; + } - 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) ``` + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "storagePools.getIamPolicy". + * + * 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. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + 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 GetIamPolicy extends ComputeRequest { - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy"; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + 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])?))"); - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * 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")` + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "storagePools.getIamPolicy". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected GetIamPolicy(java.lang.String project, java.lang.String zone, 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(), + "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.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}"); + } } - /** - * 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; + @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); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } - /** 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; + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } - /** - * 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; + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } - /** - * 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; + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } - /** 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; + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } - /** - * 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; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } - /** - * 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; + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } - 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. + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * 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 AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + /** Project ID for this request. */ + 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 " + + "(?:(?:[-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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String zone; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the zone for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getZone() { + return zone; } - /** - * 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; + /** The name of the zone for this request. */ + public GetIamPolicy 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; } - /** - * 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. - */ + /** Name or id of the resource for this request. */ @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. + private java.lang.String resource; - 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. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** 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(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; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.Integer optionsRequestedPolicyVersion; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Requested IAM Policy version. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified storage pool type. + * Creates a storage pool in the specified project using the data in the request. * - * Create a request for the method "storagePoolTypes.get". + * Create a request for the method "storagePools.insert". * * 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 Insert#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 storagePoolType Name of the storage pool type to return. + * @param content the {@link com.google.api.services.compute.model.StoragePool} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String storagePoolType) throws java.io.IOException { - Get result = new Get(project, zone, storagePoolType); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.StoragePool content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; 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])?))"); @@ -200075,26 +214450,23 @@ 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.

    + * 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 zone The name of the zone for this request. - * @param storagePoolType Name of the storage pool type to return. + * @param content the {@link com.google.api.services.compute.model.StoragePool} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String storagePoolType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolType.class); + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.StoragePool 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(), @@ -200107,82 +214479,66 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.storagePoolType = com.google.api.client.util.Preconditions.checkNotNull(storagePoolType, "Required parameter storagePoolType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_TYPE_PATTERN.matcher(storagePoolType).matches(), - "Parameter storagePoolType 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 Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -200196,7 +214552,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -200217,7 +214573,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + public Insert 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 " + @@ -200227,36 +214583,64 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the storage pool type to return. */ + /** + * 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 storagePoolType; + private java.lang.String requestId; - /** Name of the storage pool type to return. + /** 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 getStoragePoolType() { - return storagePoolType; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the storage pool type to return. */ - public Get setStoragePoolType(java.lang.String storagePoolType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_TYPE_PATTERN.matcher(storagePoolType).matches(), - "Parameter storagePoolType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.storagePoolType = storagePoolType; + /** + * 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; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of storage pool types available to the specified project. + * Retrieves a list of storage pools contained within the specified zone. * - * Create a request for the method "storagePoolTypes.list". + * Create a request for the method "storagePools.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. @@ -200271,9 +214655,9 @@ public List list(java.lang.String project, java.lang.String zone) throws java.io return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; 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])?))"); @@ -200282,9 +214666,9 @@ public class List extends ComputeRequest {@link @@ -200296,7 +214680,7 @@ public class List extends ComputeRequestThe typical use is:

    - *
    -   *   {@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 { + public class ListDisks extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/storagePools"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern STORAGE_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * 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 the compute server. After setting any optional - * 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.

    + * parameters, call the {@link ListDisks#execute()} method to invoke the remote operation.

    + * {@link + * ListDisks#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 storagePool Name of the storage pool to list disks of. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolAggregatedList.class); + protected ListDisks(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolListDisks.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.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -200780,63 +215157,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public ListDisks set$Xgafv(java.lang.String $Xgafv) { + return (ListDisks) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ListDisks setAccessToken(java.lang.String accessToken) { + return (ListDisks) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ListDisks setAlt(java.lang.String alt) { + return (ListDisks) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ListDisks setCallback(java.lang.String callback) { + return (ListDisks) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ListDisks setFields(java.lang.String fields) { + return (ListDisks) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ListDisks setKey(java.lang.String key) { + return (ListDisks) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ListDisks setOauthToken(java.lang.String oauthToken) { + return (ListDisks) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ListDisks setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListDisks) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ListDisks setQuotaUser(java.lang.String quotaUser) { + return (ListDisks) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ListDisks setUploadType(java.lang.String uploadType) { + return (ListDisks) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public ListDisks setUploadProtocol(java.lang.String uploadProtocol) { + return (ListDisks) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public ListDisks setUserIp(java.lang.String userIp) { + return (ListDisks) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -200850,7 +215227,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public ListDisks 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 " + @@ -200860,6 +215237,48 @@ public AggregatedList setProject(java.lang.String 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 ListDisks 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 storage pool to list disks of. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** Name of the storage pool to list disks of. + */ + public java.lang.String getStoragePool() { + return storagePool; + } + + /** Name of the storage pool to list disks of. */ + public ListDisks setStoragePool(java.lang.String storagePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePool = storagePool; + 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 @@ -200991,45 +215410,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListDisks 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 @@ -201054,7 +215439,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 AggregatedList setMaxResults(java.lang.Long maxResults) { + public ListDisks setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -201098,7 +215483,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListDisks setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -201121,7 +215506,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 AggregatedList setPageToken(java.lang.String pageToken) { + public ListDisks setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -201153,312 +215538,39 @@ 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 AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListDisks 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 AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is - * irreversible. However, deleting a storagePool does not delete any snapshots previously made from - * the storagePool. You must separately delete snapshots. - * - * Create a request for the method "storagePools.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 zone The name of the zone for this request. - * @param storagePool Name of the storage pool to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException { - Delete result = new Delete(project, zone, storagePool); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; - - 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 ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern STORAGE_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is - * irreversible. However, deleting a storagePool does not delete any snapshots previously made - * from the storagePool. You must separately delete snapshots. - * - * Create a request for the method "storagePools.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param storagePool Name of the storage pool to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { - 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.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.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool 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; - } - - /** 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 Delete 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 storage pool to delete. */ - @com.google.api.client.util.Key - private java.lang.String storagePool; - - /** Name of the storage pool to delete. - */ - public java.lang.String getStoragePool() { - return storagePool; - } - - /** Name of the storage pool to delete. */ - public Delete setStoragePool(java.lang.String storagePool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.storagePool = storagePool; - 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public ListDisks set(String parameterName, Object value) { + return (ListDisks) super.set(parameterName, value); } } /** - * Returns a specified storage pool. Gets a list of available storage pools by making a list() - * request. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "storagePools.get". + * Create a request for the method "storagePools.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 zone The name of the zone for this request. - * @param storagePool Name of the storage pool to return. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @return the request */ - 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); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy"; 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])?))"); @@ -201466,27 +215578,28 @@ 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.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    + * {@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 zone The name of the zone for this request. - * @param storagePool Name of the storage pool to return. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePool.class); + protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest 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(), @@ -201499,82 +215612,72 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool 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(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool 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 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. */ @@ -201588,7 +215691,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 " + @@ -201609,7 +215712,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + public SetIamPolicy 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 " + @@ -201619,54 +215722,55 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the storage pool to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String storagePool; + private java.lang.String resource; - /** Name of the storage pool to return. + /** Name or id of the resource for this request. */ - public java.lang.String getStoragePool() { - return storagePool; + public java.lang.String getResource() { + return resource; } - /** Name of the storage pool to return. */ - public Get setStoragePool(java.lang.String storagePool) { + /** 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(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool 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.storagePool = storagePool; + 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); } } /** - * 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 "storagePools.getIamPolicy". + * Create a request for the method "storagePools.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 zone The name of the zone 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 zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions"; 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])?))"); @@ -201678,24 +215782,24 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#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 zone The name of the zone 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 zone, 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 zone, 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(), @@ -201717,73 +215821,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @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. */ @@ -201797,7 +215891,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 " + @@ -201818,7 +215912,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + public TestIamPermissions 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 " + @@ -201839,7 +215933,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 " + @@ -201849,49 +215943,36 @@ 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); } } /** - * Creates a storage pool in the specified project using the data in the request. + * Updates the specified storagePool with the data included in the request. The update is performed + * only on selected fields included as part of update-mask. Only the following fields can be + * modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. * - * Create a request for the method "storagePools.insert". + * Create a request for the method "storagePools.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 zone The name of the zone for this request. + * @param storagePool The storagePool name for this request. * @param content the {@link com.google.api.services.compute.model.StoragePool} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.StoragePool content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); + public Update update(java.lang.String project, java.lang.String zone, java.lang.String storagePool, com.google.api.services.compute.model.StoragePool content) throws java.io.IOException { + Update result = new Update(project, zone, storagePool, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; 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])?))"); @@ -201899,23 +215980,30 @@ public class Insert extends ComputeRequest {@link - * Insert#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.

    * * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param storagePool The storagePool name for this request. * @param content the {@link com.google.api.services.compute.model.StoragePool} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.StoragePool 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 zone, java.lang.String storagePool, com.google.api.services.compute.model.StoragePool 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(), @@ -201928,66 +216016,72 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool 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. */ @@ -202001,7 +216095,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 " + @@ -202022,7 +216116,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + public Update 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 " + @@ -202032,6 +216126,27 @@ public Insert setZone(java.lang.String zone) { return this; } + /** The storagePool name for this request. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** The storagePool name for this request. + */ + public java.lang.String getStoragePool() { + return storagePool; + } + + /** The storagePool name for this request. */ + public Update setStoragePool(java.lang.String storagePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePool = storagePool; + 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 @@ -202076,72 +216191,107 @@ 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 Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Subnetworks collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; + private static final String REST_PATH = "projects/{project}/aggregated/subnetworks"; 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 ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * 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 the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * 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 zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SubnetworkAggregatedList.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])?"); - } } @Override @@ -202155,63 +216305,63 @@ 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. */ @@ -202225,7 +216375,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -202235,27 +216385,6 @@ public List setProject(java.lang.String 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 List 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; - } - /** * 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 @@ -202387,11 +216516,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 @@ -202416,7 +216579,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; } @@ -202460,7 +216623,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; } @@ -202483,7 +216646,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; } @@ -202515,82 +216678,625 @@ 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; + } + + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + @com.google.api.client.util.Key + private java.util.List views; + + /** Defines the extra views returned back in the subnetwork resource. Supported values: + + - WITH_UTILIZATION: Utilization data is included in the response. + */ + public java.util.List getViews() { + return views; + } + + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + public AggregatedList setViews(java.util.List views) { + this.views = views; + 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); } } /** - * Lists the disks in a specified storage pool. + * Deletes the specified subnetwork. * - * Create a request for the method "storagePools.listDisks". + * Create a request for the method "subnetworks.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListDisks#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 zone The name of the zone for this request. - * @param storagePool Name of the storage pool to list disks of. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to delete. * @return the request */ - 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); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String subnetwork) throws java.io.IOException { + Delete result = new Delete(project, region, subnetwork); initialize(result); return result; } - public class ListDisks extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern STORAGE_POOL_PATTERN = + private final java.util.regex.Pattern SUBNETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Lists the disks in a specified storage pool. + * Deletes the specified subnetwork. * - * Create a request for the method "storagePools.listDisks". + * Create a request for the method "subnetworks.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListDisks#execute()} method to invoke the remote operation.

    - * {@link - * ListDisks#initialize(com.google.api.client.googleapis.services.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 zone The name of the zone for this request. - * @param storagePool Name of the storage pool to list disks of. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to delete. * @since 1.13 */ - protected ListDisks(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolListDisks.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String subnetwork) { + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + this.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork 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 Subnetwork resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** Name of the Subnetwork resource to delete. + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** Name of the Subnetwork resource to delete. */ + public Delete setSubnetwork(java.lang.String subnetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.subnetwork = subnetwork; + 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Expands the IP CIDR range of the subnetwork to a specified value. + * + * Create a request for the method "subnetworks.expandIpCidrRange". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ExpandIpCidrRange#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to update. + * @param content the {@link com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest} + * @return the request + */ + public ExpandIpCidrRange expandIpCidrRange(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest content) throws java.io.IOException { + ExpandIpCidrRange result = new ExpandIpCidrRange(project, region, subnetwork, content); + initialize(result); + return result; + } + + public class ExpandIpCidrRange extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern SUBNETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Expands the IP CIDR range of the subnetwork to a specified value. + * + * Create a request for the method "subnetworks.expandIpCidrRange". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ExpandIpCidrRange#execute()} method to invoke the remote operation. + *

    {@link ExpandIpCidrRange#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 subnetwork Name of the Subnetwork resource to update. + * @param content the {@link com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest} + * @since 1.13 + */ + protected ExpandIpCidrRange(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest 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(), + "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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public ExpandIpCidrRange set$Xgafv(java.lang.String $Xgafv) { + return (ExpandIpCidrRange) super.set$Xgafv($Xgafv); + } + + @Override + public ExpandIpCidrRange setAccessToken(java.lang.String accessToken) { + return (ExpandIpCidrRange) super.setAccessToken(accessToken); + } + + @Override + public ExpandIpCidrRange setAlt(java.lang.String alt) { + return (ExpandIpCidrRange) super.setAlt(alt); + } + + @Override + public ExpandIpCidrRange setCallback(java.lang.String callback) { + return (ExpandIpCidrRange) super.setCallback(callback); + } + + @Override + public ExpandIpCidrRange setFields(java.lang.String fields) { + return (ExpandIpCidrRange) super.setFields(fields); + } + + @Override + public ExpandIpCidrRange setKey(java.lang.String key) { + return (ExpandIpCidrRange) super.setKey(key); + } + + @Override + public ExpandIpCidrRange setOauthToken(java.lang.String oauthToken) { + return (ExpandIpCidrRange) super.setOauthToken(oauthToken); + } + + @Override + public ExpandIpCidrRange setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExpandIpCidrRange) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExpandIpCidrRange setQuotaUser(java.lang.String quotaUser) { + return (ExpandIpCidrRange) super.setQuotaUser(quotaUser); + } + + @Override + public ExpandIpCidrRange setUploadType(java.lang.String uploadType) { + return (ExpandIpCidrRange) super.setUploadType(uploadType); + } + + @Override + public ExpandIpCidrRange setUploadProtocol(java.lang.String uploadProtocol) { + return (ExpandIpCidrRange) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ExpandIpCidrRange setUserIp(java.lang.String userIp) { + return (ExpandIpCidrRange) 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 ExpandIpCidrRange 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 ExpandIpCidrRange 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 Subnetwork resource to update. */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** Name of the Subnetwork resource to update. + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** Name of the Subnetwork resource to update. */ + public ExpandIpCidrRange setSubnetwork(java.lang.String subnetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.subnetwork = subnetwork; + 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 ExpandIpCidrRange setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public ExpandIpCidrRange set(String parameterName, Object value) { + return (ExpandIpCidrRange) super.set(parameterName, value); + } + } + /** + * Returns the specified subnetwork. + * + * Create a request for the method "subnetworks.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 subnetwork Name of the Subnetwork resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String subnetwork) throws java.io.IOException { + Get result = new Get(project, region, subnetwork); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern SUBNETWORK_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 subnetwork. + * + * Create a request for the method "subnetworks.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.

    {@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 subnetwork Name of the Subnetwork resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String subnetwork) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Subnetwork.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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -202606,63 +217312,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListDisks set$Xgafv(java.lang.String $Xgafv) { - return (ListDisks) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ListDisks setAccessToken(java.lang.String accessToken) { - return (ListDisks) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ListDisks setAlt(java.lang.String alt) { - return (ListDisks) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ListDisks setCallback(java.lang.String callback) { - return (ListDisks) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ListDisks setFields(java.lang.String fields) { - return (ListDisks) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ListDisks setKey(java.lang.String key) { - return (ListDisks) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ListDisks setOauthToken(java.lang.String oauthToken) { - return (ListDisks) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ListDisks setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListDisks) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ListDisks setQuotaUser(java.lang.String quotaUser) { - return (ListDisks) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public ListDisks setUploadType(java.lang.String uploadType) { - return (ListDisks) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public ListDisks setUploadProtocol(java.lang.String uploadProtocol) { - return (ListDisks) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public ListDisks setUserIp(java.lang.String userIp) { - return (ListDisks) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -202676,7 +217382,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListDisks 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 " + @@ -202686,379 +217392,140 @@ public ListDisks setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public ListDisks setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; + this.region = region; return this; } - /** Name of the storage pool to list disks of. */ + /** Name of the Subnetwork resource to return. */ @com.google.api.client.util.Key - private java.lang.String storagePool; + private java.lang.String subnetwork; - /** Name of the storage pool to list disks of. + /** Name of the Subnetwork resource to return. */ - public java.lang.String getStoragePool() { - return storagePool; + public java.lang.String getSubnetwork() { + return subnetwork; } - /** Name of the storage pool to list disks of. */ - public ListDisks setStoragePool(java.lang.String storagePool) { + /** Name of the Subnetwork resource to return. */ + public Get setSubnetwork(java.lang.String subnetwork) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.storagePool = storagePool; - 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. - * - * 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 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 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 ListDisks 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 ListDisks 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 ListDisks 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 ListDisks setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + this.subnetwork = subnetwork; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * Defines the extra views returned back in the subnetwork resource. Supported values: * - * 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. + * - WITH_UTILIZATION: Utilization data is included in the response. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.util.List views; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** Defines the extra views returned back in the subnetwork resource. Supported values: - 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. + - WITH_UTILIZATION: Utilization data is included in the response. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.util.List getViews() { + return views; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * Defines the extra views returned back in the subnetwork resource. Supported values: * - * 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. + * - WITH_UTILIZATION: Utilization data is included in the response. */ - public ListDisks setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Get setViews(java.util.List views) { + this.views = views; return this; } @Override - public ListDisks set(String parameterName, Object value) { - return (ListDisks) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "storagePools.setIamPolicy". + * Create a request for the method "subnetworks.getIamPolicy". * * 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 GetIamPolicy#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 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.ZoneSetPolicyRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + 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 SetIamPolicy extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "storagePools.setIamPolicy". + * Create a request for the method "subnetworks.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    + * 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.

    * * @param project Project ID for this request. - * @param zone The name of the zone 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.ZoneSetPolicyRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.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(), "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."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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."); @@ -203070,63 +217537,73 @@ protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) 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. */ @@ -203140,7 +217617,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy 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 " + @@ -203150,24 +217627,24 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; + this.region = region; return this; } @@ -203182,7 +217659,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + public GetIamPolicy 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 " + @@ -203192,141 +217669,145 @@ public SetIamPolicy 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Creates a subnetwork in the specified project using the data included in the request. * - * Create a request for the method "storagePools.testIamPermissions". + * Create a request for the method "subnetworks.insert". * * 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 Insert#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 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 scoping this request. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Subnetwork content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Creates a subnetwork in the specified project using the data included in the request. * - * Create a request for the method "storagePools.testIamPermissions". + * Create a request for the method "subnetworks.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * 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 zone The name of the zone 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 scoping this request. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, 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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Subnetwork 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(), "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."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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 TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -203340,7 +217821,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions 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 " + @@ -203350,187 +217831,207 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; + this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** 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 getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * 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; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Updates the specified storagePool with the data included in the request. The update is performed - * only on selected fields included as part of update-mask. Only the following fields can be - * modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. + * Retrieves a list of subnetworks available to the specified project. * - * Create a request for the method "storagePools.update". + * Create a request for the method "subnetworks.list". * * 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 List#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 The storagePool name for this request. - * @param content the {@link com.google.api.services.compute.model.StoragePool} + * @param region Name of the region scoping this request. * @return the request */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String storagePool, com.google.api.services.compute.model.StoragePool content) throws java.io.IOException { - Update result = new Update(project, zone, storagePool, 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 Update extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern STORAGE_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Updates the specified storagePool with the data included in the request. The update is - * performed only on selected fields included as part of update-mask. Only the following fields - * can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and - * pool_provisioned_throughput. + * Retrieves a list of subnetworks available to the specified project. * - * Create a request for the method "storagePools.update". + * Create a request for the method "subnetworks.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    + * 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 zone The name of the zone for this request. - * @param storagePool The storagePool name for this request. - * @param content the {@link com.google.api.services.compute.model.StoragePool} + * @param region Name of the region scoping this request. * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String storagePool, com.google.api.services.compute.model.StoragePool content) { - super(Compute.this, "PATCH", 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.SubnetworkList.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."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool 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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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. */ @@ -203544,7 +218045,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update 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 " + @@ -203554,187 +218055,362 @@ public Update setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** 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 + * 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 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 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 java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public Update 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; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** The storagePool name for this request. */ + /** + * 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 storagePool; + private java.lang.String pageToken; - /** The storagePool name for this request. + /** 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 getStoragePool() { - return storagePool; + public java.lang.String getPageToken() { + return pageToken; } - /** The storagePool name for this request. */ - public Update setStoragePool(java.lang.String storagePool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.storagePool = storagePool; + /** + * 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; } /** - * 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. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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.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. + private java.lang.Boolean returnPartialSuccess; - 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. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + 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.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * 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. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } - /** update_mask indicates fields to be updated as part of this request. */ + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ @com.google.api.client.util.Key - private String updateMask; + private java.util.List views; - /** update_mask indicates fields to be updated as part of this request. + /** Defines the extra views returned back in the subnetwork resource. Supported values: + + - WITH_UTILIZATION: Utilization data is included in the response. */ - public String getUpdateMask() { - return updateMask; + public java.util.List getViews() { + return views; } - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + public List setViews(java.util.List views) { + this.views = views; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Subnetworks collection. - * - *

    The typical use is:

    - *
    -   *   {@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 { + public class ListUsable extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/subnetworks"; + private static final String REST_PATH = "projects/{project}/aggregated/subnetworks/listUsable"; 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])?))"); /** - * 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 the compute server. After setting any optional - * 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.

    + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

    + * {@link + * ListUsable#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. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SubnetworkAggregatedList.class); + protected ListUsable(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UsableSubnetworksAggregatedList.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(), @@ -203754,63 +218430,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -203824,7 +218500,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public ListUsable 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 " + @@ -203965,45 +218641,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListUsable 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 @@ -204028,7 +218670,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 AggregatedList setMaxResults(java.lang.Long maxResults) { + public ListUsable setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -204072,7 +218714,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListUsable setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -204095,7 +218737,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 AggregatedList setPageToken(java.lang.String pageToken) { + public ListUsable setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -204127,85 +218769,64 @@ 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 AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListUsable 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; - } - - /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. + * The project id or project number in which the subnetwork is intended to be used. Only + * applied for Shared VPC. See [Shared VPC + * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) */ @com.google.api.client.util.Key - private java.util.List views; - - /** Defines the extra views returned back in the subnetwork resource. Supported values: + private java.lang.String serviceProject; - - WITH_UTILIZATION: Utilization data is included in the response. + /** The project id or project number in which the subnetwork is intended to be used. Only applied for + Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/) */ - public java.util.List getViews() { - return views; + public java.lang.String getServiceProject() { + return serviceProject; } /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. + * The project id or project number in which the subnetwork is intended to be used. Only + * applied for Shared VPC. See [Shared VPC + * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) */ - public AggregatedList setViews(java.util.List views) { - this.views = views; + public ListUsable setServiceProject(java.lang.String serviceProject) { + this.serviceProject = serviceProject; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); } } /** - * Deletes the specified subnetwork. + * Patches the specified subnetwork with the data included in the request. Only certain fields can + * be updated with a patch request as indicated in the field descriptions. You must specify the + * current fingerprint of the subnetwork resource being patched. * - * Create a request for the method "subnetworks.delete". + * Create a request for the method "subnetworks.patch". * * 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 Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to delete. + * @param subnetwork Name of the Subnetwork resource to patch. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String subnetwork) throws java.io.IOException { - Delete result = new Delete(project, region, subnetwork); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.Subnetwork content) throws java.io.IOException { + Patch result = new Patch(project, region, subnetwork, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Patch extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; @@ -204219,22 +218840,25 @@ public class Delete extends ComputeRequest {@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.

    * * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to delete. + * @param subnetwork Name of the Subnetwork resource to patch. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String subnetwork) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.Subnetwork 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(), @@ -204256,63 +218880,63 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -204326,7 +218950,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete 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 " + @@ -204347,7 +218971,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + 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 " + @@ -204357,18 +218981,18 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the Subnetwork resource to delete. */ + /** Name of the Subnetwork resource to patch. */ @com.google.api.client.util.Key private java.lang.String subnetwork; - /** Name of the Subnetwork resource to delete. + /** Name of the Subnetwork resource to patch. */ public java.lang.String getSubnetwork() { return subnetwork; } - /** Name of the Subnetwork resource to delete. */ - public Delete setSubnetwork(java.lang.String subnetwork) { + /** Name of the Subnetwork resource to patch. */ + public Patch setSubnetwork(java.lang.String subnetwork) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), "Parameter subnetwork must conform to the pattern " + @@ -204378,6 +219002,41 @@ public Delete setSubnetwork(java.lang.String subnetwork) { return this; } + /** + * The drain timeout specifies the upper bound in seconds on the amount of time allowed to + * drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The + * drain timeout is only applicable when the following conditions are true: - the subnetwork + * being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has + * role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch + * operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. + */ + @com.google.api.client.util.Key + private java.lang.Integer drainTimeoutSeconds; + + /** The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain + connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout + is only applicable when the following conditions are true: - the subnetwork being patched has + purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch + request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE + and BACKUP subnetworks will be swapped. + */ + public java.lang.Integer getDrainTimeoutSeconds() { + return drainTimeoutSeconds; + } + + /** + * The drain timeout specifies the upper bound in seconds on the amount of time allowed to + * drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The + * drain timeout is only applicable when the following conditions are true: - the subnetwork + * being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has + * role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch + * operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. + */ + public Patch setDrainTimeoutSeconds(java.lang.Integer drainTimeoutSeconds) { + this.drainTimeoutSeconds = drainTimeoutSeconds; + 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 @@ -204422,39 +219081,241 @@ 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 Patch 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Expands the IP CIDR range of the subnetwork to a specified value. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "subnetworks.expandIpCidrRange". + * Create a request for the method "subnetworks.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ExpandIpCidrRange#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 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 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 SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy"; + + 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "subnetworks.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    + * {@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 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 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(), + "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.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 SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) 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 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 " + + "(?:(?:[-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 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 " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = 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 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 SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Set whether VMs in this subnet can access Google services without assigning external IP addresses + * through Private Google Access. + * + * Create a request for the method "subnetworks.setPrivateIpGoogleAccess". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetPrivateIpGoogleAccess#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to update. - * @param content the {@link com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest} + * @param subnetwork Name of the Subnetwork resource. + * @param content the {@link com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest} * @return the request */ - public ExpandIpCidrRange expandIpCidrRange(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest content) throws java.io.IOException { - ExpandIpCidrRange result = new ExpandIpCidrRange(project, region, subnetwork, content); + public SetPrivateIpGoogleAccess setPrivateIpGoogleAccess(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest content) throws java.io.IOException { + SetPrivateIpGoogleAccess result = new SetPrivateIpGoogleAccess(project, region, subnetwork, content); initialize(result); return result; } - public class ExpandIpCidrRange extends ComputeRequest { + public class SetPrivateIpGoogleAccess extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess"; 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])?))"); @@ -204466,23 +219327,24 @@ public class ExpandIpCidrRange extends ComputeRequest {@link ExpandIpCidrRange#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * parameters, call the {@link SetPrivateIpGoogleAccess#execute()} method to invoke the remote + * operation.

    {@link SetPrivateIpGoogleAccess#initialize(com.google.api.client.googleapis.serv + * ices.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 subnetwork Name of the Subnetwork resource to update. - * @param content the {@link com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest} + * @param subnetwork Name of the Subnetwork resource. + * @param content the {@link com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest} * @since 1.13 */ - protected ExpandIpCidrRange(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest content) { + protected SetPrivateIpGoogleAccess(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest 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()) { @@ -204505,63 +219367,63 @@ protected ExpandIpCidrRange(java.lang.String project, java.lang.String region, j } @Override - public ExpandIpCidrRange set$Xgafv(java.lang.String $Xgafv) { - return (ExpandIpCidrRange) super.set$Xgafv($Xgafv); + public SetPrivateIpGoogleAccess set$Xgafv(java.lang.String $Xgafv) { + return (SetPrivateIpGoogleAccess) super.set$Xgafv($Xgafv); } @Override - public ExpandIpCidrRange setAccessToken(java.lang.String accessToken) { - return (ExpandIpCidrRange) super.setAccessToken(accessToken); + public SetPrivateIpGoogleAccess setAccessToken(java.lang.String accessToken) { + return (SetPrivateIpGoogleAccess) super.setAccessToken(accessToken); } @Override - public ExpandIpCidrRange setAlt(java.lang.String alt) { - return (ExpandIpCidrRange) super.setAlt(alt); + public SetPrivateIpGoogleAccess setAlt(java.lang.String alt) { + return (SetPrivateIpGoogleAccess) super.setAlt(alt); } @Override - public ExpandIpCidrRange setCallback(java.lang.String callback) { - return (ExpandIpCidrRange) super.setCallback(callback); + public SetPrivateIpGoogleAccess setCallback(java.lang.String callback) { + return (SetPrivateIpGoogleAccess) super.setCallback(callback); } @Override - public ExpandIpCidrRange setFields(java.lang.String fields) { - return (ExpandIpCidrRange) super.setFields(fields); + public SetPrivateIpGoogleAccess setFields(java.lang.String fields) { + return (SetPrivateIpGoogleAccess) super.setFields(fields); } @Override - public ExpandIpCidrRange setKey(java.lang.String key) { - return (ExpandIpCidrRange) super.setKey(key); + public SetPrivateIpGoogleAccess setKey(java.lang.String key) { + return (SetPrivateIpGoogleAccess) super.setKey(key); } @Override - public ExpandIpCidrRange setOauthToken(java.lang.String oauthToken) { - return (ExpandIpCidrRange) super.setOauthToken(oauthToken); + public SetPrivateIpGoogleAccess setOauthToken(java.lang.String oauthToken) { + return (SetPrivateIpGoogleAccess) super.setOauthToken(oauthToken); } @Override - public ExpandIpCidrRange setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ExpandIpCidrRange) super.setPrettyPrint(prettyPrint); + public SetPrivateIpGoogleAccess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetPrivateIpGoogleAccess) super.setPrettyPrint(prettyPrint); } @Override - public ExpandIpCidrRange setQuotaUser(java.lang.String quotaUser) { - return (ExpandIpCidrRange) super.setQuotaUser(quotaUser); + public SetPrivateIpGoogleAccess setQuotaUser(java.lang.String quotaUser) { + return (SetPrivateIpGoogleAccess) super.setQuotaUser(quotaUser); } @Override - public ExpandIpCidrRange setUploadType(java.lang.String uploadType) { - return (ExpandIpCidrRange) super.setUploadType(uploadType); + public SetPrivateIpGoogleAccess setUploadType(java.lang.String uploadType) { + return (SetPrivateIpGoogleAccess) super.setUploadType(uploadType); } @Override - public ExpandIpCidrRange setUploadProtocol(java.lang.String uploadProtocol) { - return (ExpandIpCidrRange) super.setUploadProtocol(uploadProtocol); + public SetPrivateIpGoogleAccess setUploadProtocol(java.lang.String uploadProtocol) { + return (SetPrivateIpGoogleAccess) super.setUploadProtocol(uploadProtocol); } @Override - public ExpandIpCidrRange setUserIp(java.lang.String userIp) { - return (ExpandIpCidrRange) super.setUserIp(userIp); + public SetPrivateIpGoogleAccess setUserIp(java.lang.String userIp) { + return (SetPrivateIpGoogleAccess) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -204575,7 +219437,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ExpandIpCidrRange setProject(java.lang.String project) { + public SetPrivateIpGoogleAccess 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 " + @@ -204596,7 +219458,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public ExpandIpCidrRange setRegion(java.lang.String region) { + public SetPrivateIpGoogleAccess 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 " + @@ -204606,18 +219468,18 @@ public ExpandIpCidrRange setRegion(java.lang.String region) { return this; } - /** Name of the Subnetwork resource to update. */ + /** Name of the Subnetwork resource. */ @com.google.api.client.util.Key private java.lang.String subnetwork; - /** Name of the Subnetwork resource to update. + /** Name of the Subnetwork resource. */ public java.lang.String getSubnetwork() { return subnetwork; } - /** Name of the Subnetwork resource to update. */ - public ExpandIpCidrRange setSubnetwork(java.lang.String subnetwork) { + /** Name of the Subnetwork resource. */ + public SetPrivateIpGoogleAccess setSubnetwork(java.lang.String subnetwork) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), "Parameter subnetwork must conform to the pattern " + @@ -204671,38 +219533,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 ExpandIpCidrRange setRequestId(java.lang.String requestId) { + public SetPrivateIpGoogleAccess setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public ExpandIpCidrRange set(String parameterName, Object value) { - return (ExpandIpCidrRange) super.set(parameterName, value); + public SetPrivateIpGoogleAccess set(String parameterName, Object value) { + return (SetPrivateIpGoogleAccess) super.set(parameterName, value); } } /** - * Returns the specified subnetwork. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "subnetworks.get". + * Create a request for the method "subnetworks.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 subnetwork Name of the Subnetwork 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 subnetwork) throws java.io.IOException { - Get result = new Get(project, region, subnetwork); + 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 { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions"; 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])?))"); @@ -204710,114 +219573,315 @@ 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.

    + * 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 subnetwork Name of the Subnetwork 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 subnetwork) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Subnetwork.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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetGrpcProxies collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + + 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_GRPC_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetGrpcProxy in the given scope + * + * Create a request for the method "targetGrpcProxies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String targetGrpcProxy) { + 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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); + this.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy 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 Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -204831,7 +219895,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -204841,146 +219905,135 @@ public Get 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 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 Subnetwork resource to return. */ + /** Name of the TargetGrpcProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String subnetwork; + private java.lang.String targetGrpcProxy; - /** Name of the Subnetwork resource to return. + /** Name of the TargetGrpcProxy resource to delete. */ - public java.lang.String getSubnetwork() { - return subnetwork; + public java.lang.String getTargetGrpcProxy() { + return targetGrpcProxy; } - /** Name of the Subnetwork resource to return. */ - public Get setSubnetwork(java.lang.String subnetwork) { + /** Name of the TargetGrpcProxy resource to delete. */ + public Delete setTargetGrpcProxy(java.lang.String targetGrpcProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.subnetwork = subnetwork; + this.targetGrpcProxy = targetGrpcProxy; return this; } /** - * Defines the extra views returned back in the subnetwork resource. Supported values: + * 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. * - * - WITH_UTILIZATION: Utilization data is included in the response. + * 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.util.List views; + private java.lang.String requestId; - /** Defines the extra views returned back in the subnetwork resource. Supported values: + /** 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. - - WITH_UTILIZATION: Utilization data is included in the response. + 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.util.List getViews() { - return views; + public java.lang.String getRequestId() { + return requestId; } /** - * Defines the extra views returned back in the subnetwork resource. Supported values: + * 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. * - * - WITH_UTILIZATION: Utilization data is included in the response. + * 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 Get setViews(java.util.List views) { - this.views = views; + public Delete 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns the specified TargetGrpcProxy resource in the given scope. * - * Create a request for the method "subnetworks.getIamPolicy". + * Create a request for the method "targetGrpcProxies.get". * * 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 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 resource Name or id of the resource for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to return. * @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 Get get(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException { + Get result = new Get(project, targetGrpcProxy); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern TARGET_GRPC_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Returns the specified TargetGrpcProxy resource in the given scope. * - * Create a request for the method "subnetworks.getIamPolicy". + * Create a request for the method "targetGrpcProxies.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    * * @param 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 targetGrpcProxy Name of the TargetGrpcProxy resource to return. * @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 Get(java.lang.String project, java.lang.String targetGrpcProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetGrpcProxy.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy 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(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -204996,63 +220049,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -205066,7 +220119,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy 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 " + @@ -205076,102 +220129,63 @@ public GetIamPolicy 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 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ + /** Name of the TargetGrpcProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String targetGrpcProxy; - /** Name or id of the resource for this request. + /** Name of the TargetGrpcProxy resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getTargetGrpcProxy() { + return targetGrpcProxy; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the TargetGrpcProxy resource to return. */ + public Get setTargetGrpcProxy(java.lang.String targetGrpcProxy) { 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(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy 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; - } - - /** 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; + this.targetGrpcProxy = targetGrpcProxy; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a subnetwork in the specified project using the data included in the request. + * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that + * are included in the request. * - * Create a request for the method "subnetworks.insert". + * Create a request for the method "targetGrpcProxies.insert". * * 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. * * @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.Subnetwork} + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Subnetwork content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetGrpcProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks"; + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Creates a subnetwork in the specified project using the data included in the request. + * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that + * are included in the request. * - * Create a request for the method "subnetworks.insert". + * Create a request for the method "targetGrpcProxies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

    {@link @@ -205179,11 +220193,10 @@ public class Insert extends ComputeRequest * * @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.Subnetwork} + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Subnetwork content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetGrpcProxy 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()) { @@ -205191,12 +220204,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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 @@ -205280,27 +220287,6 @@ public Insert 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 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; - } - /** * 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 @@ -205356,37 +220342,33 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of subnetworks available to the specified project. + * Lists the TargetGrpcProxies for a project in the given scope. * - * Create a request for the method "subnetworks.list". + * Create a request for the method "targetGrpcProxies.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 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 List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks"; + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves a list of subnetworks available to the specified project. + * Lists the TargetGrpcProxies for a project in the given scope. * - * Create a request for the method "subnetworks.list". + * Create a request for the method "targetGrpcProxies.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -205394,23 +220376,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.SubnetworkList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetGrpcProxyList.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 @@ -205504,27 +220479,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 @@ -205789,77 +220743,300 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified TargetGrpcProxy resource with the data included in the request. This method + * supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "targetGrpcProxies.patch". + * + * 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. + * + * @param project Project ID for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String targetGrpcProxy, com.google.api.services.compute.model.TargetGrpcProxy content) throws java.io.IOException { + Patch result = new Patch(project, targetGrpcProxy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + + 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_GRPC_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Defines the extra views returned back in the subnetwork resource. Supported values: + * Patches the specified TargetGrpcProxy resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. * - * - WITH_UTILIZATION: Utilization data is included in the response. + * Create a request for the method "targetGrpcProxies.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String targetGrpcProxy, com.google.api.services.compute.model.TargetGrpcProxy 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(), + "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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy 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); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) 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 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 " + + "(?:(?:[-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 TargetGrpcProxy resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String targetGrpcProxy; + + /** Name of the TargetGrpcProxy resource to patch. + */ + public java.lang.String getTargetGrpcProxy() { + return targetGrpcProxy; + } + + /** Name of the TargetGrpcProxy resource to patch. */ + public Patch setTargetGrpcProxy(java.lang.String targetGrpcProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetGrpcProxy = targetGrpcProxy; + 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.util.List views; + private java.lang.String requestId; - /** Defines the extra views returned back in the subnetwork resource. Supported values: + /** 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. - - WITH_UTILIZATION: Utilization data is included in the response. + 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.util.List getViews() { - return views; + public java.lang.String getRequestId() { + return requestId; } /** - * Defines the extra views returned back in the subnetwork resource. Supported values: + * 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. * - * - WITH_UTILIZATION: Utilization data is included in the response. + * 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 List setViews(java.util.List views) { - this.views = views; + public Patch 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the TargetHttpProxies collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/subnetworks/listUsable"; + private static final String REST_PATH = "projects/{project}/aggregated/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])?))"); /** - * 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 the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

    - * {@link - * ListUsable#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 project Name of the project scoping this request. * @since 1.13 */ - protected ListUsable(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UsableSubnetworksAggregatedList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxyAggregatedList.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(), @@ -205879,77 +221056,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) 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 ListUsable 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 " + @@ -206090,11 +221267,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListUsable 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 @@ -206119,7 +221330,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 ListUsable setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -206163,7 +221374,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListUsable setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -206186,7 +221397,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 ListUsable setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -206218,174 +221429,155 @@ 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 ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } /** - * The project id or project number in which the subnetwork is intended to be used. Only - * applied for Shared VPC. See [Shared VPC - * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + * 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.String serviceProject; + private java.lang.Long serviceProjectNumber; - /** The project id or project number in which the subnetwork is intended to be used. Only applied for - Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + /** 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.String getServiceProject() { - return serviceProject; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * The project id or project number in which the subnetwork is intended to be used. Only - * applied for Shared VPC. See [Shared VPC - * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - public ListUsable setServiceProject(java.lang.String serviceProject) { - this.serviceProject = serviceProject; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Patches the specified subnetwork with the data included in the request. Only certain fields can - * be updated with a patch request as indicated in the field descriptions. You must specify the - * current fingerprint of the subnetwork resource being patched. + * Deletes the specified TargetHttpProxy resource. * - * Create a request for the method "subnetworks.patch". + * Create a request for the method "targetHttpProxies.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 subnetwork Name of the Subnetwork resource to patch. - * @param content the {@link com.google.api.services.compute.model.Subnetwork} + * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.Subnetwork content) throws java.io.IOException { - Patch result = new Patch(project, region, subnetwork, content); + public Delete delete(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { + Delete result = new Delete(project, targetHttpProxy); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern SUBNETWORK_PATTERN = + private final java.util.regex.Pattern TARGET_HTTP_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified subnetwork with the data included in the request. Only certain fields can - * be updated with a patch request as indicated in the field descriptions. You must specify the - * current fingerprint of the subnetwork resource being patched. + * Deletes the specified TargetHttpProxy resource. * - * Create a request for the method "subnetworks.patch". + * Create a request for the method "targetHttpProxies.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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. - * @param subnetwork Name of the Subnetwork resource to patch. - * @param content the {@link com.google.api.services.compute.model.Subnetwork} + * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.Subnetwork 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 targetHttpProxy) { + 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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); + this.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy 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. */ @@ -206399,7 +221591,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 " + @@ -206409,80 +221601,24 @@ public Patch 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 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; - } - - /** Name of the Subnetwork resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** Name of the Subnetwork resource to patch. - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** Name of the Subnetwork resource to patch. */ - public Patch setSubnetwork(java.lang.String subnetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.subnetwork = subnetwork; - return this; - } - - /** - * The drain timeout specifies the upper bound in seconds on the amount of time allowed to - * drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The - * drain timeout is only applicable when the following conditions are true: - the subnetwork - * being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has - * role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch - * operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. - */ + /** Name of the TargetHttpProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.Integer drainTimeoutSeconds; - - /** The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain - connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout - is only applicable when the following conditions are true: - the subnetwork being patched has - purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch - request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE - and BACKUP subnetworks will be swapped. - */ - public java.lang.Integer getDrainTimeoutSeconds() { - return drainTimeoutSeconds; - } + private java.lang.String targetHttpProxy; - /** - * The drain timeout specifies the upper bound in seconds on the amount of time allowed to - * drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The - * drain timeout is only applicable when the following conditions are true: - the subnetwork - * being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has - * role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch - * operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. + /** Name of the TargetHttpProxy resource to delete. */ - public Patch setDrainTimeoutSeconds(java.lang.Integer drainTimeoutSeconds) { - this.drainTimeoutSeconds = drainTimeoutSeconds; + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy resource to delete. */ + public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; return this; } @@ -206530,146 +221666,142 @@ 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); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified TargetHttpProxy resource. * - * Create a request for the method "subnetworks.setIamPolicy". + * Create a request for the method "targetHttpProxies.get". * * 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 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. * @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 Get get(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { + Get result = new Get(project, targetHttpProxy); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern TARGET_HTTP_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified TargetHttpProxy resource. * - * Create a request for the method "subnetworks.setIamPolicy". + * Create a request for the method "targetHttpProxies.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    * * @param 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 targetHttpProxy Name of the TargetHttpProxy resource to return. * @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 Get(java.lang.String project, java.lang.String targetHttpProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxy.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy 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(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) 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. */ @@ -206683,7 +221815,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy 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 " + @@ -206693,107 +221825,74 @@ public SetIamPolicy 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 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ + /** Name of the TargetHttpProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String targetHttpProxy; - /** Name or id of the resource for this request. + /** Name of the TargetHttpProxy resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the TargetHttpProxy resource to return. */ + public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { 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(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy 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.targetHttpProxy = targetHttpProxy; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Set whether VMs in this subnet can access Google services without assigning external IP addresses - * through Private Google Access. + * Creates a TargetHttpProxy resource in the specified project using the data included in the + * request. * - * Create a request for the method "subnetworks.setPrivateIpGoogleAccess". + * Create a request for the method "targetHttpProxies.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetPrivateIpGoogleAccess#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 subnetwork Name of the Subnetwork resource. - * @param content the {@link com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest} + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @return the request */ - public SetPrivateIpGoogleAccess setPrivateIpGoogleAccess(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest content) throws java.io.IOException { - SetPrivateIpGoogleAccess result = new SetPrivateIpGoogleAccess(project, region, subnetwork, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class SetPrivateIpGoogleAccess extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess"; + private static final String REST_PATH = "projects/{project}/global/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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern SUBNETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Set whether VMs in this subnet can access Google services without assigning external IP - * addresses through Private Google Access. + * Creates a TargetHttpProxy resource in the specified project using the data included in the + * request. * - * Create a request for the method "subnetworks.setPrivateIpGoogleAccess". + * Create a request for the method "targetHttpProxies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetPrivateIpGoogleAccess#execute()} method to invoke the remote - * operation.

    {@link SetPrivateIpGoogleAccess#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 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 subnetwork Name of the Subnetwork resource. - * @param content the {@link com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest} + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @since 1.13 */ - protected SetPrivateIpGoogleAccess(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpProxy 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()) { @@ -206801,78 +221900,66 @@ protected SetPrivateIpGoogleAccess(java.lang.String project, java.lang.String re "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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public SetPrivateIpGoogleAccess set$Xgafv(java.lang.String $Xgafv) { - return (SetPrivateIpGoogleAccess) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetPrivateIpGoogleAccess setAccessToken(java.lang.String accessToken) { - return (SetPrivateIpGoogleAccess) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetPrivateIpGoogleAccess setAlt(java.lang.String alt) { - return (SetPrivateIpGoogleAccess) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetPrivateIpGoogleAccess setCallback(java.lang.String callback) { - return (SetPrivateIpGoogleAccess) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetPrivateIpGoogleAccess setFields(java.lang.String fields) { - return (SetPrivateIpGoogleAccess) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetPrivateIpGoogleAccess setKey(java.lang.String key) { - return (SetPrivateIpGoogleAccess) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetPrivateIpGoogleAccess setOauthToken(java.lang.String oauthToken) { - return (SetPrivateIpGoogleAccess) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetPrivateIpGoogleAccess setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetPrivateIpGoogleAccess) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetPrivateIpGoogleAccess setQuotaUser(java.lang.String quotaUser) { - return (SetPrivateIpGoogleAccess) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetPrivateIpGoogleAccess setUploadType(java.lang.String uploadType) { - return (SetPrivateIpGoogleAccess) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetPrivateIpGoogleAccess setUploadProtocol(java.lang.String uploadProtocol) { - return (SetPrivateIpGoogleAccess) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetPrivateIpGoogleAccess setUserIp(java.lang.String userIp) { - return (SetPrivateIpGoogleAccess) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -206886,7 +221973,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetPrivateIpGoogleAccess 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 " + @@ -206896,48 +221983,6 @@ public SetPrivateIpGoogleAccess 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 SetPrivateIpGoogleAccess 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 Subnetwork resource. */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** Name of the Subnetwork resource. - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** Name of the Subnetwork resource. */ - public SetPrivateIpGoogleAccess setSubnetwork(java.lang.String subnetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.subnetwork = subnetwork; - 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 @@ -206982,146 +222027,131 @@ 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 SetPrivateIpGoogleAccess setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetPrivateIpGoogleAccess set(String parameterName, Object value) { - return (SetPrivateIpGoogleAccess) 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 TargetHttpProxy resources available to the specified project. * - * Create a request for the method "subnetworks.testIamPermissions". + * Create a request for the method "targetHttpProxies.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} * @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) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of TargetHttpProxy resources available to the specified project. * - * Create a request for the method "subnetworks.testIamPermissions". + * Create a request for the method "targetHttpProxies.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * 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 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 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) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxyList.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.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. */ @@ -207135,7 +222165,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 " + @@ -207145,416 +222175,395 @@ public TestIamPermissions 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. + /** + * 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; - } - - /** 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 or id of the resource for this request. */ @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); - } - } + 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:* ``` - /** - * An accessor for creating requests from the TargetGrpcProxies collection. - * - *

    The typical use is:

    - *
    -   *   {@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 { + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - 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])?))"); + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - private final java.util.regex.Pattern TARGET_GRPC_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Deletes the specified TargetGrpcProxy in the given scope + * 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. * - * Create a request for the method "targetGrpcProxies.delete". + * 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 `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param targetGrpcProxy Name of the TargetGrpcProxy resource to delete. - * @since 1.13 + * 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. */ - protected Delete(java.lang.String project, java.lang.String targetGrpcProxy) { - 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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy 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); + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * 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; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + /** 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; } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * 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; } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** + * 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; - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + 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. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * 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; } - /** Name of the TargetGrpcProxy resource to delete. */ + /** + * 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 targetGrpcProxy; + private java.lang.String pageToken; - /** Name of the TargetGrpcProxy resource to delete. + /** 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 getTargetGrpcProxy() { - return targetGrpcProxy; + public java.lang.String getPageToken() { + return pageToken; } - /** Name of the TargetGrpcProxy resource to delete. */ - public Delete setTargetGrpcProxy(java.lang.String targetGrpcProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetGrpcProxy = targetGrpcProxy; + /** + * 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; } /** - * 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. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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.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. + private java.lang.Boolean returnPartialSuccess; - 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. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + 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.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * 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. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 the specified TargetGrpcProxy resource in the given scope. + * Patches the specified TargetHttpProxy resource with the data included in the request. This method + * supports PATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "targetGrpcProxies.get". + * Create a request for the method "targetHttpProxies.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 targetGrpcProxy Name of the TargetGrpcProxy resource to return. + * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @return the request */ - public Get get(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException { - Get result = new Get(project, targetGrpcProxy); + public Patch patch(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.TargetHttpProxy content) throws java.io.IOException { + Patch result = new Patch(project, targetHttpProxy, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; 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_GRPC_PROXY_PATTERN = + private final java.util.regex.Pattern TARGET_HTTP_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 TargetGrpcProxy resource in the given scope. + * Patches the specified TargetHttpProxy resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "targetGrpcProxies.get". + * Create a request for the method "targetHttpProxies.patch". * * 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.

    {@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 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 targetGrpcProxy Name of the TargetGrpcProxy resource to return. + * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String targetGrpcProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetGrpcProxy.class); + protected Patch(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.TargetHttpProxy 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(), "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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); + this.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy 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 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. */ @@ -207568,7 +222577,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 " + @@ -207578,74 +222587,127 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetGrpcProxy resource to return. */ + /** Name of the TargetHttpProxy resource to patch. */ @com.google.api.client.util.Key - private java.lang.String targetGrpcProxy; + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy resource to patch. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy resource to patch. */ + public Patch setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + 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. - /** Name of the TargetGrpcProxy resource to return. + 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 getTargetGrpcProxy() { - return targetGrpcProxy; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the TargetGrpcProxy resource to return. */ - public Get setTargetGrpcProxy(java.lang.String targetGrpcProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetGrpcProxy = targetGrpcProxy; + /** + * 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); } } /** - * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that - * are included in the request. + * Changes the URL map for TargetHttpProxy. * - * Create a request for the method "targetGrpcProxies.insert". + * Create a request for the method "targetHttpProxies.setUrlMap". * * 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 SetUrlMap#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetGrpcProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); + public SetUrlMap setUrlMap(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { + SetUrlMap result = new SetUrlMap(project, targetHttpProxy, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class SetUrlMap extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; + private static final String REST_PATH = "projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; 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_HTTP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that - * are included in the request. + * Changes the URL map for TargetHttpProxy. * - * Create a request for the method "targetGrpcProxies.insert". + * Create a request for the method "targetHttpProxies.setUrlMap". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

    + * {@link + * SetUrlMap#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 content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetGrpcProxy content) { + protected SetUrlMap(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.UrlMapReference 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()) { @@ -207653,66 +222715,72 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy 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 SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -207726,7 +222794,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public SetUrlMap 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 " + @@ -207736,6 +222804,27 @@ public Insert setProject(java.lang.String project) { return this; } + /** Name of the TargetHttpProxy to set a URL map for. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy to set a URL map for. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy to set a URL map for. */ + public SetUrlMap setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + 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 @@ -207780,55 +222869,87 @@ 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 SetUrlMap 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 SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the TargetHttpsProxies collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; + private static final String REST_PATH = "projects/{project}/aggregated/targetHttpsProxies"; 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])?))"); /** - * 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 the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * 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 project Name of the project scoping this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetGrpcProxyList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxyAggregatedList.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(), @@ -207848,77 +222969,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 " + @@ -208059,11 +223180,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 @@ -208088,7 +223243,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; } @@ -208132,7 +223287,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; } @@ -208155,7 +223310,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; } @@ -208187,136 +223342,155 @@ 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); } } /** - * Patches the specified TargetGrpcProxy resource with the data included in the request. This method - * supports PATCH semantics and usesJSON merge patch format and processing rules. + * Deletes the specified TargetHttpsProxy resource. * - * Create a request for the method "targetGrpcProxies.patch". + * Create a request for the method "targetHttpsProxies.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 targetGrpcProxy Name of the TargetGrpcProxy resource to patch. - * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String targetGrpcProxy, com.google.api.services.compute.model.TargetGrpcProxy content) throws java.io.IOException { - Patch result = new Patch(project, targetGrpcProxy, content); + public Delete delete(java.lang.String project, java.lang.String targetHttpsProxy) throws java.io.IOException { + Delete result = new Delete(project, targetHttpsProxy); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; 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_GRPC_PROXY_PATTERN = + 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}"); /** - * Patches the specified TargetGrpcProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * Deletes the specified TargetHttpsProxy resource. * - * Create a request for the method "targetGrpcProxies.patch". + * Create a request for the method "targetHttpsProxies.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 targetGrpcProxy Name of the TargetGrpcProxy resource to patch. - * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String targetGrpcProxy, com.google.api.services.compute.model.TargetGrpcProxy 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 targetHttpsProxy) { + 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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); + this.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy 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. */ @@ -208330,7 +223504,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 " + @@ -208340,24 +223514,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the TargetGrpcProxy resource to patch. */ + /** Name of the TargetHttpsProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetGrpcProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetGrpcProxy resource to patch. + /** Name of the TargetHttpsProxy resource to delete. */ - public java.lang.String getTargetGrpcProxy() { - return targetGrpcProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the TargetGrpcProxy resource to patch. */ - public Patch setTargetGrpcProxy(java.lang.String targetGrpcProxy) { + /** Name of the TargetHttpsProxy resource to delete. */ + public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetGrpcProxy = targetGrpcProxy; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -208405,87 +223579,416 @@ 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); } } + /** + * Returns the specified TargetHttpsProxy resource. + * + * Create a request for the method "targetHttpsProxies.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 targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String targetHttpsProxy) throws java.io.IOException { + Get result = new Get(project, targetHttpsProxy); + initialize(result); + return result; + } - } + public class Get extends ComputeRequest { - /** - * An accessor for creating requests from the TargetHttpProxies collection. - * - *

    The typical use is:

    - *
    -   *   {@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.

    {@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 targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String targetHttpsProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxy.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy 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; + } + + /** Name of the TargetHttpsProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to return. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + /** Name of the TargetHttpsProxy resource to return. */ + public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Creates a TargetHttpsProxy resource in the specified project using the data included in the + * request. * - * Create a request for the method "targetHttpProxies.aggregatedList". + * Create a request for the method "targetHttpsProxies.insert". * * 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 Insert#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; 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])?))"); /** - * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the - * specified project. + * Creates a TargetHttpsProxy resource in the specified project using the data included in the + * request. * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Create a request for the method "targetHttpsProxies.insert". * - * Create a request for the method "targetHttpProxies.aggregatedList". + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpsProxy 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(), + "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])?))"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 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 " + + "(?:(?:[-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; + } + + /** + * 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; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of TargetHttpsProxy resources available to the specified project. + * + * Create a request for the method "targetHttpsProxies.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. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; + + 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])?))"); + + /** + * Retrieves the list of TargetHttpsProxy resources available to the specified project. + * + * Create a request for the method "targetHttpsProxies.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * 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 Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxyAggregatedList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxyList.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(), @@ -208505,77 +224008,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String project) { + /** Project ID for this request. */ + 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 " + @@ -208716,45 +224219,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -208779,7 +224248,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 AggregatedList setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -208823,7 +224292,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -208846,7 +224315,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 AggregatedList setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -208878,155 +224347,136 @@ 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 AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List 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 AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified TargetHttpProxy resource. + * Patches the specified TargetHttpsProxy resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "targetHttpProxies.delete". + * Create a request for the method "targetHttpsProxies.patch". * * 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 Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { - Delete result = new Delete(project, targetHttpProxy); + public Patch patch(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { + Patch result = new Patch(project, targetHttpsProxy, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; 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_HTTP_PROXY_PATTERN = + 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}"); /** - * Deletes the specified TargetHttpProxy resource. + * Patches the specified TargetHttpsProxy resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "targetHttpProxies.delete". + * Create a request for the method "targetHttpsProxies.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 targetHttpProxy Name of the TargetHttpProxy resource to delete. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String targetHttpProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxy 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(), "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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + this.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy 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 Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209040,7 +224490,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete 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 " + @@ -209050,24 +224500,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpProxy resource to delete. */ + /** Name of the TargetHttpsProxy resource to patch. */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetHttpProxy resource to delete. + /** Name of the TargetHttpsProxy resource to patch. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the TargetHttpProxy resource to delete. */ - public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { + /** Name of the TargetHttpsProxy resource to patch. */ + public Patch setTargetHttpsProxy(java.lang.String targetHttpsProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetHttpProxy = targetHttpProxy; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -209115,142 +224565,131 @@ 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 Patch 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified TargetHttpProxy resource. + * Changes the Certificate Map for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.get". + * Create a request for the method "targetHttpsProxies.setCertificateMap". * * 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 SetCertificateMap#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to return. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose CertificateMap 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.TargetHttpsProxiesSetCertificateMapRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { - Get result = new Get(project, targetHttpProxy); + public SetCertificateMap setCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest content) throws java.io.IOException { + SetCertificateMap result = new SetCertificateMap(project, targetHttpsProxy, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class SetCertificateMap extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap"; 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_HTTP_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 TargetHttpProxy resource. + * Changes the Certificate Map for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.get". + * Create a request for the method "targetHttpsProxies.setCertificateMap". * * 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.

    {@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 SetCertificateMap#execute()} method to invoke the remote operation. + *

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

    * * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to return. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose CertificateMap 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.TargetHttpsProxiesSetCertificateMapRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String targetHttpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxy.class); + protected SetCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest 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(), "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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { + return (SetCertificateMap) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetCertificateMap setAccessToken(java.lang.String accessToken) { + return (SetCertificateMap) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetCertificateMap setAlt(java.lang.String alt) { + return (SetCertificateMap) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetCertificateMap setCallback(java.lang.String callback) { + return (SetCertificateMap) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetCertificateMap setFields(java.lang.String fields) { + return (SetCertificateMap) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetCertificateMap setKey(java.lang.String key) { + return (SetCertificateMap) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetCertificateMap setOauthToken(java.lang.String oauthToken) { + return (SetCertificateMap) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCertificateMap) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { + return (SetCertificateMap) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetCertificateMap setUploadType(java.lang.String uploadType) { + return (SetCertificateMap) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetCertificateMap setUserIp(java.lang.String userIp) { + return (SetCertificateMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209264,7 +224703,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public SetCertificateMap 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 " + @@ -209274,74 +224713,130 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpProxy resource to return. */ + /** + * Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be + * 1-63 characters long, and comply with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetHttpProxy resource to return. + /** Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 + characters long, and comply with RFC1035. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the TargetHttpProxy resource to return. */ - public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; + /** + * Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be + * 1-63 characters long, and comply with RFC1035. + */ + public SetCertificateMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + this.targetHttpsProxy = targetHttpsProxy; + 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 SetCertificateMap 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 SetCertificateMap set(String parameterName, Object value) { + return (SetCertificateMap) super.set(parameterName, value); } } /** - * Creates a TargetHttpProxy resource in the specified project using the data included in the - * request. + * Sets the QUIC override policy for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.insert". + * Create a request for the method "targetHttpsProxies.setQuicOverride". * * 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 SetQuicOverride#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. + The name should conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); + public SetQuicOverride setQuicOverride(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest content) throws java.io.IOException { + SetQuicOverride result = new SetQuicOverride(project, targetHttpsProxy, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class SetQuicOverride extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride"; 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])?))"); /** - * Creates a TargetHttpProxy resource in the specified project using the data included in the - * request. + * Sets the QUIC override policy for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.insert". + * Create a request for the method "targetHttpsProxies.setQuicOverride". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link SetQuicOverride#execute()} method to invoke the remote operation. + *

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

    * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. + The name should conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpProxy content) { + protected SetQuicOverride(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest 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()) { @@ -209349,66 +224844,67 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetQuicOverride set$Xgafv(java.lang.String $Xgafv) { + return (SetQuicOverride) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetQuicOverride setAccessToken(java.lang.String accessToken) { + return (SetQuicOverride) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetQuicOverride setAlt(java.lang.String alt) { + return (SetQuicOverride) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetQuicOverride setCallback(java.lang.String callback) { + return (SetQuicOverride) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetQuicOverride setFields(java.lang.String fields) { + return (SetQuicOverride) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetQuicOverride setKey(java.lang.String key) { + return (SetQuicOverride) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetQuicOverride setOauthToken(java.lang.String oauthToken) { + return (SetQuicOverride) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetQuicOverride setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetQuicOverride) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetQuicOverride setQuotaUser(java.lang.String quotaUser) { + return (SetQuicOverride) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetQuicOverride setUploadType(java.lang.String uploadType) { + return (SetQuicOverride) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetQuicOverride setUploadProtocol(java.lang.String uploadProtocol) { + return (SetQuicOverride) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetQuicOverride setUserIp(java.lang.String userIp) { + return (SetQuicOverride) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209422,7 +224918,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public SetQuicOverride 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 " + @@ -209432,6 +224928,29 @@ public Insert setProject(java.lang.String project) { return this; } + /** + * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should + * conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform + to RFC1035. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** + * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should + * conform to RFC1035. + */ + public SetQuicOverride setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + this.targetHttpsProxy = targetHttpsProxy; + 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 @@ -209476,131 +224995,137 @@ 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 SetQuicOverride 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 SetQuicOverride set(String parameterName, Object value) { + return (SetQuicOverride) super.set(parameterName, value); } } /** - * Retrieves the list of TargetHttpProxy resources available to the specified project. + * Replaces SslCertificates for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.list". + * Create a request for the method "targetHttpsProxies.setSslCertificates". * * 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 SetSslCertificates#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an + SslCertificates resource for. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest} * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest content) throws java.io.IOException { + SetSslCertificates result = new SetSslCertificates(project, targetHttpsProxy, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class SetSslCertificates extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; 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}"); + /** - * Retrieves the list of TargetHttpProxy resources available to the specified project. + * Replaces SslCertificates for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.list". + * Create a request for the method "targetHttpsProxies.setSslCertificates". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote + * operation.

    {@link SetSslCertificates#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 targetHttpsProxy Name of the TargetHttpsProxy resource to set an + SslCertificates resource for. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest} * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxyList.class); + protected SetSslCertificates(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest 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(), "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy 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 SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { + return (SetSslCertificates) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public SetSslCertificates setAccessToken(java.lang.String accessToken) { + return (SetSslCertificates) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public SetSslCertificates setAlt(java.lang.String alt) { + return (SetSslCertificates) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public SetSslCertificates setCallback(java.lang.String callback) { + return (SetSslCertificates) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public SetSslCertificates setFields(java.lang.String fields) { + return (SetSslCertificates) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SetSslCertificates setKey(java.lang.String key) { + return (SetSslCertificates) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SetSslCertificates setOauthToken(java.lang.String oauthToken) { + return (SetSslCertificates) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslCertificates) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { + return (SetSslCertificates) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SetSslCertificates setUploadType(java.lang.String uploadType) { + return (SetSslCertificates) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public SetSslCertificates setUserIp(java.lang.String userIp) { + return (SetSslCertificates) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209614,7 +225139,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public SetSslCertificates 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 " + @@ -209625,394 +225150,203 @@ public List setProject(java.lang.String project) { } /** - * 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 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 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`) + * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String targetHttpsProxy; - /** 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] + /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } /** - * 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`) + * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + public SetSslCertificates setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * 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. * - * 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. + * 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. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * 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 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; - } + private java.lang.String requestId; - /** - * 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; + /** 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. - /** 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; - } + 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. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * 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 SetSslCertificates 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 SetSslCertificates set(String parameterName, Object value) { + return (SetSslCertificates) super.set(parameterName, value); } } /** - * Patches the specified TargetHttpProxy resource with the data included in the request. This method - * supports PATCH semantics and usesJSON merge patch format and processing rules. + * 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. * - * Create a request for the method "targetHttpProxies.patch". + * Create a request for the method "targetHttpsProxies.setSslPolicy". * * 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 SetSslPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. - * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @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} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.TargetHttpProxy content) throws java.io.IOException { - Patch result = new Patch(project, targetHttpProxy, content); + 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); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class SetSslPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy"; 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_HTTP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Patches the specified TargetHttpProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * 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. * - * Create a request for the method "targetHttpProxies.patch". + * Create a request for the method "targetHttpsProxies.setSslPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.

    + * {@link + * SetSslPolicy#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 targetHttpProxy Name of the TargetHttpProxy resource to patch. - * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @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} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.TargetHttpProxy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetSslPolicy(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.SslPolicyReference 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(), "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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSslPolicy) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public SetSslPolicy setAccessToken(java.lang.String accessToken) { + return (SetSslPolicy) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public SetSslPolicy setAlt(java.lang.String alt) { + return (SetSslPolicy) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public SetSslPolicy setCallback(java.lang.String callback) { + return (SetSslPolicy) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public SetSslPolicy setFields(java.lang.String fields) { + return (SetSslPolicy) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public SetSslPolicy setKey(java.lang.String key) { + return (SetSslPolicy) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public SetSslPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSslPolicy) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSslPolicy) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public SetSslPolicy setUploadType(java.lang.String uploadType) { + return (SetSslPolicy) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetSslPolicy setUserIp(java.lang.String userIp) { + return (SetSslPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -210026,7 +225360,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public SetSslPolicy 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 " + @@ -210036,24 +225370,26 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpProxy resource to patch. */ + /** + * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetHttpProxy resource to patch. + /** Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 + characters long, and comply with RFC1035. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the TargetHttpProxy resource to patch. */ - public Patch setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; + /** + * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + */ + public SetSslPolicy setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -210101,49 +225437,50 @@ 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 SetSslPolicy 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 SetSslPolicy set(String parameterName, Object value) { + return (SetSslPolicy) super.set(parameterName, value); } } /** - * Changes the URL map for TargetHttpProxy. + * Changes the URL map for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.setUrlMap". + * Create a request for the method "targetHttpsProxies.setUrlMap". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is + to be set. * @param content the {@link com.google.api.services.compute.model.UrlMapReference} * @return the request */ - public SetUrlMap setUrlMap(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { - SetUrlMap result = new SetUrlMap(project, targetHttpProxy, content); + public SetUrlMap setUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { + SetUrlMap result = new SetUrlMap(project, targetHttpsProxy, content); initialize(result); return result; } public class SetUrlMap extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; + private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; 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_HTTP_PROXY_PATTERN = + 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}"); /** - * Changes the URL map for TargetHttpProxy. + * Changes the URL map for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.setUrlMap". + * Create a request for the method "targetHttpsProxies.setUrlMap". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

    @@ -210152,11 +225489,12 @@ public class SetUrlMap extends ComputeRequest * * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is + to be set. * @param content the {@link com.google.api.services.compute.model.UrlMapReference} * @since 1.13 */ - protected SetUrlMap(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.UrlMapReference content) { + protected SetUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference 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()) { @@ -210164,10 +225502,10 @@ protected SetUrlMap(java.lang.String project, java.lang.String targetHttpProxy, "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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + this.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -210253,24 +225591,28 @@ public SetUrlMap setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpProxy to set a URL map for. */ + /** + * Name of the TargetHttpsProxy resource whose URL map is to be set. + */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetHttpProxy to set a URL map for. + /** Name of the TargetHttpsProxy resource whose URL map is to be set. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the TargetHttpProxy to set a URL map for. */ - public SetUrlMap setTargetHttpProxy(java.lang.String targetHttpProxy) { + /** + * Name of the TargetHttpsProxy resource whose URL map is to be set. + */ + public SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetHttpProxy = targetHttpProxy; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -210332,38 +225674,37 @@ public SetUrlMap set(String parameterName, Object value) { } /** - * An accessor for creating requests from the TargetHttpsProxies collection. + * An accessor for creating requests from the TargetInstances collection. * *

    The typical use is:

    *
        *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/aggregated/targetInstances"; 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])?))"); /** - * 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 the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -210394,11 +225734,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxyAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetInstanceAggregatedList.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(), @@ -210477,17 +225817,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -210825,37 +226165,41 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified TargetHttpsProxy resource. + * Deletes the specified TargetInstance resource. * - * Create a request for the method "targetHttpsProxies.delete". + * Create a request for the method "targetInstances.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 targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String targetHttpsProxy) throws java.io.IOException { - Delete result = new Delete(project, targetHttpsProxy); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) throws java.io.IOException { + Delete result = new Delete(project, zone, targetInstance); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; 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 = + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern TARGET_INSTANCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified TargetHttpsProxy resource. + * Deletes the specified TargetInstance resource. * - * Create a request for the method "targetHttpsProxies.delete". + * Create a request for the method "targetInstances.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -210863,10 +226207,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String targetHttpsProxy) { + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) { 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()) { @@ -210874,10 +226219,16 @@ protected Delete(java.lang.String project, java.lang.String targetHttpsProxy) { "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), + "Parameter targetInstance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -210963,24 +226314,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpsProxy resource to delete. */ + /** Name of the zone scoping this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String zone; - /** Name of the TargetHttpsProxy resource to delete. + /** Name of the zone scoping this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getZone() { + return zone; } - /** Name of the TargetHttpsProxy resource to delete. */ - public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** Name of the zone scoping this request. */ + public Delete setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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 TargetInstance resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetInstance; + + /** Name of the TargetInstance resource to delete. + */ + public java.lang.String getTargetInstance() { + return targetInstance; + } + + /** Name of the TargetInstance resource to delete. */ + public Delete setTargetInstance(java.lang.String targetInstance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), + "Parameter targetInstance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetHttpsProxy = targetHttpsProxy; + this.targetInstance = targetInstance; return this; } @@ -211039,37 +226411,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetHttpsProxy resource. + * Returns the specified TargetInstance resource. * - * Create a request for the method "targetHttpsProxies.get". + * Create a request for the method "targetInstances.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 targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String targetHttpsProxy) throws java.io.IOException { - Get result = new Get(project, targetHttpsProxy); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) throws java.io.IOException { + Get result = new Get(project, zone, targetInstance); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; 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 = + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern TARGET_INSTANCE_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. + * Returns the specified TargetInstance resource. * - * Create a request for the method "targetHttpsProxies.get". + * Create a request for the method "targetInstances.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.

    {@link @@ -211077,21 +226453,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String targetHttpsProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxy.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetInstance.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), + "Parameter targetInstance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -211187,24 +226570,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpsProxy resource to return. */ + /** Name of the zone scoping this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String zone; - /** Name of the TargetHttpsProxy resource to return. + /** Name of the zone scoping this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getZone() { + return zone; } - /** Name of the TargetHttpsProxy resource to return. */ - public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** Name of the zone scoping this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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 TargetInstance resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetInstance; + + /** Name of the TargetInstance resource to return. + */ + public java.lang.String getTargetInstance() { + return targetInstance; + } + + /** Name of the TargetInstance resource to return. */ + public Get setTargetInstance(java.lang.String targetInstance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), + "Parameter targetInstance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetHttpsProxy = targetHttpsProxy; + this.targetInstance = targetInstance; return this; } @@ -211214,36 +226618,40 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetHttpsProxy resource in the specified project using the data included in the - * request. + * Creates a TargetInstance resource in the specified project and zone using the data included in + * the request. * - * Create a request for the method "targetHttpsProxies.insert". + * Create a request for the method "targetInstances.insert". * * 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. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @param zone Name of the zone scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetInstance} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.TargetInstance content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Creates a TargetHttpsProxy resource in the specified project using the data included in the - * request. + * Creates a TargetInstance resource in the specified project and zone using the data included in + * the request. * - * Create a request for the method "targetHttpsProxies.insert". + * Create a request for the method "targetInstances.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

    {@link @@ -211251,10 +226659,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @param zone Name of the zone scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetInstance} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpsProxy content) { + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.TargetInstance 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()) { @@ -211262,6 +226671,12 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "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])?"); + } } @Override @@ -211345,6 +226760,27 @@ public Insert setProject(java.lang.String project) { return this; } + /** Name of the zone scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone scoping this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone scoping this request. */ + public Insert 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; + } + /** * 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 @@ -211400,33 +226836,37 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project. + * Retrieves a list of TargetInstance resources available to the specified project and zone. * - * Create a request for the method "targetHttpsProxies.list". + * Create a request for the method "targetInstances.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 zone Name of the zone scoping this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project. + * Retrieves a list of TargetInstance resources available to the specified project and zone. * - * Create a request for the method "targetHttpsProxies.list". + * Create a request for the method "targetInstances.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -211434,16 +226874,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. + * @param zone Name of the zone scoping this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxyList.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetInstanceList.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])?"); + } } @Override @@ -211537,6 +226984,27 @@ public List setProject(java.lang.String project) { return this; } + /** Name of the zone scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone scoping this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone scoping this request. */ + public List 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; + } + /** * 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 @@ -211807,270 +227275,59 @@ public List set(String parameterName, Object value) { } } /** - * Patches the specified TargetHttpsProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * Sets the Google Cloud Armor security policy for the specified target instance. For more + * information, seeGoogle Cloud Armor Overview * - * Create a request for the method "targetHttpsProxies.patch". + * Create a request for the method "targetInstances.setSecurityPolicy". * * 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 SetSecurityPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to which the security policy should be + set. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { - Patch result = new Patch(project, targetHttpsProxy, content); + public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String targetInstance, com.google.api.services.compute.model.SecurityPolicyReference content) throws java.io.IOException { + SetSecurityPolicy result = new SetSecurityPolicy(project, zone, targetInstance, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class SetSecurityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy"; 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}"); - - /** - * Patches the specified TargetHttpsProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "targetHttpsProxies.patch". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

    - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxy 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(), - "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy 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); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) 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 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 " + - "(?:(?:[-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 TargetHttpsProxy resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to patch. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** Name of the TargetHttpsProxy resource to patch. */ - public Patch setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Changes the Certificate Map for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setCertificateMap". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose CertificateMap 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.TargetHttpsProxiesSetCertificateMapRequest} - * @return the request - */ - public SetCertificateMap setCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest content) throws java.io.IOException { - SetCertificateMap result = new SetCertificateMap(project, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetCertificateMap extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap"; - - 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Changes the Certificate Map for TargetHttpsProxy. + * Sets the Google Cloud Armor security policy for the specified target instance. For more + * information, seeGoogle Cloud Armor Overview * - * Create a request for the method "targetHttpsProxies.setCertificateMap". + * Create a request for the method "targetInstances.setSecurityPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. - *

    {@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.

    * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose CertificateMap 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.TargetHttpsProxiesSetCertificateMapRequest} + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to which the security policy should be + set. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} * @since 1.13 */ - protected SetCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest content) { + protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String targetInstance, com.google.api.services.compute.model.SecurityPolicyReference 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()) { @@ -212078,67 +227335,73 @@ protected SetCertificateMap(java.lang.String project, java.lang.String targetHtt "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + 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.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); } @Override - public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { - return (SetCertificateMap) super.set$Xgafv($Xgafv); + public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); } @Override - public SetCertificateMap setAccessToken(java.lang.String accessToken) { - return (SetCertificateMap) super.setAccessToken(accessToken); + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); } @Override - public SetCertificateMap setAlt(java.lang.String alt) { - return (SetCertificateMap) super.setAlt(alt); + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); } @Override - public SetCertificateMap setCallback(java.lang.String callback) { - return (SetCertificateMap) super.setCallback(callback); + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); } @Override - public SetCertificateMap setFields(java.lang.String fields) { - return (SetCertificateMap) super.setFields(fields); + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); } @Override - public SetCertificateMap setKey(java.lang.String key) { - return (SetCertificateMap) super.setKey(key); + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); } @Override - public SetCertificateMap setOauthToken(java.lang.String oauthToken) { - return (SetCertificateMap) super.setOauthToken(oauthToken); + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); } @Override - public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCertificateMap) super.setPrettyPrint(prettyPrint); + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { - return (SetCertificateMap) super.setQuotaUser(quotaUser); + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); } @Override - public SetCertificateMap setUploadType(java.lang.String uploadType) { - return (SetCertificateMap) super.setUploadType(uploadType); + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); } @Override - public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetCertificateMap setUserIp(java.lang.String userIp) { - return (SetCertificateMap) super.setUserIp(userIp); + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212152,7 +227415,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetCertificateMap setProject(java.lang.String project) { + public SetSecurityPolicy 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 " + @@ -212162,241 +227425,47 @@ public SetCertificateMap setProject(java.lang.String project) { return this; } - /** - * Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be - * 1-63 characters long, and comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 - characters long, and comply with RFC1035. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** - * Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be - * 1-63 characters long, and comply with RFC1035. - */ - public SetCertificateMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - this.targetHttpsProxy = targetHttpsProxy; - 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 SetCertificateMap setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetCertificateMap set(String parameterName, Object value) { - return (SetCertificateMap) super.set(parameterName, value); - } - } - /** - * Sets the QUIC override policy for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setQuicOverride". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetQuicOverride#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. - The name should conform - * to RFC1035. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest} - * @return the request - */ - public SetQuicOverride setQuicOverride(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest content) throws java.io.IOException { - SetQuicOverride result = new SetQuicOverride(project, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetQuicOverride extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride"; - - 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])?))"); - - /** - * Sets the QUIC override policy for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setQuicOverride". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetQuicOverride#execute()} method to invoke the remote operation. - *

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

    - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. - The name should conform - * to RFC1035. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest} - * @since 1.13 - */ - protected SetQuicOverride(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest 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(), - "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - } - - @Override - public SetQuicOverride set$Xgafv(java.lang.String $Xgafv) { - return (SetQuicOverride) super.set$Xgafv($Xgafv); - } - - @Override - public SetQuicOverride setAccessToken(java.lang.String accessToken) { - return (SetQuicOverride) super.setAccessToken(accessToken); - } - - @Override - public SetQuicOverride setAlt(java.lang.String alt) { - return (SetQuicOverride) super.setAlt(alt); - } - - @Override - public SetQuicOverride setCallback(java.lang.String callback) { - return (SetQuicOverride) super.setCallback(callback); - } - - @Override - public SetQuicOverride setFields(java.lang.String fields) { - return (SetQuicOverride) super.setFields(fields); - } - - @Override - public SetQuicOverride setKey(java.lang.String key) { - return (SetQuicOverride) super.setKey(key); - } - - @Override - public SetQuicOverride setOauthToken(java.lang.String oauthToken) { - return (SetQuicOverride) super.setOauthToken(oauthToken); - } - - @Override - public SetQuicOverride setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetQuicOverride) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetQuicOverride setQuotaUser(java.lang.String quotaUser) { - return (SetQuicOverride) super.setQuotaUser(quotaUser); - } - - @Override - public SetQuicOverride setUploadType(java.lang.String uploadType) { - return (SetQuicOverride) super.setUploadType(uploadType); - } - - @Override - public SetQuicOverride setUploadProtocol(java.lang.String uploadProtocol) { - return (SetQuicOverride) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetQuicOverride setUserIp(java.lang.String userIp) { - return (SetQuicOverride) super.setUserIp(userIp); - } - - /** Project ID for this request. */ + /** Name of the zone scoping this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String zone; - /** Project ID for this request. + /** Name of the zone scoping this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getZone() { + return zone; } - /** Project ID for this request. */ - public SetQuicOverride setProject(java.lang.String project) { + /** Name of the zone scoping this request. */ + public SetSecurityPolicy setZone(java.lang.String zone) { 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])?))"); + 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.project = project; + this.zone = zone; return this; } /** - * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should - * conform to RFC1035. + * Name of the TargetInstance resource to which the security policy should be set. The name + * should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String targetInstance; - /** Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform - to RFC1035. + /** Name of the TargetInstance resource to which the security policy should be set. The name should + conform to RFC1035. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getTargetInstance() { + return targetInstance; } /** - * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should - * conform to RFC1035. + * Name of the TargetInstance resource to which the security policy should be set. The name + * should conform to RFC1035. */ - public SetQuicOverride setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - this.targetHttpsProxy = targetHttpsProxy; + public SetSecurityPolicy setTargetInstance(java.lang.String targetInstance) { + this.targetInstance = targetInstance; return this; } @@ -212444,137 +227513,146 @@ 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 SetQuicOverride setRequestId(java.lang.String requestId) { + public SetSecurityPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetQuicOverride set(String parameterName, Object value) { - return (SetQuicOverride) super.set(parameterName, value); + public SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) super.set(parameterName, value); } } /** - * Replaces SslCertificates for TargetHttpsProxy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "targetHttpsProxies.setSslCertificates". + * Create a request for the method "targetInstances.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#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 targetHttpsProxy Name of the TargetHttpsProxy resource to set an - SslCertificates resource for. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest} + * @param zone The name of the zone 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 SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest content) throws java.io.IOException { - SetSslCertificates result = new SetSslCertificates(project, targetHttpsProxy, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class SetSslCertificates extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions"; 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 = + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Replaces SslCertificates for TargetHttpsProxy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "targetHttpsProxies.setSslCertificates". + * Create a request for the method "targetInstances.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote - * operation.

    {@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.

    * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an - SslCertificates resource for. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest} + * @param zone The name of the zone 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 SetSslCertificates(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, 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(), "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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.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 SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { - return (SetSslCertificates) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SetSslCertificates setAccessToken(java.lang.String accessToken) { - return (SetSslCertificates) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SetSslCertificates setAlt(java.lang.String alt) { - return (SetSslCertificates) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SetSslCertificates setCallback(java.lang.String callback) { - return (SetSslCertificates) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SetSslCertificates setFields(java.lang.String fields) { - return (SetSslCertificates) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SetSslCertificates setKey(java.lang.String key) { - return (SetSslCertificates) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SetSslCertificates setOauthToken(java.lang.String oauthToken) { - return (SetSslCertificates) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslCertificates) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { - return (SetSslCertificates) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SetSslCertificates setUploadType(java.lang.String uploadType) { - return (SetSslCertificates) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SetSslCertificates setUserIp(java.lang.String userIp) { - return (SetSslCertificates) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212588,7 +227666,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSslCertificates 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 " + @@ -212598,136 +227676,127 @@ public SetSslCertificates setProject(java.lang.String project) { return this; } - /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String zone; - /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + /** The name of the zone for this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getZone() { + return zone; } - /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ - public SetSslCertificates setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy 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(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.targetHttpsProxy = targetHttpsProxy; + this.zone = zone; 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 or id of the resource for this request. */ @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 resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * 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 SetSslCertificates setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** 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; } @Override - public SetSslCertificates set(String parameterName, Object value) { - return (SetSslCertificates) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the TargetPools collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + public class AddHealthCheck extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * 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 the compute server. After setting any optional - * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link AddHealthCheck#execute()} method to invoke the remote operation. + *

    {@link AddHealthCheck#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 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} * @since 1.13 */ - protected SetSslPolicy(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.SslPolicyReference content) { + protected AddHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest 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()) { @@ -212735,67 +227804,78 @@ protected SetSslPolicy(java.lang.String project, java.lang.String targetHttpsPro "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSslPolicy) super.set$Xgafv($Xgafv); + public AddHealthCheck set$Xgafv(java.lang.String $Xgafv) { + return (AddHealthCheck) super.set$Xgafv($Xgafv); } @Override - public SetSslPolicy setAccessToken(java.lang.String accessToken) { - return (SetSslPolicy) super.setAccessToken(accessToken); + public AddHealthCheck setAccessToken(java.lang.String accessToken) { + return (AddHealthCheck) super.setAccessToken(accessToken); } @Override - public SetSslPolicy setAlt(java.lang.String alt) { - return (SetSslPolicy) super.setAlt(alt); + public AddHealthCheck setAlt(java.lang.String alt) { + return (AddHealthCheck) super.setAlt(alt); } @Override - public SetSslPolicy setCallback(java.lang.String callback) { - return (SetSslPolicy) super.setCallback(callback); + public AddHealthCheck setCallback(java.lang.String callback) { + return (AddHealthCheck) super.setCallback(callback); } @Override - public SetSslPolicy setFields(java.lang.String fields) { - return (SetSslPolicy) super.setFields(fields); + public AddHealthCheck setFields(java.lang.String fields) { + return (AddHealthCheck) super.setFields(fields); } @Override - public SetSslPolicy setKey(java.lang.String key) { - return (SetSslPolicy) super.setKey(key); + public AddHealthCheck setKey(java.lang.String key) { + return (AddHealthCheck) super.setKey(key); } @Override - public SetSslPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSslPolicy) super.setOauthToken(oauthToken); + public AddHealthCheck setOauthToken(java.lang.String oauthToken) { + return (AddHealthCheck) super.setOauthToken(oauthToken); } @Override - public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslPolicy) super.setPrettyPrint(prettyPrint); + public AddHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddHealthCheck) super.setPrettyPrint(prettyPrint); } @Override - public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSslPolicy) super.setQuotaUser(quotaUser); + public AddHealthCheck setQuotaUser(java.lang.String quotaUser) { + return (AddHealthCheck) super.setQuotaUser(quotaUser); } @Override - public SetSslPolicy setUploadType(java.lang.String uploadType) { - return (SetSslPolicy) super.setUploadType(uploadType); + public AddHealthCheck setUploadType(java.lang.String uploadType) { + return (AddHealthCheck) super.setUploadType(uploadType); } @Override - public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); + public AddHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { + return (AddHealthCheck) super.setUploadProtocol(uploadProtocol); } @Override - public SetSslPolicy setUserIp(java.lang.String userIp) { - return (SetSslPolicy) super.setUserIp(userIp); + public AddHealthCheck setUserIp(java.lang.String userIp) { + return (AddHealthCheck) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212809,7 +227889,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSslPolicy setProject(java.lang.String project) { + public AddHealthCheck 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 " + @@ -212819,26 +227899,45 @@ public SetSslPolicy setProject(java.lang.String project) { return this; } - /** - * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String region; - /** Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 - characters long, and comply with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getRegion() { + return region; } - /** - * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. + /** Name of the region scoping this request. */ + public AddHealthCheck 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 target pool to add a health check to. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the target pool to add a health check to. */ - public SetSslPolicy setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - this.targetHttpsProxy = targetHttpsProxy; + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the target pool to add a health check to. */ + public AddHealthCheck setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; return this; } @@ -212886,64 +227985,67 @@ 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 SetSslPolicy setRequestId(java.lang.String requestId) { + public AddHealthCheck setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSslPolicy set(String parameterName, Object value) { - return (SetSslPolicy) super.set(parameterName, value); + public AddHealthCheck set(String parameterName, Object value) { + return (AddHealthCheck) super.set(parameterName, value); } } /** - * Changes the URL map for TargetHttpsProxy. + * Adds an instance to a target pool. * - * Create a request for the method "targetHttpsProxies.setUrlMap". + * Create a request for the method "targetPools.addInstance". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. + * parameters, call the {@link AddInstance#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is - to be set. - * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to add instances to. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddInstanceRequest} * @return the request */ - public SetUrlMap setUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { - SetUrlMap result = new SetUrlMap(project, targetHttpsProxy, content); + public AddInstance addInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddInstanceRequest content) throws java.io.IOException { + AddInstance result = new AddInstance(project, region, targetPool, content); initialize(result); return result; } - public class SetUrlMap extends ComputeRequest { + public class AddInstance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance"; 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 = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern TARGET_POOL_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Changes the URL map for TargetHttpsProxy. + * Adds an instance to a target pool. * - * Create a request for the method "targetHttpsProxies.setUrlMap". + * Create a request for the method "targetPools.addInstance". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

    + * 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.

    * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is - to be set. - * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to add instances to. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddInstanceRequest} * @since 1.13 */ - protected SetUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference content) { + protected AddInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddInstanceRequest 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()) { @@ -212951,72 +228053,78 @@ protected SetUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, "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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); + public AddInstance set$Xgafv(java.lang.String $Xgafv) { + return (AddInstance) super.set$Xgafv($Xgafv); } @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); + public AddInstance setAccessToken(java.lang.String accessToken) { + return (AddInstance) super.setAccessToken(accessToken); } @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); + public AddInstance setAlt(java.lang.String alt) { + return (AddInstance) super.setAlt(alt); } @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); + public AddInstance setCallback(java.lang.String callback) { + return (AddInstance) super.setCallback(callback); } @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); + public AddInstance setFields(java.lang.String fields) { + return (AddInstance) super.setFields(fields); } @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); + public AddInstance setKey(java.lang.String key) { + return (AddInstance) super.setKey(key); } @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); + public AddInstance setOauthToken(java.lang.String oauthToken) { + return (AddInstance) super.setOauthToken(oauthToken); } @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); + public AddInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddInstance) super.setPrettyPrint(prettyPrint); } @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); + public AddInstance setQuotaUser(java.lang.String quotaUser) { + return (AddInstance) super.setQuotaUser(quotaUser); } @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); + public AddInstance setUploadType(java.lang.String uploadType) { + return (AddInstance) super.setUploadType(uploadType); } @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + public AddInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (AddInstance) super.setUploadProtocol(uploadProtocol); } @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) super.setUserIp(userIp); + public AddInstance setUserIp(java.lang.String userIp) { + return (AddInstance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -213030,7 +228138,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetUrlMap setProject(java.lang.String project) { + public AddInstance 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 " + @@ -213040,28 +228148,45 @@ public SetUrlMap setProject(java.lang.String project) { return this; } - /** - * Name of the TargetHttpsProxy resource whose URL map is to be set. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String region; - /** Name of the TargetHttpsProxy resource whose URL map is to be set. + /** Name of the region scoping this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getRegion() { + return region; } - /** - * Name of the TargetHttpsProxy resource whose URL map is to be set. + /** Name of the region scoping this request. */ + public AddInstance 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 TargetPool resource to add instances to. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the TargetPool resource to add instances to. */ - public SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the TargetPool resource to add instances to. */ + public AddInstance setTargetPool(java.lang.String targetPool) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetHttpsProxy = targetHttpsProxy; + this.targetPool = targetPool; return this; } @@ -213109,46 +228234,23 @@ 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 SetUrlMap setRequestId(java.lang.String requestId) { + public AddInstance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); + public AddInstance set(String parameterName, Object value) { + return (AddInstance) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the TargetInstances collection. - * - *

    The typical use is:

    - *
    -   *   {@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 { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetInstances"; + private static final String REST_PATH = "projects/{project}/aggregated/targetPools"; 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])?))"); /** - * 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 the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -213187,7 +228289,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern TARGET_INSTANCE_PATTERN = + private final java.util.regex.Pattern TARGET_POOL_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified TargetInstance resource. + * Deletes the specified target pool. * - * Create a request for the method "targetInstances.delete". + * Create a request for the method "targetPools.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -213656,11 +228758,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to delete. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) { + protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetPool) { 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()) { @@ -213668,16 +228770,16 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "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."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); + this.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -213763,45 +228865,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone scoping this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone scoping this request. */ - public Delete setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; + this.region = region; return this; } - /** Name of the TargetInstance resource to delete. */ + /** Name of the TargetPool resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetInstance; + private java.lang.String targetPool; - /** Name of the TargetInstance resource to delete. + /** Name of the TargetPool resource to delete. */ - public java.lang.String getTargetInstance() { - return targetInstance; + public java.lang.String getTargetPool() { + return targetPool; } - /** Name of the TargetInstance resource to delete. */ - public Delete setTargetInstance(java.lang.String targetInstance) { + /** Name of the TargetPool resource to delete. */ + public Delete setTargetPool(java.lang.String targetPool) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetInstance = targetInstance; + this.targetPool = targetPool; return this; } @@ -213860,41 +228962,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetInstance resource. + * Returns the specified target pool. * - * Create a request for the method "targetInstances.get". + * Create a request for the method "targetPools.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 zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to return. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) throws java.io.IOException { - Get result = new Get(project, zone, targetInstance); + public Get get(java.lang.String project, java.lang.String region, java.lang.String targetPool) throws java.io.IOException { + Get result = new Get(project, region, targetPool); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern TARGET_INSTANCE_PATTERN = + private final java.util.regex.Pattern TARGET_POOL_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 TargetInstance resource. + * Returns the specified target pool. * - * Create a request for the method "targetInstances.get". + * Create a request for the method "targetPools.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.

    {@link @@ -213902,28 +229004,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to return. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetInstance.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String targetPool) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetPool.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."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); + this.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -214019,45 +229121,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone scoping this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone scoping this request. */ - public Get setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; + this.region = region; return this; } - /** Name of the TargetInstance resource to return. */ + /** Name of the TargetPool resource to return. */ @com.google.api.client.util.Key - private java.lang.String targetInstance; + private java.lang.String targetPool; - /** Name of the TargetInstance resource to return. + /** Name of the TargetPool resource to return. */ - public java.lang.String getTargetInstance() { - return targetInstance; + public java.lang.String getTargetPool() { + return targetPool; } - /** Name of the TargetInstance resource to return. */ - public Get setTargetInstance(java.lang.String targetInstance) { + /** Name of the TargetPool resource to return. */ + public Get setTargetPool(java.lang.String targetPool) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetInstance = targetInstance; + this.targetPool = targetPool; return this; } @@ -214067,349 +229169,137 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetInstance resource in the specified project and zone using the data included in - * the request. + * Gets the most recent health check results for each IP for the instance that is referenced by the + * given target pool. * - * Create a request for the method "targetInstances.insert". + * Create a request for the method "targetPools.getHealth". * * 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 GetHealth#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetInstance} + * @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} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.TargetInstance content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); + 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); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class GetHealth extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a TargetInstance resource in the specified project and zone using the data included in - * the request. + * Gets the most recent health check results for each IP for the instance that is referenced by + * the given target pool. * - * Create a request for the method "targetInstances.insert". + * Create a request for the method "targetPools.getHealth". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

    + * {@link + * GetHealth#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 Name of the zone scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetInstance} + * @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} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.TargetInstance content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetHealth(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.InstanceReference content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TargetPoolInstanceHealth.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])?"); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 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 " + - "(?:(?:[-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 zone scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone scoping this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone scoping this request. */ - public Insert setZone(java.lang.String zone) { + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; - 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; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of TargetInstance resources available to the specified project and zone. - * - * Create a request for the method "targetInstances.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 zone Name of the zone scoping 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); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; - - 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 ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Retrieves a list of TargetInstance resources available to the specified project and zone. - * - * Create a request for the method "targetInstances.list". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    - * - * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetInstanceList.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."); + this.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool 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])?"); + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool 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 GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetHealth setUserIp(java.lang.String userIp) { + return (GetHealth) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -214423,7 +229313,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public GetHealth 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 " + @@ -214433,350 +229323,99 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone scoping this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone scoping this request. */ - public List setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public GetHealth setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; - 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. - * - * 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 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 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; + this.region = region; 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. - */ + /** Name of the TargetPool resource to which the queried instance belongs. */ @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. + private java.lang.String targetPool; - 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. + /** Name of the TargetPool resource to which the queried instance belongs. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getTargetPool() { + return targetPool; } - /** - * 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; + /** Name of the TargetPool resource to which the queried instance belongs. */ + public GetHealth setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); } } /** - * Sets the Google Cloud Armor security policy for the specified target instance. For more - * information, seeGoogle Cloud Armor Overview + * Creates a target pool in the specified project and region using the data included in the request. * - * Create a request for the method "targetInstances.setSecurityPolicy". + * Create a request for the method "targetPools.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#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 zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to which the security policy should be - set. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetPool} * @return the request */ - public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String targetInstance, com.google.api.services.compute.model.SecurityPolicyReference content) throws java.io.IOException { - SetSecurityPolicy result = new SetSecurityPolicy(project, zone, targetInstance, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetPool content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class SetSecurityPolicy extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Sets the Google Cloud Armor security policy for the specified target instance. For more - * information, seeGoogle Cloud Armor Overview + * Creates a target pool in the specified project and region using the data included in the + * request. * - * Create a request for the method "targetInstances.setSecurityPolicy". + * Create a request for the method "targetPools.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * 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 zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to which the security policy should be - set. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetPool} * @since 1.13 */ - protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String targetInstance, com.google.api.services.compute.model.SecurityPolicyReference content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetPool 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()) { @@ -214784,73 +229423,72 @@ protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, jav "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."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); } @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -214864,7 +229502,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSecurityPolicy 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 " + @@ -214874,47 +229512,24 @@ public SetSecurityPolicy setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone scoping this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone scoping this request. */ - public SetSecurityPolicy setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; - return this; - } - - /** - * Name of the TargetInstance resource to which the security policy should be set. The name - * should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetInstance; - - /** Name of the TargetInstance resource to which the security policy should be set. The name should - conform to RFC1035. - */ - public java.lang.String getTargetInstance() { - return targetInstance; - } - - /** - * Name of the TargetInstance resource to which the security policy should be set. The name - * should conform to RFC1035. - */ - public SetSecurityPolicy setTargetInstance(java.lang.String targetInstance) { - this.targetInstance = targetInstance; + this.region = region; return this; } @@ -214962,146 +229577,142 @@ 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 SetSecurityPolicy setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) 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 a list of target pools available to the specified project and region. * - * Create a request for the method "targetInstances.testIamPermissions". + * Create a request for the method "targetPools.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 zone The name of the zone 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 scoping this request. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; 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 ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Retrieves a list of target pools available to the specified project and region. * - * Create a request for the method "targetInstances.testIamPermissions". + * Create a request for the method "targetPools.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * 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 zone The name of the zone 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 scoping this request. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, 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.TargetPoolList.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."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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 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 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 TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215115,7 +229726,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 " + @@ -215125,99 +229736,319 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; + this.region = 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. + /** 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 getResource() { - return resource; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * 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; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + /** + * 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; + } - /** - * An accessor for creating requests from the TargetPools collection. - * - *

    The typical use is:

    - *
    -   *   {@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 { + public class RemoveHealthCheck extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck"; 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])?))"); @@ -215229,23 +230060,23 @@ public class AddHealthCheck extends ComputeRequest {@link AddHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the + * parameters, call the {@link RemoveHealthCheck#execute()} method to invoke the remote operation. + *

    {@link RemoveHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 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} * @since 1.13 */ - protected AddHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest content) { + protected RemoveHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest 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()) { @@ -215268,63 +230099,63 @@ protected AddHealthCheck(java.lang.String project, java.lang.String region, java } @Override - public AddHealthCheck set$Xgafv(java.lang.String $Xgafv) { - return (AddHealthCheck) super.set$Xgafv($Xgafv); + public RemoveHealthCheck set$Xgafv(java.lang.String $Xgafv) { + return (RemoveHealthCheck) super.set$Xgafv($Xgafv); } @Override - public AddHealthCheck setAccessToken(java.lang.String accessToken) { - return (AddHealthCheck) super.setAccessToken(accessToken); + public RemoveHealthCheck setAccessToken(java.lang.String accessToken) { + return (RemoveHealthCheck) super.setAccessToken(accessToken); } @Override - public AddHealthCheck setAlt(java.lang.String alt) { - return (AddHealthCheck) super.setAlt(alt); + public RemoveHealthCheck setAlt(java.lang.String alt) { + return (RemoveHealthCheck) super.setAlt(alt); } @Override - public AddHealthCheck setCallback(java.lang.String callback) { - return (AddHealthCheck) super.setCallback(callback); + public RemoveHealthCheck setCallback(java.lang.String callback) { + return (RemoveHealthCheck) super.setCallback(callback); } @Override - public AddHealthCheck setFields(java.lang.String fields) { - return (AddHealthCheck) super.setFields(fields); + public RemoveHealthCheck setFields(java.lang.String fields) { + return (RemoveHealthCheck) super.setFields(fields); } @Override - public AddHealthCheck setKey(java.lang.String key) { - return (AddHealthCheck) super.setKey(key); + public RemoveHealthCheck setKey(java.lang.String key) { + return (RemoveHealthCheck) super.setKey(key); } @Override - public AddHealthCheck setOauthToken(java.lang.String oauthToken) { - return (AddHealthCheck) super.setOauthToken(oauthToken); + public RemoveHealthCheck setOauthToken(java.lang.String oauthToken) { + return (RemoveHealthCheck) super.setOauthToken(oauthToken); } @Override - public AddHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddHealthCheck) super.setPrettyPrint(prettyPrint); + public RemoveHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveHealthCheck) super.setPrettyPrint(prettyPrint); } @Override - public AddHealthCheck setQuotaUser(java.lang.String quotaUser) { - return (AddHealthCheck) super.setQuotaUser(quotaUser); + public RemoveHealthCheck setQuotaUser(java.lang.String quotaUser) { + return (RemoveHealthCheck) super.setQuotaUser(quotaUser); } @Override - public AddHealthCheck setUploadType(java.lang.String uploadType) { - return (AddHealthCheck) super.setUploadType(uploadType); + public RemoveHealthCheck setUploadType(java.lang.String uploadType) { + return (RemoveHealthCheck) super.setUploadType(uploadType); } @Override - public AddHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { - return (AddHealthCheck) super.setUploadProtocol(uploadProtocol); + public RemoveHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveHealthCheck) super.setUploadProtocol(uploadProtocol); } @Override - public AddHealthCheck setUserIp(java.lang.String userIp) { - return (AddHealthCheck) super.setUserIp(userIp); + public RemoveHealthCheck setUserIp(java.lang.String userIp) { + return (RemoveHealthCheck) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215338,7 +230169,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddHealthCheck setProject(java.lang.String project) { + public RemoveHealthCheck 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 " + @@ -215348,18 +230179,18 @@ public AddHealthCheck 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 AddHealthCheck setRegion(java.lang.String region) { + /** Name of the region for this request. */ + public RemoveHealthCheck 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 " + @@ -215369,18 +230200,18 @@ public AddHealthCheck setRegion(java.lang.String region) { return this; } - /** Name of the target pool to add a health check to. */ + /** Name of the target pool to remove health checks from. */ @com.google.api.client.util.Key private java.lang.String targetPool; - /** Name of the target pool to add a health check to. + /** Name of the target pool to remove health checks from. */ public java.lang.String getTargetPool() { return targetPool; } - /** Name of the target pool to add a health check to. */ - public AddHealthCheck setTargetPool(java.lang.String targetPool) { + /** Name of the target pool to remove health checks from. */ + public RemoveHealthCheck setTargetPool(java.lang.String targetPool) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), "Parameter targetPool must conform to the pattern " + @@ -215434,39 +230265,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 AddHealthCheck setRequestId(java.lang.String requestId) { + public RemoveHealthCheck setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddHealthCheck set(String parameterName, Object value) { - return (AddHealthCheck) super.set(parameterName, value); + public RemoveHealthCheck set(String parameterName, Object value) { + return (RemoveHealthCheck) super.set(parameterName, value); } } /** - * Adds an instance to a target pool. + * Removes instance URL from a target pool. * - * Create a request for the method "targetPools.addInstance". + * Create a request for the method "targetPools.removeInstance". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddInstance#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveInstance#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 add instances to. - * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddInstanceRequest} + * @param targetPool Name of the TargetPool resource to remove instances from. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest} * @return the request */ - public AddInstance addInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddInstanceRequest content) throws java.io.IOException { - AddInstance result = new AddInstance(project, region, targetPool, content); + public RemoveInstance removeInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest content) throws java.io.IOException { + RemoveInstance result = new RemoveInstance(project, region, targetPool, content); initialize(result); return result; } - public class AddInstance extends ComputeRequest { + public class RemoveInstance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance"; 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])?))"); @@ -215478,23 +230309,23 @@ public class AddInstance extends ComputeRequest - * {@link - * AddInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link RemoveInstance#execute()} method to invoke the remote operation. + *

    {@link RemoveInstance#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 targetPool Name of the TargetPool resource to add instances to. - * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddInstanceRequest} + * @param targetPool Name of the TargetPool resource to remove instances from. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest} * @since 1.13 */ - protected AddInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddInstanceRequest content) { + protected RemoveInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest 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()) { @@ -215517,63 +230348,63 @@ protected AddInstance(java.lang.String project, java.lang.String region, java.la } @Override - public AddInstance set$Xgafv(java.lang.String $Xgafv) { - return (AddInstance) super.set$Xgafv($Xgafv); + public RemoveInstance set$Xgafv(java.lang.String $Xgafv) { + return (RemoveInstance) super.set$Xgafv($Xgafv); } @Override - public AddInstance setAccessToken(java.lang.String accessToken) { - return (AddInstance) super.setAccessToken(accessToken); + public RemoveInstance setAccessToken(java.lang.String accessToken) { + return (RemoveInstance) super.setAccessToken(accessToken); } @Override - public AddInstance setAlt(java.lang.String alt) { - return (AddInstance) super.setAlt(alt); + public RemoveInstance setAlt(java.lang.String alt) { + return (RemoveInstance) super.setAlt(alt); } @Override - public AddInstance setCallback(java.lang.String callback) { - return (AddInstance) super.setCallback(callback); + public RemoveInstance setCallback(java.lang.String callback) { + return (RemoveInstance) super.setCallback(callback); } @Override - public AddInstance setFields(java.lang.String fields) { - return (AddInstance) super.setFields(fields); + public RemoveInstance setFields(java.lang.String fields) { + return (RemoveInstance) super.setFields(fields); } @Override - public AddInstance setKey(java.lang.String key) { - return (AddInstance) super.setKey(key); + public RemoveInstance setKey(java.lang.String key) { + return (RemoveInstance) super.setKey(key); } @Override - public AddInstance setOauthToken(java.lang.String oauthToken) { - return (AddInstance) super.setOauthToken(oauthToken); + public RemoveInstance setOauthToken(java.lang.String oauthToken) { + return (RemoveInstance) super.setOauthToken(oauthToken); } @Override - public AddInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddInstance) super.setPrettyPrint(prettyPrint); + public RemoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveInstance) super.setPrettyPrint(prettyPrint); } @Override - public AddInstance setQuotaUser(java.lang.String quotaUser) { - return (AddInstance) super.setQuotaUser(quotaUser); + public RemoveInstance setQuotaUser(java.lang.String quotaUser) { + return (RemoveInstance) super.setQuotaUser(quotaUser); } @Override - public AddInstance setUploadType(java.lang.String uploadType) { - return (AddInstance) super.setUploadType(uploadType); + public RemoveInstance setUploadType(java.lang.String uploadType) { + return (RemoveInstance) super.setUploadType(uploadType); } @Override - public AddInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (AddInstance) super.setUploadProtocol(uploadProtocol); + public RemoveInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveInstance) super.setUploadProtocol(uploadProtocol); } @Override - public AddInstance setUserIp(java.lang.String userIp) { - return (AddInstance) super.setUserIp(userIp); + public RemoveInstance setUserIp(java.lang.String userIp) { + return (RemoveInstance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215587,7 +230418,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddInstance setProject(java.lang.String project) { + public RemoveInstance 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 " + @@ -215608,7 +230439,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public AddInstance setRegion(java.lang.String region) { + public RemoveInstance 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 " + @@ -215618,18 +230449,18 @@ public AddInstance setRegion(java.lang.String region) { return this; } - /** Name of the TargetPool resource to add instances to. */ + /** Name of the TargetPool resource to remove instances from. */ @com.google.api.client.util.Key private java.lang.String targetPool; - /** Name of the TargetPool resource to add instances to. + /** Name of the TargetPool resource to remove instances from. */ public java.lang.String getTargetPool() { return targetPool; } - /** Name of the TargetPool resource to add instances to. */ - public AddInstance setTargetPool(java.lang.String targetPool) { + /** Name of the TargetPool resource to remove instances from. */ + public RemoveInstance setTargetPool(java.lang.String targetPool) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), "Parameter targetPool must conform to the pattern " + @@ -215683,138 +230514,146 @@ 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 AddInstance setRequestId(java.lang.String requestId) { + public RemoveInstance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddInstance set(String parameterName, Object value) { - return (AddInstance) super.set(parameterName, value); + public RemoveInstance set(String parameterName, Object value) { + return (RemoveInstance) super.set(parameterName, value); } } /** - * Retrieves an aggregated list of target pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Changes a backup target pool's configurations. * - * Create a request for the method "targetPools.aggregatedList". + * Create a request for the method "targetPools.setBackup". * * 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 SetBackup#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 set a backup pool for. + * @param content the {@link com.google.api.services.compute.model.TargetReference} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public SetBackup setBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { + SetBackup result = new SetBackup(project, region, targetPool, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class SetBackup extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetPools"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of target pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Changes a backup target pool's configurations. * - * Create a request for the method "targetPools.aggregatedList". + * Create a request for the method "targetPools.setBackup". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * parameters, call the {@link SetBackup#execute()} method to invoke the remote operation.

    + * {@link + * SetBackup#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 targetPool Name of the TargetPool resource to set a backup pool for. + * @param content the {@link com.google.api.services.compute.model.TargetReference} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetPoolAggregatedList.class); + protected SetBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetReference 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(), "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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool 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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public SetBackup set$Xgafv(java.lang.String $Xgafv) { + return (SetBackup) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public SetBackup setAccessToken(java.lang.String accessToken) { + return (SetBackup) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public SetBackup setAlt(java.lang.String alt) { + return (SetBackup) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public SetBackup setCallback(java.lang.String callback) { + return (SetBackup) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public SetBackup setFields(java.lang.String fields) { + return (SetBackup) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public SetBackup setKey(java.lang.String key) { + return (SetBackup) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public SetBackup setOauthToken(java.lang.String oauthToken) { + return (SetBackup) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public SetBackup setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetBackup) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public SetBackup setQuotaUser(java.lang.String quotaUser) { + return (SetBackup) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public SetBackup setUploadType(java.lang.String uploadType) { + return (SetBackup) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public SetBackup setUploadProtocol(java.lang.String uploadProtocol) { + return (SetBackup) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public SetBackup setUserIp(java.lang.String userIp) { + return (SetBackup) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215828,7 +230667,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public SetBackup 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 " + @@ -215838,354 +230677,144 @@ public AggregatedList setProject(java.lang.String project) { 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. - * - * 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. - */ + /** Name of the region scoping this request. */ @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")` - - 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`. + private java.lang.String region; - You cannot combine constraints on multiple fields using regular expressions. + /** Name of the region scoping this request. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRegion() { + return 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; + /** Name of the region scoping this request. */ + public SetBackup 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; } - /** - * 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. - */ + /** Name of the TargetPool resource to set a backup pool for. */ @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; + private java.lang.String targetPool; - /** 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. + /** Name of the TargetPool resource to set a backup pool for. */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + public java.lang.String getTargetPool() { + return targetPool; } - /** - * 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; + /** Name of the TargetPool resource to set a backup pool for. */ + public SetBackup setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; 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`) - */ + /** New failoverRatio value for the target pool. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.Float failoverRatio; - /** 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] + /** New failoverRatio value for the target pool. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.Float getFailoverRatio() { + return failoverRatio; } - /** - * 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; + /** New failoverRatio value for the target pool. */ + public SetBackup setFailoverRatio(java.lang.Float failoverRatio) { + this.failoverRatio = failoverRatio; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * 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. * - * 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. + * 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. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * 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 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 AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private java.lang.String requestId; - /** - * 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; + /** 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. - /** 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; - } + 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. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * 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. - */ - 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public SetBackup setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public SetBackup set(String parameterName, Object value) { + return (SetBackup) super.set(parameterName, value); } } /** - * Deletes the specified target pool. + * Sets the Google Cloud Armor security policy for the specified target pool. For more information, + * seeGoogle Cloud Armor Overview * - * Create a request for the method "targetPools.delete". + * Create a request for the method "targetPools.setSecurityPolicy". * * 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 SetSecurityPolicy#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 delete. + * @param targetPool Name of the TargetPool resource to which the security policy should be + set. The name should conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetPool) throws java.io.IOException { - Delete result = new Delete(project, region, targetPool); + public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.SecurityPolicyReference content) throws java.io.IOException { + SetSecurityPolicy result = new SetSecurityPolicy(project, region, targetPool, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class SetSecurityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy"; 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])?))"); @@ -216193,26 +230822,28 @@ 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 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.

    * * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to delete. + * @param targetPool Name of the TargetPool resource to which the security policy should be + set. The name should conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetPool) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected SetSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.SecurityPolicyReference 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(), @@ -216226,71 +230857,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } this.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool 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 SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216304,7 +230930,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public SetSecurityPolicy 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 " + @@ -216325,7 +230951,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + public SetSecurityPolicy 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 " + @@ -216335,23 +230961,25 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the TargetPool resource to delete. */ + /** + * Name of the TargetPool resource to which the security policy should be set. The name should + * conform to RFC1035. + */ @com.google.api.client.util.Key private java.lang.String targetPool; - /** Name of the TargetPool resource to delete. + /** Name of the TargetPool resource to which the security policy should be set. The name should conform + to RFC1035. */ public java.lang.String getTargetPool() { return targetPool; } - /** Name of the TargetPool resource to delete. */ - public Delete setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + /** + * Name of the TargetPool resource to which the security policy should be set. The name should + * conform to RFC1035. + */ + public SetSecurityPolicy setTargetPool(java.lang.String targetPool) { this.targetPool = targetPool; return this; } @@ -216400,38 +231028,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 SetSecurityPolicy 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 SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) super.set(parameterName, value); } } /** - * Returns the specified target pool. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "targetPools.get". + * Create a request for the method "targetPools.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 targetPool Name of the TargetPool 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 targetPool) throws java.io.IOException { - Get result = new Get(project, region, targetPool); + 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 { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions"; 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])?))"); @@ -216439,26 +231068,28 @@ 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.

    + * 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 targetPool Name of the TargetPool 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 targetPool) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetPool.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(), @@ -216471,82 +231102,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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool 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(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool 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. */ @@ -216560,7 +231181,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 " + @@ -216570,18 +231191,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 " + @@ -216591,164 +231212,171 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the TargetPool resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String targetPool; + private java.lang.String resource; - /** Name of the TargetPool resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getResource() { + return resource; } - /** Name of the TargetPool resource to return. */ - public Get setTargetPool(java.lang.String targetPool) { + /** 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(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool 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.targetPool = targetPool; + 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); } } + + } + + /** + * An accessor for creating requests from the TargetSslProxies collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern TARGET_POOL_PATTERN = + private final java.util.regex.Pattern TARGET_SSL_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * 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 the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

    - * {@link - * GetHealth#initialize(com.google.api.client.googleapis.services.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. - * @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. * @since 1.13 */ - protected GetHealth(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.InstanceReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TargetPoolInstanceHealth.class); + protected Delete(java.lang.String project, java.lang.String targetSslProxy) { + 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + this.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public GetHealth set$Xgafv(java.lang.String $Xgafv) { - return (GetHealth) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public GetHealth setAccessToken(java.lang.String accessToken) { - return (GetHealth) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetHealth setAlt(java.lang.String alt) { - return (GetHealth) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetHealth setCallback(java.lang.String callback) { - return (GetHealth) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetHealth setFields(java.lang.String fields) { - return (GetHealth) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetHealth setKey(java.lang.String key) { - return (GetHealth) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetHealth setOauthToken(java.lang.String oauthToken) { - return (GetHealth) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetHealth) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetHealth setQuotaUser(java.lang.String quotaUser) { - return (GetHealth) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetHealth setUploadType(java.lang.String uploadType) { - return (GetHealth) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { - return (GetHealth) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public GetHealth setUserIp(java.lang.String userIp) { - return (GetHealth) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216762,7 +231390,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetHealth 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 " + @@ -216772,87 +231400,287 @@ public GetHealth setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the TargetSslProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String targetSslProxy; - /** Name of the region scoping this request. + /** Name of the TargetSslProxy resource to delete. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } - /** Name of the region scoping this request. */ - public GetHealth setRegion(java.lang.String region) { + /** Name of the TargetSslProxy resource to delete. */ + public Delete setTargetSslProxy(java.lang.String targetSslProxy) { 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])?"); + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.targetSslProxy = targetSslProxy; return this; } - /** Name of the TargetPool resource to which the queried instance belongs. */ + /** + * 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 targetPool; + private java.lang.String requestId; - /** Name of the TargetPool resource to which the queried instance belongs. + /** 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 getTargetPool() { - return targetPool; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the TargetPool resource to which the queried instance belongs. */ - public GetHealth setTargetPool(java.lang.String targetPool) { + /** + * 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetSslProxy resource. + * + * Create a request for the method "targetSslProxies.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 targetSslProxy Name of the TargetSslProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String targetSslProxy) throws java.io.IOException { + Get result = new Get(project, targetSslProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; + + 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_SSL_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 TargetSslProxy resource. + * + * Create a request for the method "targetSslProxies.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.

    {@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 targetSslProxy Name of the TargetSslProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String targetSslProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetSslProxy.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(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + 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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetPool = targetPool; + } + + @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; + } + + /** Name of the TargetSslProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource to return. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** Name of the TargetSslProxy resource to return. */ + public Get setTargetSslProxy(java.lang.String targetSslProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetSslProxy = targetSslProxy; return this; } @Override - public GetHealth set(String parameterName, Object value) { - return (GetHealth) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a target pool in the specified project and region using the data included in the request. + * Creates a TargetSslProxy resource in the specified project using the data included in the + * request. * - * Create a request for the method "targetPools.insert". + * Create a request for the method "targetSslProxies.insert". * * 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. * * @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.TargetPool} + * @param content the {@link com.google.api.services.compute.model.TargetSslProxy} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetPool content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetSslProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Creates a target pool in the specified project and region using the data included in the + * Creates a TargetSslProxy resource in the specified project using the data included in the * request. * - * Create a request for the method "targetPools.insert". + * Create a request for the method "targetSslProxies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

    {@link @@ -216860,11 +231688,10 @@ public class Insert extends ComputeRequest * * @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.TargetPool} + * @param content the {@link com.google.api.services.compute.model.TargetSslProxy} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetPool content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetSslProxy 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()) { @@ -216872,12 +231699,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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 @@ -216961,27 +231782,6 @@ public Insert 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 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; - } - /** * 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 @@ -217037,37 +231837,33 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of target pools available to the specified project and region. + * Retrieves the list of TargetSslProxy resources available to the specified project. * - * Create a request for the method "targetPools.list". + * Create a request for the method "targetSslProxies.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 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 List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves a list of target pools available to the specified project and region. + * Retrieves the list of TargetSslProxy resources available to the specified project. * - * Create a request for the method "targetPools.list". + * Create a request for the method "targetSslProxies.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -217075,23 +231871,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.TargetPoolList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetSslProxyList.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 @@ -217185,27 +231974,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 @@ -217476,56 +232244,53 @@ public List set(String parameterName, Object value) { } } /** - * Removes health check URL from a target pool. + * Changes the BackendService for TargetSslProxy. * - * Create a request for the method "targetPools.removeHealthCheck". + * Create a request for the method "targetSslProxies.setBackendService". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveHealthCheck#execute()} method to invoke the remote operation. + * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @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} + * @param targetSslProxy Name of the TargetSslProxy resource whose BackendService resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest} * @return the request */ - 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); + public SetBackendService setBackendService(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest content) throws java.io.IOException { + SetBackendService result = new SetBackendService(project, targetSslProxy, content); initialize(result); return result; } - public class RemoveHealthCheck extends ComputeRequest { + public class SetBackendService extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern TARGET_POOL_PATTERN = + private final java.util.regex.Pattern TARGET_SSL_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Removes health check URL from a target pool. + * Changes the BackendService for TargetSslProxy. * - * Create a request for the method "targetPools.removeHealthCheck". + * Create a request for the method "targetSslProxies.setBackendService". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveHealthCheck#execute()} method to invoke the remote operation. - *

    {@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.

    * * @param project Project ID for this request. - * @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} + * @param targetSslProxy Name of the TargetSslProxy resource whose BackendService resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest} * @since 1.13 */ - protected RemoveHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest content) { + protected SetBackendService(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest 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()) { @@ -217533,78 +232298,289 @@ protected RemoveHealthCheck(java.lang.String project, java.lang.String region, j "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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy 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])?"); + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + } + + @Override + public SetBackendService set$Xgafv(java.lang.String $Xgafv) { + return (SetBackendService) super.set$Xgafv($Xgafv); + } + + @Override + public SetBackendService setAccessToken(java.lang.String accessToken) { + return (SetBackendService) super.setAccessToken(accessToken); + } + + @Override + public SetBackendService setAlt(java.lang.String alt) { + return (SetBackendService) super.setAlt(alt); + } + + @Override + public SetBackendService setCallback(java.lang.String callback) { + return (SetBackendService) super.setCallback(callback); + } + + @Override + public SetBackendService setFields(java.lang.String fields) { + return (SetBackendService) super.setFields(fields); + } + + @Override + public SetBackendService setKey(java.lang.String key) { + return (SetBackendService) super.setKey(key); + } + + @Override + public SetBackendService setOauthToken(java.lang.String oauthToken) { + return (SetBackendService) super.setOauthToken(oauthToken); + } + + @Override + public SetBackendService setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetBackendService) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetBackendService setQuotaUser(java.lang.String quotaUser) { + return (SetBackendService) super.setQuotaUser(quotaUser); + } + + @Override + public SetBackendService setUploadType(java.lang.String uploadType) { + return (SetBackendService) super.setUploadType(uploadType); + } + + @Override + public SetBackendService setUploadProtocol(java.lang.String uploadProtocol) { + return (SetBackendService) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetBackendService setUserIp(java.lang.String userIp) { + return (SetBackendService) 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 SetBackendService setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + 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 TargetSslProxy resource whose BackendService resource is to be set. + */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource whose BackendService resource is to be set. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** + * Name of the TargetSslProxy resource whose BackendService resource is to be set. + */ + public SetBackendService setTargetSslProxy(java.lang.String targetSslProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } + this.targetSslProxy = targetSslProxy; + 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 SetBackendService setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetBackendService set(String parameterName, Object value) { + return (SetBackendService) super.set(parameterName, value); + } + } + /** + * Changes the Certificate Map for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setCertificateMap". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose CertificateMap 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.TargetSslProxiesSetCertificateMapRequest} + * @return the request + */ + public SetCertificateMap setCertificateMap(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetCertificateMapRequest content) throws java.io.IOException { + SetCertificateMap result = new SetCertificateMap(project, targetSslProxy, content); + initialize(result); + return result; + } + + public class SetCertificateMap extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap"; + + 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])?))"); + + /** + * Changes the Certificate Map for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setCertificateMap". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. + *

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

    + * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose CertificateMap 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.TargetSslProxiesSetCertificateMapRequest} + * @since 1.13 + */ + protected SetCertificateMap(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetCertificateMapRequest 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(), + "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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); } @Override - public RemoveHealthCheck set$Xgafv(java.lang.String $Xgafv) { - return (RemoveHealthCheck) super.set$Xgafv($Xgafv); + public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { + return (SetCertificateMap) super.set$Xgafv($Xgafv); } @Override - public RemoveHealthCheck setAccessToken(java.lang.String accessToken) { - return (RemoveHealthCheck) super.setAccessToken(accessToken); + public SetCertificateMap setAccessToken(java.lang.String accessToken) { + return (SetCertificateMap) super.setAccessToken(accessToken); } @Override - public RemoveHealthCheck setAlt(java.lang.String alt) { - return (RemoveHealthCheck) super.setAlt(alt); + public SetCertificateMap setAlt(java.lang.String alt) { + return (SetCertificateMap) super.setAlt(alt); } @Override - public RemoveHealthCheck setCallback(java.lang.String callback) { - return (RemoveHealthCheck) super.setCallback(callback); + public SetCertificateMap setCallback(java.lang.String callback) { + return (SetCertificateMap) super.setCallback(callback); } @Override - public RemoveHealthCheck setFields(java.lang.String fields) { - return (RemoveHealthCheck) super.setFields(fields); + public SetCertificateMap setFields(java.lang.String fields) { + return (SetCertificateMap) super.setFields(fields); } @Override - public RemoveHealthCheck setKey(java.lang.String key) { - return (RemoveHealthCheck) super.setKey(key); + public SetCertificateMap setKey(java.lang.String key) { + return (SetCertificateMap) super.setKey(key); } @Override - public RemoveHealthCheck setOauthToken(java.lang.String oauthToken) { - return (RemoveHealthCheck) super.setOauthToken(oauthToken); + public SetCertificateMap setOauthToken(java.lang.String oauthToken) { + return (SetCertificateMap) super.setOauthToken(oauthToken); } @Override - public RemoveHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveHealthCheck) super.setPrettyPrint(prettyPrint); + public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCertificateMap) super.setPrettyPrint(prettyPrint); } @Override - public RemoveHealthCheck setQuotaUser(java.lang.String quotaUser) { - return (RemoveHealthCheck) super.setQuotaUser(quotaUser); + public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { + return (SetCertificateMap) super.setQuotaUser(quotaUser); } @Override - public RemoveHealthCheck setUploadType(java.lang.String uploadType) { - return (RemoveHealthCheck) super.setUploadType(uploadType); + public SetCertificateMap setUploadType(java.lang.String uploadType) { + return (SetCertificateMap) super.setUploadType(uploadType); } @Override - public RemoveHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveHealthCheck) super.setUploadProtocol(uploadProtocol); + public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveHealthCheck setUserIp(java.lang.String userIp) { - return (RemoveHealthCheck) super.setUserIp(userIp); + public SetCertificateMap setUserIp(java.lang.String userIp) { + return (SetCertificateMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217618,7 +232594,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveHealthCheck setProject(java.lang.String project) { + public SetCertificateMap 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 " + @@ -217628,45 +232604,26 @@ public RemoveHealthCheck setProject(java.lang.String project) { return this; } - /** 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. + /** + * Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be + * 1-63 characters long, and comply with RFC1035. */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public RemoveHealthCheck 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 target pool to remove health checks from. */ @com.google.api.client.util.Key - private java.lang.String targetPool; + private java.lang.String targetSslProxy; - /** Name of the target pool to remove health checks from. + /** Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 + characters long, and comply with RFC1035. */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } - /** Name of the target pool to remove health checks from. */ - public RemoveHealthCheck setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; + /** + * Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be + * 1-63 characters long, and comply with RFC1035. + */ + public SetCertificateMap setTargetSslProxy(java.lang.String targetSslProxy) { + this.targetSslProxy = targetSslProxy; return this; } @@ -217714,67 +232671,62 @@ 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 RemoveHealthCheck setRequestId(java.lang.String requestId) { + public SetCertificateMap setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveHealthCheck set(String parameterName, Object value) { - return (RemoveHealthCheck) super.set(parameterName, value); + public SetCertificateMap set(String parameterName, Object value) { + return (SetCertificateMap) super.set(parameterName, value); } } /** - * Removes instance URL from a target pool. + * Changes the ProxyHeaderType for TargetSslProxy. * - * Create a request for the method "targetPools.removeInstance". + * Create a request for the method "targetSslProxies.setProxyHeader". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveInstance#execute()} method to invoke the remote operation. + * parameters, call the {@link SetProxyHeader#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 remove instances from. - * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest} + * @param targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest} * @return the request */ - public RemoveInstance removeInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest content) throws java.io.IOException { - RemoveInstance result = new RemoveInstance(project, region, targetPool, content); + public SetProxyHeader setProxyHeader(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest content) throws java.io.IOException { + SetProxyHeader result = new SetProxyHeader(project, targetSslProxy, content); initialize(result); return result; } - public class RemoveInstance extends ComputeRequest { + public class SetProxyHeader extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern TARGET_POOL_PATTERN = + private final java.util.regex.Pattern TARGET_SSL_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Removes instance URL from a target pool. + * Changes the ProxyHeaderType for TargetSslProxy. * - * Create a request for the method "targetPools.removeInstance". + * Create a request for the method "targetSslProxies.setProxyHeader". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveInstance#execute()} method to invoke the remote operation. - *

    {@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.

    * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to remove instances from. - * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest} + * @param targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest} * @since 1.13 */ - protected RemoveInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest content) { + protected SetProxyHeader(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest 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()) { @@ -217782,78 +232734,72 @@ protected RemoveInstance(java.lang.String project, java.lang.String region, java "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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + this.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public RemoveInstance set$Xgafv(java.lang.String $Xgafv) { - return (RemoveInstance) super.set$Xgafv($Xgafv); + public SetProxyHeader set$Xgafv(java.lang.String $Xgafv) { + return (SetProxyHeader) super.set$Xgafv($Xgafv); } @Override - public RemoveInstance setAccessToken(java.lang.String accessToken) { - return (RemoveInstance) super.setAccessToken(accessToken); + public SetProxyHeader setAccessToken(java.lang.String accessToken) { + return (SetProxyHeader) super.setAccessToken(accessToken); } @Override - public RemoveInstance setAlt(java.lang.String alt) { - return (RemoveInstance) super.setAlt(alt); + public SetProxyHeader setAlt(java.lang.String alt) { + return (SetProxyHeader) super.setAlt(alt); } @Override - public RemoveInstance setCallback(java.lang.String callback) { - return (RemoveInstance) super.setCallback(callback); + public SetProxyHeader setCallback(java.lang.String callback) { + return (SetProxyHeader) super.setCallback(callback); } @Override - public RemoveInstance setFields(java.lang.String fields) { - return (RemoveInstance) super.setFields(fields); + public SetProxyHeader setFields(java.lang.String fields) { + return (SetProxyHeader) super.setFields(fields); } @Override - public RemoveInstance setKey(java.lang.String key) { - return (RemoveInstance) super.setKey(key); + public SetProxyHeader setKey(java.lang.String key) { + return (SetProxyHeader) super.setKey(key); } @Override - public RemoveInstance setOauthToken(java.lang.String oauthToken) { - return (RemoveInstance) super.setOauthToken(oauthToken); + public SetProxyHeader setOauthToken(java.lang.String oauthToken) { + return (SetProxyHeader) super.setOauthToken(oauthToken); } @Override - public RemoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveInstance) super.setPrettyPrint(prettyPrint); + public SetProxyHeader setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetProxyHeader) super.setPrettyPrint(prettyPrint); } @Override - public RemoveInstance setQuotaUser(java.lang.String quotaUser) { - return (RemoveInstance) super.setQuotaUser(quotaUser); + public SetProxyHeader setQuotaUser(java.lang.String quotaUser) { + return (SetProxyHeader) super.setQuotaUser(quotaUser); } @Override - public RemoveInstance setUploadType(java.lang.String uploadType) { - return (RemoveInstance) super.setUploadType(uploadType); + public SetProxyHeader setUploadType(java.lang.String uploadType) { + return (SetProxyHeader) super.setUploadType(uploadType); } @Override - public RemoveInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveInstance) super.setUploadProtocol(uploadProtocol); + public SetProxyHeader setUploadProtocol(java.lang.String uploadProtocol) { + return (SetProxyHeader) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveInstance setUserIp(java.lang.String userIp) { - return (RemoveInstance) super.setUserIp(userIp); + public SetProxyHeader setUserIp(java.lang.String userIp) { + return (SetProxyHeader) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217867,7 +232813,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveInstance setProject(java.lang.String project) { + public SetProxyHeader 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 " + @@ -217877,45 +232823,24 @@ public RemoveInstance 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 RemoveInstance 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 TargetPool resource to remove instances from. */ + /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ @com.google.api.client.util.Key - private java.lang.String targetPool; + private java.lang.String targetSslProxy; - /** Name of the TargetPool resource to remove instances from. + /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } - /** Name of the TargetPool resource to remove instances from. */ - public RemoveInstance setTargetPool(java.lang.String targetPool) { + /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ + public SetProxyHeader setTargetSslProxy(java.lang.String targetSslProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetPool = targetPool; + this.targetSslProxy = targetSslProxy; return this; } @@ -217963,67 +232888,64 @@ 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 RemoveInstance setRequestId(java.lang.String requestId) { + public SetProxyHeader setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveInstance set(String parameterName, Object value) { - return (RemoveInstance) super.set(parameterName, value); + public SetProxyHeader set(String parameterName, Object value) { + return (SetProxyHeader) super.set(parameterName, value); } } /** - * Changes a backup target pool's configurations. + * Changes SslCertificates for TargetSslProxy. * - * Create a request for the method "targetPools.setBackup". + * Create a request for the method "targetSslProxies.setSslCertificates". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetBackup#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSslCertificates#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 set a backup pool for. - * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @param targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest} * @return the request */ - public SetBackup setBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { - SetBackup result = new SetBackup(project, region, targetPool, content); + public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest content) throws java.io.IOException { + SetSslCertificates result = new SetSslCertificates(project, targetSslProxy, content); initialize(result); return result; } - public class SetBackup extends ComputeRequest { + public class SetSslCertificates extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern TARGET_POOL_PATTERN = + private final java.util.regex.Pattern TARGET_SSL_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Changes a backup target pool's configurations. + * Changes SslCertificates for TargetSslProxy. * - * Create a request for the method "targetPools.setBackup". + * Create a request for the method "targetSslProxies.setSslCertificates". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetBackup#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote + * operation.

    {@link SetSslCertificates#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 targetPool Name of the TargetPool resource to set a backup pool for. - * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @param targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest} * @since 1.13 */ - protected SetBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetReference content) { + protected SetSslCertificates(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest 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()) { @@ -218031,78 +232953,72 @@ protected SetBackup(java.lang.String project, java.lang.String region, java.lang "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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + this.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetBackup set$Xgafv(java.lang.String $Xgafv) { - return (SetBackup) super.set$Xgafv($Xgafv); + public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { + return (SetSslCertificates) super.set$Xgafv($Xgafv); } @Override - public SetBackup setAccessToken(java.lang.String accessToken) { - return (SetBackup) super.setAccessToken(accessToken); + public SetSslCertificates setAccessToken(java.lang.String accessToken) { + return (SetSslCertificates) super.setAccessToken(accessToken); } @Override - public SetBackup setAlt(java.lang.String alt) { - return (SetBackup) super.setAlt(alt); + public SetSslCertificates setAlt(java.lang.String alt) { + return (SetSslCertificates) super.setAlt(alt); } @Override - public SetBackup setCallback(java.lang.String callback) { - return (SetBackup) super.setCallback(callback); + public SetSslCertificates setCallback(java.lang.String callback) { + return (SetSslCertificates) super.setCallback(callback); } @Override - public SetBackup setFields(java.lang.String fields) { - return (SetBackup) super.setFields(fields); + public SetSslCertificates setFields(java.lang.String fields) { + return (SetSslCertificates) super.setFields(fields); } @Override - public SetBackup setKey(java.lang.String key) { - return (SetBackup) super.setKey(key); + public SetSslCertificates setKey(java.lang.String key) { + return (SetSslCertificates) super.setKey(key); } @Override - public SetBackup setOauthToken(java.lang.String oauthToken) { - return (SetBackup) super.setOauthToken(oauthToken); + public SetSslCertificates setOauthToken(java.lang.String oauthToken) { + return (SetSslCertificates) super.setOauthToken(oauthToken); } @Override - public SetBackup setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetBackup) super.setPrettyPrint(prettyPrint); + public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslCertificates) super.setPrettyPrint(prettyPrint); } @Override - public SetBackup setQuotaUser(java.lang.String quotaUser) { - return (SetBackup) super.setQuotaUser(quotaUser); + public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { + return (SetSslCertificates) super.setQuotaUser(quotaUser); } @Override - public SetBackup setUploadType(java.lang.String uploadType) { - return (SetBackup) super.setUploadType(uploadType); + public SetSslCertificates setUploadType(java.lang.String uploadType) { + return (SetSslCertificates) super.setUploadType(uploadType); } @Override - public SetBackup setUploadProtocol(java.lang.String uploadProtocol) { - return (SetBackup) super.setUploadProtocol(uploadProtocol); + public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); } @Override - public SetBackup setUserIp(java.lang.String userIp) { - return (SetBackup) super.setUserIp(userIp); + public SetSslCertificates setUserIp(java.lang.String userIp) { + return (SetSslCertificates) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218116,7 +233032,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetBackup setProject(java.lang.String project) { + public SetSslCertificates 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 " + @@ -218126,61 +233042,28 @@ public SetBackup 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. + /** + * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request. */ - public SetBackup 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 TargetPool resource to set a backup pool for. */ @com.google.api.client.util.Key - private java.lang.String targetPool; + private java.lang.String targetSslProxy; - /** Name of the TargetPool resource to set a backup pool for. + /** Name of the TargetSslProxy resource whose SslCertificate resource is to be set. */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } - /** Name of the TargetPool resource to set a backup pool for. */ - public SetBackup setTargetPool(java.lang.String targetPool) { + /** + * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. + */ + public SetSslCertificates setTargetSslProxy(java.lang.String targetSslProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetPool = targetPool; - return this; - } - - /** New failoverRatio value for the target pool. */ - @com.google.api.client.util.Key - private java.lang.Float failoverRatio; - - /** New failoverRatio value for the target pool. - */ - public java.lang.Float getFailoverRatio() { - return failoverRatio; - } - - /** New failoverRatio value for the target pool. */ - public SetBackup setFailoverRatio(java.lang.Float failoverRatio) { - this.failoverRatio = failoverRatio; + this.targetSslProxy = targetSslProxy; return this; } @@ -218228,70 +233111,67 @@ 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 SetBackup setRequestId(java.lang.String requestId) { + public SetSslCertificates setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetBackup set(String parameterName, Object value) { - return (SetBackup) super.set(parameterName, value); + public SetSslCertificates set(String parameterName, Object value) { + return (SetSslCertificates) super.set(parameterName, value); } } /** - * Sets the Google Cloud Armor security policy for the specified target pool. For more information, - * seeGoogle Cloud Armor Overview + * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL + * features. This affects connections between clients and the load balancer. They do not affect the + * connection between the load balancer and the backends. * - * Create a request for the method "targetPools.setSecurityPolicy". + * Create a request for the method "targetSslProxies.setSslPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSslPolicy#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 security policy should be - set. The name should conform - * to RFC1035. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @param targetSslProxy Name of the TargetSslProxy 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} * @return the request */ - public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.SecurityPolicyReference content) throws java.io.IOException { - SetSecurityPolicy result = new SetSecurityPolicy(project, region, targetPool, content); + public SetSslPolicy setSslPolicy(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.SslPolicyReference content) throws java.io.IOException { + SetSslPolicy result = new SetSslPolicy(project, targetSslProxy, content); initialize(result); return result; } - public class SetSecurityPolicy extends ComputeRequest { + public class SetSslPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Sets the Google Cloud Armor security policy for the specified target pool. For more - * information, seeGoogle Cloud Armor Overview + * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for + * SSL features. This affects connections between clients and the load balancer. They do not + * affect the connection between the load balancer and the backends. * - * Create a request for the method "targetPools.setSecurityPolicy". + * Create a request for the method "targetSslProxies.setSslPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.

    + * {@link + * SetSslPolicy#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 targetPool Name of the TargetPool resource to which the security policy should be - set. The name should conform - * to RFC1035. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @param targetSslProxy Name of the TargetSslProxy 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} * @since 1.13 */ - protected SetSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.SecurityPolicyReference content) { + protected SetSslPolicy(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.SslPolicyReference 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()) { @@ -218299,73 +233179,67 @@ protected SetSecurityPolicy(java.lang.String project, java.lang.String region, j "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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + this.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); } @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSslPolicy) super.set$Xgafv($Xgafv); } @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); + public SetSslPolicy setAccessToken(java.lang.String accessToken) { + return (SetSslPolicy) super.setAccessToken(accessToken); } @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); + public SetSslPolicy setAlt(java.lang.String alt) { + return (SetSslPolicy) super.setAlt(alt); } @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); + public SetSslPolicy setCallback(java.lang.String callback) { + return (SetSslPolicy) super.setCallback(callback); } @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); + public SetSslPolicy setFields(java.lang.String fields) { + return (SetSslPolicy) super.setFields(fields); } @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); + public SetSslPolicy setKey(java.lang.String key) { + return (SetSslPolicy) super.setKey(key); } @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); + public SetSslPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSslPolicy) super.setOauthToken(oauthToken); } @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSslPolicy) super.setQuotaUser(quotaUser); } @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); + public SetSslPolicy setUploadType(java.lang.String uploadType) { + return (SetSslPolicy) super.setUploadType(uploadType); } @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) super.setUserIp(userIp); + public SetSslPolicy setUserIp(java.lang.String userIp) { + return (SetSslPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218379,7 +233253,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSecurityPolicy setProject(java.lang.String project) { + public SetSslPolicy 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 " + @@ -218389,47 +233263,26 @@ public SetSecurityPolicy 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 SetSecurityPolicy 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 TargetPool resource to which the security policy should be set. The name should - * conform to RFC1035. + * Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 + * characters long, and comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String targetPool; + private java.lang.String targetSslProxy; - /** Name of the TargetPool resource to which the security policy should be set. The name should conform - to RFC1035. + /** Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters + long, and comply with RFC1035. */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } /** - * Name of the TargetPool resource to which the security policy should be set. The name should - * conform to RFC1035. + * Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 + * characters long, and comply with RFC1035. */ - public SetSecurityPolicy setTargetPool(java.lang.String targetPool) { - this.targetPool = targetPool; + public SetSslPolicy setTargetSslProxy(java.lang.String targetSslProxy) { + this.targetSslProxy = targetSslProxy; return this; } @@ -218477,53 +233330,49 @@ 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 SetSecurityPolicy setRequestId(java.lang.String requestId) { + public SetSslPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); + public SetSslPolicy set(String parameterName, Object value) { + return (SetSslPolicy) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "targetPools.testIamPermissions". + * Create a request for the method "targetSslProxies.testIamPermissions". * * 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. * * @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 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 TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{resource}/testIamPermissions"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "targetPools.testIamPermissions". + * Create a request for the method "targetSslProxies.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote @@ -218532,12 +233381,11 @@ public class TestIamPermissions extends ComputeRequest * * @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 TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + protected TestIamPermissions(java.lang.String project, 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()) { @@ -218545,17 +233393,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -218619,129 +233461,581 @@ public TestIamPermissions setUserIp(java.lang.String userIp) { return (TestIamPermissions) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** 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 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 " + + "(?:(?:[-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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetTcpProxies collection. + * + *

    The typical use is:

    + *
    +   *   {@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 { + + private static final String REST_PATH = "projects/{project}/aggregated/targetTcpProxies"; + + 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])?))"); + + /** + * 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 the compute server. After setting any optional + * 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 Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxyAggregatedList.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])?))"); + } + } + + @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @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; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return 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 " + + "(?:(?:[-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; + } + + /** + * 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 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 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 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 + * 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. + * + * 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 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 project; + private java.lang.String pageToken; - /** Project ID for this request. + /** 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 getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** Project ID for this request. */ - 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 " + - "(?:(?:[-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; + /** + * 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; } - /** The name of the region for this request. */ + /** + * 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.String region; + private java.lang.Boolean returnPartialSuccess; - /** The name of the region for this request. + /** 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.String getRegion() { - return region; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * 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; } - /** Name or id of the resource for this request. */ + /** + * 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.String resource; + private java.lang.Long serviceProjectNumber; - /** Name or id of the resource for this request. + /** 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.String getResource() { - return resource; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } - /** 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; + /** + * 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the TargetSslProxies collection. - * - *

    The typical use is:

    - *
    -   *   {@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 { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; 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_SSL_PROXY_PATTERN = + private final java.util.regex.Pattern TARGET_TCP_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * 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 the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -218749,10 +234043,10 @@ public class Delete extends ComputeRequest * * @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. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String targetSslProxy) { + protected Delete(java.lang.String project, java.lang.String targetTcpProxy) { 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()) { @@ -218760,10 +234054,10 @@ protected Delete(java.lang.String project, java.lang.String targetSslProxy) { "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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + this.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -218849,24 +234143,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the TargetSslProxy resource to delete. */ + /** Name of the TargetTcpProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetSslProxy; + private java.lang.String targetTcpProxy; - /** Name of the TargetSslProxy resource to delete. + /** Name of the TargetTcpProxy resource to delete. */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } - /** Name of the TargetSslProxy resource to delete. */ - public Delete setTargetSslProxy(java.lang.String targetSslProxy) { + /** Name of the TargetTcpProxy resource to delete. */ + public Delete setTargetTcpProxy(java.lang.String targetTcpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetSslProxy = targetSslProxy; + this.targetTcpProxy = targetTcpProxy; return this; } @@ -218925,37 +234219,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetSslProxy resource. + * Returns the specified TargetTcpProxy resource. * - * Create a request for the method "targetSslProxies.get". + * Create a request for the method "targetTcpProxies.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 targetSslProxy Name of the TargetSslProxy resource to return. + * @param targetTcpProxy Name of the TargetTcpProxy resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String targetSslProxy) throws java.io.IOException { - Get result = new Get(project, targetSslProxy); + public Get get(java.lang.String project, java.lang.String targetTcpProxy) throws java.io.IOException { + Get result = new Get(project, targetTcpProxy); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; 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_SSL_PROXY_PATTERN = + private final java.util.regex.Pattern TARGET_TCP_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 TargetSslProxy resource. + * Returns the specified TargetTcpProxy resource. * - * Create a request for the method "targetSslProxies.get". + * Create a request for the method "targetTcpProxies.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.

    {@link @@ -218963,21 +234257,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource to return. + * @param targetTcpProxy Name of the TargetTcpProxy resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String targetSslProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetSslProxy.class); + protected Get(java.lang.String project, java.lang.String targetTcpProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxy.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + this.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -219073,24 +234367,24 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetSslProxy resource to return. */ + /** Name of the TargetTcpProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String targetSslProxy; + private java.lang.String targetTcpProxy; - /** Name of the TargetSslProxy resource to return. + /** Name of the TargetTcpProxy resource to return. */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } - /** Name of the TargetSslProxy resource to return. */ - public Get setTargetSslProxy(java.lang.String targetSslProxy) { + /** Name of the TargetTcpProxy resource to return. */ + public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetSslProxy = targetSslProxy; + this.targetTcpProxy = targetTcpProxy; return this; } @@ -219100,19 +234394,19 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetSslProxy resource in the specified project using the data included in the + * Creates a TargetTcpProxy resource in the specified project using the data included in the * request. * - * Create a request for the method "targetSslProxies.insert". + * Create a request for the method "targetTcpProxies.insert". * * 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. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxy} + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetSslProxy content) throws java.io.IOException { + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetTcpProxy content) throws java.io.IOException { Insert result = new Insert(project, content); initialize(result); return result; @@ -219120,16 +234414,16 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; 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])?))"); /** - * Creates a TargetSslProxy resource in the specified project using the data included in the + * Creates a TargetTcpProxy resource in the specified project using the data included in the * request. * - * Create a request for the method "targetSslProxies.insert". + * Create a request for the method "targetTcpProxies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

    {@link @@ -219137,10 +234431,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxy} + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetSslProxy content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetTcpProxy 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()) { @@ -219286,9 +234580,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of TargetSslProxy resources available to the specified project. + * Retrieves the list of TargetTcpProxy resources available to the specified project. * - * Create a request for the method "targetSslProxies.list". + * Create a request for the method "targetTcpProxies.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. @@ -219302,17 +234596,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; 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])?))"); /** - * Retrieves the list of TargetSslProxy resources available to the specified project. + * Retrieves the list of TargetTcpProxy resources available to the specified project. * - * Create a request for the method "targetSslProxies.list". + * Create a request for the method "targetTcpProxies.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -219323,7 +234617,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService"; 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_SSL_PROXY_PATTERN = + private final java.util.regex.Pattern TARGET_TCP_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Changes the BackendService for TargetSslProxy. + * Changes the BackendService for TargetTcpProxy. * - * Create a request for the method "targetSslProxies.setBackendService". + * Create a request for the method "targetTcpProxies.setBackendService". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. @@ -219734,12 +235028,12 @@ public class SetBackendService extends ComputeRequest * * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose BackendService resource + * @param targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest} + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest} * @since 1.13 */ - protected SetBackendService(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest content) { + protected SetBackendService(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest 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()) { @@ -219747,10 +235041,10 @@ protected SetBackendService(java.lang.String project, java.lang.String targetSsl "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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + this.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -219837,27 +235131,27 @@ public SetBackendService setProject(java.lang.String project) { } /** - * Name of the TargetSslProxy resource whose BackendService resource is to be set. + * Name of the TargetTcpProxy resource whose BackendService resource is to be set. */ @com.google.api.client.util.Key - private java.lang.String targetSslProxy; + private java.lang.String targetTcpProxy; - /** Name of the TargetSslProxy resource whose BackendService resource is to be set. + /** Name of the TargetTcpProxy resource whose BackendService resource is to be set. */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } /** - * Name of the TargetSslProxy resource whose BackendService resource is to be set. + * Name of the TargetTcpProxy resource whose BackendService resource is to be set. */ - public SetBackendService setTargetSslProxy(java.lang.String targetSslProxy) { + public SetBackendService setTargetTcpProxy(java.lang.String targetTcpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetSslProxy = targetSslProxy; + this.targetTcpProxy = targetTcpProxy; return this; } @@ -219916,253 +235210,38 @@ public SetBackendService set(String parameterName, Object value) { } } /** - * Changes the Certificate Map for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setCertificateMap". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose CertificateMap 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.TargetSslProxiesSetCertificateMapRequest} - * @return the request - */ - public SetCertificateMap setCertificateMap(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetCertificateMapRequest content) throws java.io.IOException { - SetCertificateMap result = new SetCertificateMap(project, targetSslProxy, content); - initialize(result); - return result; - } - - public class SetCertificateMap extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap"; - - 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])?))"); - - /** - * Changes the Certificate Map for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setCertificateMap". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. - *

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

    - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose CertificateMap 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.TargetSslProxiesSetCertificateMapRequest} - * @since 1.13 - */ - protected SetCertificateMap(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetCertificateMapRequest 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(), - "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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - } - - @Override - public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { - return (SetCertificateMap) super.set$Xgafv($Xgafv); - } - - @Override - public SetCertificateMap setAccessToken(java.lang.String accessToken) { - return (SetCertificateMap) super.setAccessToken(accessToken); - } - - @Override - public SetCertificateMap setAlt(java.lang.String alt) { - return (SetCertificateMap) super.setAlt(alt); - } - - @Override - public SetCertificateMap setCallback(java.lang.String callback) { - return (SetCertificateMap) super.setCallback(callback); - } - - @Override - public SetCertificateMap setFields(java.lang.String fields) { - return (SetCertificateMap) super.setFields(fields); - } - - @Override - public SetCertificateMap setKey(java.lang.String key) { - return (SetCertificateMap) super.setKey(key); - } - - @Override - public SetCertificateMap setOauthToken(java.lang.String oauthToken) { - return (SetCertificateMap) super.setOauthToken(oauthToken); - } - - @Override - public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCertificateMap) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { - return (SetCertificateMap) super.setQuotaUser(quotaUser); - } - - @Override - public SetCertificateMap setUploadType(java.lang.String uploadType) { - return (SetCertificateMap) super.setUploadType(uploadType); - } - - @Override - public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetCertificateMap setUserIp(java.lang.String userIp) { - return (SetCertificateMap) 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 SetCertificateMap 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 TargetSslProxy resource whose CertificateMap is to be set. The name must be - * 1-63 characters long, and comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 - characters long, and comply with RFC1035. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** - * Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be - * 1-63 characters long, and comply with RFC1035. - */ - public SetCertificateMap setTargetSslProxy(java.lang.String targetSslProxy) { - this.targetSslProxy = targetSslProxy; - 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 SetCertificateMap setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetCertificateMap set(String parameterName, Object value) { - return (SetCertificateMap) super.set(parameterName, value); - } - } - /** - * Changes the ProxyHeaderType for TargetSslProxy. + * Changes the ProxyHeaderType for TargetTcpProxy. * - * Create a request for the method "targetSslProxies.setProxyHeader". + * Create a request for the method "targetTcpProxies.setProxyHeader". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest} + * @param targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest} * @return the request */ - public SetProxyHeader setProxyHeader(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest content) throws java.io.IOException { - SetProxyHeader result = new SetProxyHeader(project, targetSslProxy, content); + public SetProxyHeader setProxyHeader(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest content) throws java.io.IOException { + SetProxyHeader result = new SetProxyHeader(project, targetTcpProxy, content); initialize(result); return result; } public class SetProxyHeader extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader"; 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_SSL_PROXY_PATTERN = + private final java.util.regex.Pattern TARGET_TCP_PROXY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Changes the ProxyHeaderType for TargetSslProxy. + * Changes the ProxyHeaderType for TargetTcpProxy. * - * Create a request for the method "targetSslProxies.setProxyHeader". + * Create a request for the method "targetTcpProxies.setProxyHeader". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. @@ -220171,11 +235250,11 @@ public class SetProxyHeader extends ComputeRequest * * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest} + * @param targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest} * @since 1.13 */ - protected SetProxyHeader(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest content) { + protected SetProxyHeader(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest 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()) { @@ -220183,10 +235262,10 @@ protected SetProxyHeader(java.lang.String project, java.lang.String targetSslPro "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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + this.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -220272,466 +235351,24 @@ public SetProxyHeader setProject(java.lang.String project) { return this; } - /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ - public SetProxyHeader setTargetSslProxy(java.lang.String targetSslProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetSslProxy = targetSslProxy; - 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 SetProxyHeader setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetProxyHeader set(String parameterName, Object value) { - return (SetProxyHeader) super.set(parameterName, value); - } - } - /** - * Changes SslCertificates for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setSslCertificates". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource - is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest} - * @return the request - */ - public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest content) throws java.io.IOException { - SetSslCertificates result = new SetSslCertificates(project, targetSslProxy, content); - initialize(result); - return result; - } - - public class SetSslCertificates extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates"; - - 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_SSL_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes SslCertificates for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setSslCertificates". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote - * operation.

    {@link SetSslCertificates#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 targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource - is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest} - * @since 1.13 - */ - protected SetSslCertificates(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest 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(), - "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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { - return (SetSslCertificates) super.set$Xgafv($Xgafv); - } - - @Override - public SetSslCertificates setAccessToken(java.lang.String accessToken) { - return (SetSslCertificates) super.setAccessToken(accessToken); - } - - @Override - public SetSslCertificates setAlt(java.lang.String alt) { - return (SetSslCertificates) super.setAlt(alt); - } - - @Override - public SetSslCertificates setCallback(java.lang.String callback) { - return (SetSslCertificates) super.setCallback(callback); - } - - @Override - public SetSslCertificates setFields(java.lang.String fields) { - return (SetSslCertificates) super.setFields(fields); - } - - @Override - public SetSslCertificates setKey(java.lang.String key) { - return (SetSslCertificates) super.setKey(key); - } - - @Override - public SetSslCertificates setOauthToken(java.lang.String oauthToken) { - return (SetSslCertificates) super.setOauthToken(oauthToken); - } - - @Override - public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslCertificates) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { - return (SetSslCertificates) super.setQuotaUser(quotaUser); - } - - @Override - public SetSslCertificates setUploadType(java.lang.String uploadType) { - return (SetSslCertificates) super.setUploadType(uploadType); - } - - @Override - public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSslCertificates setUserIp(java.lang.String userIp) { - return (SetSslCertificates) 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 SetSslCertificates 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 TargetSslProxy resource whose SslCertificate resource is to be set. - */ + /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ @com.google.api.client.util.Key - private java.lang.String targetSslProxy; + private java.lang.String targetTcpProxy; - /** Name of the TargetSslProxy resource whose SslCertificate resource is to be set. + /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } - /** - * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. - */ - public SetSslCertificates setTargetSslProxy(java.lang.String targetSslProxy) { + /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ + public SetProxyHeader setTargetTcpProxy(java.lang.String targetTcpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetSslProxy = targetSslProxy; - 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 SetSslCertificates setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSslCertificates set(String parameterName, Object value) { - return (SetSslCertificates) super.set(parameterName, value); - } - } - /** - * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL - * features. This affects connections between clients and the load balancer. They do not affect the - * connection between the load balancer and the backends. - * - * Create a request for the method "targetSslProxies.setSslPolicy". - * - * 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. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy 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} - * @return the request - */ - public SetSslPolicy setSslPolicy(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.SslPolicyReference content) throws java.io.IOException { - SetSslPolicy result = new SetSslPolicy(project, targetSslProxy, content); - initialize(result); - return result; - } - - public class SetSslPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy"; - - 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])?))"); - - /** - * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for - * SSL features. This affects connections between clients and the load balancer. They do not - * affect the connection between the load balancer and the backends. - * - * Create a request for the method "targetSslProxies.setSslPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.

    - * {@link - * SetSslPolicy#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 targetSslProxy Name of the TargetSslProxy 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} - * @since 1.13 - */ - protected SetSslPolicy(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.SslPolicyReference 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(), - "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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - } - - @Override - public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSslPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetSslPolicy setAccessToken(java.lang.String accessToken) { - return (SetSslPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetSslPolicy setAlt(java.lang.String alt) { - return (SetSslPolicy) super.setAlt(alt); - } - - @Override - public SetSslPolicy setCallback(java.lang.String callback) { - return (SetSslPolicy) super.setCallback(callback); - } - - @Override - public SetSslPolicy setFields(java.lang.String fields) { - return (SetSslPolicy) super.setFields(fields); - } - - @Override - public SetSslPolicy setKey(java.lang.String key) { - return (SetSslPolicy) super.setKey(key); - } - - @Override - public SetSslPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSslPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSslPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetSslPolicy setUploadType(java.lang.String uploadType) { - return (SetSslPolicy) super.setUploadType(uploadType); - } - - @Override - public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSslPolicy setUserIp(java.lang.String userIp) { - return (SetSslPolicy) 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 SetSslPolicy 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 TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters - long, and comply with RFC1035. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** - * Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - */ - public SetSslPolicy setTargetSslProxy(java.lang.String targetSslProxy) { - this.targetSslProxy = targetSslProxy; + this.targetTcpProxy = targetTcpProxy; return this; } @@ -220779,52 +235416,219 @@ 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 SetSslPolicy setRequestId(java.lang.String requestId) { + public SetProxyHeader setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSslPolicy set(String parameterName, Object value) { - return (SetSslPolicy) super.set(parameterName, value); + public SetProxyHeader set(String parameterName, Object value) { + return (SetProxyHeader) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "targetTcpProxies.testIamPermissions". + * + * 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. + * + * @param project Project ID 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 TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions"; + + 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 RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "targetTcpProxies.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 TestIamPermissions(java.lang.String project, 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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 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 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; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the TargetTcpProxies collection. + * An accessor for creating requests from the TargetVpnGateways collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.TargetTcpProxies.List request = compute.targetTcpProxies().list(parameters ...)}
    +   *   {@code Compute.TargetVpnGateways.List request = compute.targetVpnGateways().list(parameters ...)}
        * 
    * * @return the resource collection */ - public TargetTcpProxies targetTcpProxies() { - return new TargetTcpProxies(); + public TargetVpnGateways targetVpnGateways() { + return new TargetVpnGateways(); } /** - * The "targetTcpProxies" collection of methods. + * The "targetVpnGateways" collection of methods. */ - public class TargetTcpProxies { + public class TargetVpnGateways { /** - * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the - * specified project. + * Retrieves an aggregated list of target VPN gateways. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "targetTcpProxies.aggregatedList". + * Create a request for the method "targetVpnGateways.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 { @@ -220833,21 +235637,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetTcpProxies"; + private static final String REST_PATH = "projects/{project}/aggregated/targetVpnGateways"; 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])?))"); /** - * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the - * specified project. + * Retrieves an aggregated list of target VPN gateways. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "targetTcpProxies.aggregatedList". + * Create a request for the method "targetVpnGateways.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -220855,11 +235658,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxyAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetVpnGatewayAggregatedList.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(), @@ -220938,17 +235741,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -221286,37 +236089,41 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified TargetTcpProxy resource. + * Deletes the specified target VPN gateway. * - * Create a request for the method "targetTcpProxies.delete". + * Create a request for the method "targetVpnGateways.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 targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @param region Name of the region for this request. + * @param targetVpnGateway Name of the target VPN gateway to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String targetTcpProxy) throws java.io.IOException { - Delete result = new Delete(project, targetTcpProxy); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) throws java.io.IOException { + Delete result = new Delete(project, region, targetVpnGateway); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; 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_TCP_PROXY_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern TARGET_VPN_GATEWAY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified TargetTcpProxy resource. + * Deletes the specified target VPN gateway. * - * Create a request for the method "targetTcpProxies.delete". + * Create a request for the method "targetVpnGateways.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -221324,10 +236131,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @param region Name of the region for this request. + * @param targetVpnGateway Name of the target VPN gateway to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String targetTcpProxy) { + protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) { 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()) { @@ -221335,10 +236143,16 @@ protected Delete(java.lang.String project, java.lang.String targetTcpProxy) { "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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + 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(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + 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.targetVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(targetVpnGateway, "Required parameter targetVpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), + "Parameter targetVpnGateway must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -221424,24 +236238,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the TargetTcpProxy resource to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; + private java.lang.String region; - /** Name of the TargetTcpProxy resource to delete. + /** Name of the region for this request. */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; + public java.lang.String getRegion() { + return region; } - /** Name of the TargetTcpProxy resource to delete. */ - public Delete setTargetTcpProxy(java.lang.String targetTcpProxy) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + 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 target VPN gateway to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetVpnGateway; + + /** Name of the target VPN gateway to delete. + */ + public java.lang.String getTargetVpnGateway() { + return targetVpnGateway; + } + + /** Name of the target VPN gateway to delete. */ + public Delete setTargetVpnGateway(java.lang.String targetVpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), + "Parameter targetVpnGateway must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetTcpProxy = targetTcpProxy; + this.targetVpnGateway = targetVpnGateway; return this; } @@ -221500,37 +236335,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetTcpProxy resource. + * Returns the specified target VPN gateway. * - * Create a request for the method "targetTcpProxies.get". + * Create a request for the method "targetVpnGateways.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 targetTcpProxy Name of the TargetTcpProxy resource to return. + * @param region Name of the region for this request. + * @param targetVpnGateway Name of the target VPN gateway to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String targetTcpProxy) throws java.io.IOException { - Get result = new Get(project, targetTcpProxy); + public Get get(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) throws java.io.IOException { + Get result = new Get(project, region, targetVpnGateway); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; 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_TCP_PROXY_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern TARGET_VPN_GATEWAY_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 TargetTcpProxy resource. + * Returns the specified target VPN gateway. * - * Create a request for the method "targetTcpProxies.get". + * Create a request for the method "targetVpnGateways.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.

    {@link @@ -221538,21 +236377,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to return. + * @param region Name of the region for this request. + * @param targetVpnGateway Name of the target VPN gateway to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String targetTcpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxy.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetVpnGateway.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + 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(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + 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.targetVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(targetVpnGateway, "Required parameter targetVpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), + "Parameter targetVpnGateway must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -221648,24 +236494,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetTcpProxy resource to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; + private java.lang.String region; - /** Name of the TargetTcpProxy resource to return. + /** Name of the region for this request. */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; + public java.lang.String getRegion() { + return region; } - /** Name of the TargetTcpProxy resource to return. */ - public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + 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 target VPN gateway to return. */ + @com.google.api.client.util.Key + private java.lang.String targetVpnGateway; + + /** Name of the target VPN gateway to return. + */ + public java.lang.String getTargetVpnGateway() { + return targetVpnGateway; + } + + /** Name of the target VPN gateway to return. */ + public Get setTargetVpnGateway(java.lang.String targetVpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), + "Parameter targetVpnGateway must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetTcpProxy = targetTcpProxy; + this.targetVpnGateway = targetVpnGateway; return this; } @@ -221675,36 +236542,40 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetTcpProxy resource in the specified project using the data included in the + * Creates a target VPN gateway in the specified project and region using the data included in the * request. * - * Create a request for the method "targetTcpProxies.insert". + * Create a request for the method "targetVpnGateways.insert". * * 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. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.TargetVpnGateway} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetTcpProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetVpnGateway content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Creates a TargetTcpProxy resource in the specified project using the data included in the + * Creates a target VPN gateway in the specified project and region using the data included in the * request. * - * Create a request for the method "targetTcpProxies.insert". + * Create a request for the method "targetVpnGateways.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

    {@link @@ -221712,10 +236583,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.TargetVpnGateway} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetTcpProxy content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetVpnGateway 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()) { @@ -221723,6 +236595,12 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "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 @@ -221806,6 +236684,27 @@ public Insert setProject(java.lang.String project) { return this; } + /** 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. + */ + public java.lang.String getRegion() { + return 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 " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = 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 @@ -221861,33 +236760,37 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of TargetTcpProxy resources available to the specified project. + * Retrieves a list of target VPN gateways available to the specified project and region. * - * Create a request for the method "targetTcpProxies.list". + * Create a request for the method "targetVpnGateways.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. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Retrieves the list of TargetTcpProxy resources available to the specified project. + * Retrieves a list of target VPN gateways available to the specified project and region. * - * Create a request for the method "targetTcpProxies.list". + * Create a request for the method "targetVpnGateways.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -221895,16 +236798,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. + * @param region Name of the region for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxyList.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetVpnGatewayList.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 @@ -221998,6 +236908,27 @@ public List setProject(java.lang.String project) { return this; } + /** 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. + */ + public java.lang.String getRegion() { + return 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 " + + "[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 @@ -222268,53 +237199,58 @@ public List set(String parameterName, Object value) { } } /** - * Changes the BackendService for TargetTcpProxy. + * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "targetTcpProxies.setBackendService". + * Create a request for the method "targetVpnGateways.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetBackendService#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 targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource - is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest} + * @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 SetBackendService setBackendService(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest content) throws java.io.IOException { - SetBackendService result = new SetBackendService(project, targetTcpProxy, 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 SetBackendService extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels"; 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_TCP_PROXY_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Changes the BackendService for TargetTcpProxy. + * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "targetTcpProxies.setBackendService". + * Create a request for the method "targetVpnGateways.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    + * {@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 targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource - is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest} + * @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 SetBackendService(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest 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()) { @@ -222322,72 +237258,78 @@ protected SetBackendService(java.lang.String project, java.lang.String targetTcp "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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + 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(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + 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 SetBackendService set$Xgafv(java.lang.String $Xgafv) { - return (SetBackendService) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetBackendService setAccessToken(java.lang.String accessToken) { - return (SetBackendService) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetBackendService setAlt(java.lang.String alt) { - return (SetBackendService) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetBackendService setCallback(java.lang.String callback) { - return (SetBackendService) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetBackendService setFields(java.lang.String fields) { - return (SetBackendService) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetBackendService setKey(java.lang.String key) { - return (SetBackendService) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetBackendService setOauthToken(java.lang.String oauthToken) { - return (SetBackendService) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetBackendService setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetBackendService) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetBackendService setQuotaUser(java.lang.String quotaUser) { - return (SetBackendService) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetBackendService setUploadType(java.lang.String uploadType) { - return (SetBackendService) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetBackendService setUploadProtocol(java.lang.String uploadProtocol) { - return (SetBackendService) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetBackendService setUserIp(java.lang.String userIp) { - return (SetBackendService) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -222401,7 +237343,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetBackendService 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 " + @@ -222411,245 +237353,45 @@ public SetBackendService setProject(java.lang.String project) { return this; } - /** - * Name of the TargetTcpProxy resource whose BackendService resource is to be set. - */ - @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; - - /** Name of the TargetTcpProxy resource whose BackendService resource is to be set. - */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; - } - - /** - * Name of the TargetTcpProxy resource whose BackendService resource is to be set. - */ - public SetBackendService setTargetTcpProxy(java.lang.String targetTcpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetTcpProxy = targetTcpProxy; - 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 SetBackendService setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetBackendService set(String parameterName, Object value) { - return (SetBackendService) super.set(parameterName, value); - } - } - /** - * Changes the ProxyHeaderType for TargetTcpProxy. - * - * Create a request for the method "targetTcpProxies.setProxyHeader". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest} - * @return the request - */ - public SetProxyHeader setProxyHeader(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest content) throws java.io.IOException { - SetProxyHeader result = new SetProxyHeader(project, targetTcpProxy, content); - initialize(result); - return result; - } - - public class SetProxyHeader extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader"; - - 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_TCP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the ProxyHeaderType for TargetTcpProxy. - * - * Create a request for the method "targetTcpProxies.setProxyHeader". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

    - * - * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest} - * @since 1.13 - */ - protected SetProxyHeader(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest 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(), - "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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public SetProxyHeader set$Xgafv(java.lang.String $Xgafv) { - return (SetProxyHeader) super.set$Xgafv($Xgafv); - } - - @Override - public SetProxyHeader setAccessToken(java.lang.String accessToken) { - return (SetProxyHeader) super.setAccessToken(accessToken); - } - - @Override - public SetProxyHeader setAlt(java.lang.String alt) { - return (SetProxyHeader) super.setAlt(alt); - } - - @Override - public SetProxyHeader setCallback(java.lang.String callback) { - return (SetProxyHeader) super.setCallback(callback); - } - - @Override - public SetProxyHeader setFields(java.lang.String fields) { - return (SetProxyHeader) super.setFields(fields); - } - - @Override - public SetProxyHeader setKey(java.lang.String key) { - return (SetProxyHeader) super.setKey(key); - } - - @Override - public SetProxyHeader setOauthToken(java.lang.String oauthToken) { - return (SetProxyHeader) super.setOauthToken(oauthToken); - } - - @Override - public SetProxyHeader setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetProxyHeader) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetProxyHeader setQuotaUser(java.lang.String quotaUser) { - return (SetProxyHeader) super.setQuotaUser(quotaUser); - } - - @Override - public SetProxyHeader setUploadType(java.lang.String uploadType) { - return (SetProxyHeader) super.setUploadType(uploadType); - } - - @Override - public SetProxyHeader setUploadProtocol(java.lang.String uploadProtocol) { - return (SetProxyHeader) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetProxyHeader setUserIp(java.lang.String userIp) { - return (SetProxyHeader) super.setUserIp(userIp); - } - - /** Project ID for this request. */ + /** The region for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String region; - /** Project ID for this request. + /** The region for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getRegion() { + return region; } - /** Project ID for this request. */ - public SetProxyHeader setProject(java.lang.String project) { + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { 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])?))"); + 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.project = project; + this.region = region; return this; } - /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; + private java.lang.String resource; - /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. + /** Name or id of the resource for this request. */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; + public java.lang.String getResource() { + return resource; } - /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ - public SetProxyHeader setTargetTcpProxy(java.lang.String targetTcpProxy) { + /** 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(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy 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.targetTcpProxy = targetTcpProxy; + this.resource = resource; return this; } @@ -222697,51 +237439,52 @@ 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 SetProxyHeader setRequestId(java.lang.String requestId) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetProxyHeader set(String parameterName, Object value) { - return (SetProxyHeader) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the TargetVpnGateways collection. + * An accessor for creating requests from the UrlMaps collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.TargetVpnGateways.List request = compute.targetVpnGateways().list(parameters ...)}
    +   *   {@code Compute.UrlMaps.List request = compute.urlMaps().list(parameters ...)}
        * 
    * * @return the resource collection */ - public TargetVpnGateways targetVpnGateways() { - return new TargetVpnGateways(); + public UrlMaps urlMaps() { + return new UrlMaps(); } /** - * The "targetVpnGateways" collection of methods. + * The "urlMaps" collection of methods. */ - public class TargetVpnGateways { + public class UrlMaps { /** - * Retrieves an aggregated list of target VPN gateways. + * Retrieves the list of all UrlMap 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 "targetVpnGateways.aggregatedList". + * Create a request for the method "urlMaps.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 Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -222750,20 +237493,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetVpnGateways"; + private static final String REST_PATH = "projects/{project}/aggregated/urlMaps"; 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])?))"); /** - * Retrieves an aggregated list of target VPN gateways. + * Retrieves the list of all UrlMap 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 "targetVpnGateways.aggregatedList". + * Create a request for the method "urlMaps.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -222771,11 +237515,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetVpnGatewayAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapsAggregatedList.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(), @@ -222854,17 +237598,17 @@ 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. */ + /** 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(), @@ -223202,41 +237946,37 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified target VPN gateway. + * Deletes the specified UrlMap resource. * - * Create a request for the method "targetVpnGateways.delete". + * Create a request for the method "urlMaps.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 for this request. - * @param targetVpnGateway Name of the target VPN gateway to delete. + * @param urlMap Name of the UrlMap resource to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) throws java.io.IOException { - Delete result = new Delete(project, region, targetVpnGateway); + public Delete delete(java.lang.String project, java.lang.String urlMap) throws java.io.IOException { + Delete result = new Delete(project, urlMap); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern TARGET_VPN_GATEWAY_PATTERN = + private final java.util.regex.Pattern URL_MAP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified target VPN gateway. + * Deletes the specified UrlMap resource. * - * Create a request for the method "targetVpnGateways.delete". + * Create a request for the method "urlMaps.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -223244,11 +237984,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param targetVpnGateway Name of the target VPN gateway to delete. + * @param urlMap Name of the UrlMap resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) { + protected Delete(java.lang.String project, java.lang.String urlMap) { 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()) { @@ -223256,16 +237995,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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.targetVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(targetVpnGateway, "Required parameter targetVpnGateway must be specified."); + this.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -223351,45 +238084,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** 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. - */ - public java.lang.String getRegion() { - return 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the target VPN gateway to delete. */ + /** Name of the UrlMap resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetVpnGateway; + private java.lang.String urlMap; - /** Name of the target VPN gateway to delete. + /** Name of the UrlMap resource to delete. */ - public java.lang.String getTargetVpnGateway() { - return targetVpnGateway; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name of the target VPN gateway to delete. */ - public Delete setTargetVpnGateway(java.lang.String targetVpnGateway) { + /** Name of the UrlMap resource to delete. */ + public Delete setUrlMap(java.lang.String urlMap) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetVpnGateway = targetVpnGateway; + this.urlMap = urlMap; return this; } @@ -223448,41 +238160,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified target VPN gateway. + * Returns the specified UrlMap resource. * - * Create a request for the method "targetVpnGateways.get". + * Create a request for the method "urlMaps.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 for this request. - * @param targetVpnGateway Name of the target VPN gateway to return. + * @param urlMap Name of the UrlMap resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) throws java.io.IOException { - Get result = new Get(project, region, targetVpnGateway); + public Get get(java.lang.String project, java.lang.String urlMap) throws java.io.IOException { + Get result = new Get(project, urlMap); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern TARGET_VPN_GATEWAY_PATTERN = + private final java.util.regex.Pattern URL_MAP_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 target VPN gateway. + * Returns the specified UrlMap resource. * - * Create a request for the method "targetVpnGateways.get". + * Create a request for the method "urlMaps.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.

    {@link @@ -223490,28 +238198,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param targetVpnGateway Name of the target VPN gateway to return. + * @param urlMap Name of the UrlMap resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetVpnGateway.class); + protected Get(java.lang.String project, java.lang.String urlMap) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMap.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.targetVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(targetVpnGateway, "Required parameter targetVpnGateway must be specified."); + this.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -223527,63 +238228,219 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + 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; + } + + /** Name of the UrlMap resource to return. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to return. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to return. */ + public Get setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a UrlMap resource in the specified project using the data included in the request. + * + * Create a request for the method "urlMaps.insert". + * + * 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. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps"; + + 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])?))"); + + /** + * Creates a UrlMap resource in the specified project using the data included in the request. + * + * Create a request for the method "urlMaps.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.UrlMap 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(), + "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])?))"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223597,7 +238454,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -223607,100 +238464,112 @@ public Get setProject(java.lang.String project) { return this; } - /** 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. + /** + * 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 getRegion() { - return region; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** 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; - } + /** 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. - /** Name of the target VPN gateway to return. */ - @com.google.api.client.util.Key - private java.lang.String targetVpnGateway; + 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. - /** Name of the target VPN gateway to return. + 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 getTargetVpnGateway() { - return targetVpnGateway; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the target VPN gateway to return. */ - public Get setTargetVpnGateway(java.lang.String targetVpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetVpnGateway = targetVpnGateway; + /** + * 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; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Creates a target VPN gateway in the specified project and region using the data included in the - * request. + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. * - * Create a request for the method "targetVpnGateways.insert". + * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * + * Create a request for the method "urlMaps.invalidateCache". * * 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 InvalidateCache#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.TargetVpnGateway} + * @param urlMap Name of the UrlMap scoping this request. + * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetVpnGateway content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public InvalidateCache invalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) throws java.io.IOException { + InvalidateCache result = new InvalidateCache(project, urlMap, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class InvalidateCache extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/invalidateCache"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Creates a target VPN gateway in the specified project and region using the data included in the - * request. + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. * - * Create a request for the method "targetVpnGateways.insert". + * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * + * Create a request for the method "urlMaps.invalidateCache". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link InvalidateCache#execute()} method to invoke the remote operation. + *

    {@link InvalidateCache#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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.TargetVpnGateway} + * @param urlMap Name of the UrlMap scoping this request. + * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetVpnGateway content) { + protected InvalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule 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()) { @@ -223708,72 +238577,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap 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])?"); + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap 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 InvalidateCache set$Xgafv(java.lang.String $Xgafv) { + return (InvalidateCache) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public InvalidateCache setAccessToken(java.lang.String accessToken) { + return (InvalidateCache) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public InvalidateCache setAlt(java.lang.String alt) { + return (InvalidateCache) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public InvalidateCache setCallback(java.lang.String callback) { + return (InvalidateCache) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public InvalidateCache setFields(java.lang.String fields) { + return (InvalidateCache) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public InvalidateCache setKey(java.lang.String key) { + return (InvalidateCache) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public InvalidateCache setOauthToken(java.lang.String oauthToken) { + return (InvalidateCache) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InvalidateCache) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public InvalidateCache setQuotaUser(java.lang.String quotaUser) { + return (InvalidateCache) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public InvalidateCache setUploadType(java.lang.String uploadType) { + return (InvalidateCache) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { + return (InvalidateCache) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public InvalidateCache setUserIp(java.lang.String userIp) { + return (InvalidateCache) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223787,7 +238656,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public InvalidateCache 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 " + @@ -223797,24 +238666,24 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the UrlMap scoping this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String urlMap; - /** Name of the region for this request. + /** Name of the UrlMap scoping this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** Name of the UrlMap scoping this request. */ + public InvalidateCache setUrlMap(java.lang.String urlMap) { 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])?"); + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.urlMap = urlMap; return this; } @@ -223862,48 +238731,44 @@ 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 InvalidateCache 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 InvalidateCache set(String parameterName, Object value) { + return (InvalidateCache) super.set(parameterName, value); } } /** - * Retrieves a list of target VPN gateways available to the specified project and region. + * Retrieves the list of UrlMap resources available to the specified project. * - * Create a request for the method "targetVpnGateways.list". + * Create a request for the method "urlMaps.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. * @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 List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; + private static final String REST_PATH = "projects/{project}/global/urlMaps"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves a list of target VPN gateways available to the specified project and region. + * Retrieves the list of UrlMap resources available to the specified project. * - * Create a request for the method "targetVpnGateways.list". + * Create a request for the method "urlMaps.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -223911,23 +238776,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for 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.TargetVpnGatewayList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapList.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 @@ -224021,27 +238879,6 @@ public List setProject(java.lang.String project) { return this; } - /** 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. - */ - public java.lang.String getRegion() { - return 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 " + - "[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 @@ -224312,137 +239149,125 @@ public List set(String parameterName, Object value) { } } /** - * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources - * documentation. + * Patches the specified UrlMap 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 "targetVpnGateways.setLabels". + * Create a request for the method "urlMaps.patch". * * 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 Patch#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 urlMap Name of the UrlMap resource to patch. + * @param content the {@link com.google.api.services.compute.model.UrlMap} * @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 Patch patch(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { + Patch result = new Patch(project, urlMap, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern URL_MAP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources - * documentation. + * Patches the specified UrlMap 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 "targetVpnGateways.setLabels". + * Create a request for the method "urlMaps.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * 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 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 urlMap Name of the UrlMap resource to patch. + * @param content the {@link com.google.api.services.compute.model.UrlMap} * @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 Patch(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap 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(), "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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap 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(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -224456,7 +239281,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels 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 " + @@ -224466,24 +239291,220 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the UrlMap resource to patch. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String urlMap; - /** The region for this request. + /** Name of the UrlMap resource to patch. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getUrlMap() { + return urlMap; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { + /** Name of the UrlMap resource to patch. */ + public Patch setUrlMap(java.lang.String urlMap) { 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])?"); + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.urlMap = urlMap; + 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "urlMaps.testIamPermissions". + * + * 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. + * + * @param project Project ID 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 TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{resource}/testIamPermissions"; + + 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 RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "urlMaps.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 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 TestIamPermissions(java.lang.String project, 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(), + "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.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); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) 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 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 " + + "(?:(?:[-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; } @@ -224498,16 +239519,183 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; } + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates the specified UrlMap resource with the data included in the request. + * + * Create a request for the method "urlMaps.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 urlMap Name of the UrlMap resource to update. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { + Update result = new Update(project, urlMap, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified UrlMap resource with the data included in the request. + * + * Create a request for the method "urlMaps.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param urlMap Name of the UrlMap resource to update. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap 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(), + "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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap 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); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 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 " + + "(?:(?:[-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 UrlMap resource to update. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to update. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to update. */ + public Update setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + 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 @@ -224552,52 +239740,221 @@ 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 Update 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 Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + /** + * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be + * run. Calling this method does NOT create the UrlMap. + * + * Create a request for the method "urlMaps.validate". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Validate#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param urlMap Name of the UrlMap resource to be validated as. + * @param content the {@link com.google.api.services.compute.model.UrlMapsValidateRequest} + * @return the request + */ + public Validate validate(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMapsValidateRequest content) throws java.io.IOException { + Validate result = new Validate(project, urlMap, content); + initialize(result); + return result; + } + + public class Validate extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/validate"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be + * run. Calling this method does NOT create the UrlMap. + * + * Create a request for the method "urlMaps.validate". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Validate#execute()} method to invoke the remote operation.

    + * {@link + * Validate#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 urlMap Name of the UrlMap resource to be validated as. + * @param content the {@link com.google.api.services.compute.model.UrlMapsValidateRequest} + * @since 1.13 + */ + protected Validate(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMapsValidateRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.UrlMapsValidateResponse.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Validate set$Xgafv(java.lang.String $Xgafv) { + return (Validate) super.set$Xgafv($Xgafv); + } + + @Override + public Validate setAccessToken(java.lang.String accessToken) { + return (Validate) super.setAccessToken(accessToken); + } + + @Override + public Validate setAlt(java.lang.String alt) { + return (Validate) super.setAlt(alt); + } + + @Override + public Validate setCallback(java.lang.String callback) { + return (Validate) super.setCallback(callback); + } + + @Override + public Validate setFields(java.lang.String fields) { + return (Validate) super.setFields(fields); + } + + @Override + public Validate setKey(java.lang.String key) { + return (Validate) super.setKey(key); + } + + @Override + public Validate setOauthToken(java.lang.String oauthToken) { + return (Validate) super.setOauthToken(oauthToken); + } + + @Override + public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Validate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Validate setQuotaUser(java.lang.String quotaUser) { + return (Validate) super.setQuotaUser(quotaUser); + } + + @Override + public Validate setUploadType(java.lang.String uploadType) { + return (Validate) super.setUploadType(uploadType); + } + + @Override + public Validate setUploadProtocol(java.lang.String uploadProtocol) { + return (Validate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Validate setUserIp(java.lang.String userIp) { + return (Validate) 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 Validate 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 UrlMap resource to be validated as. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to be validated as. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to be validated as. */ + public Validate setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + @Override + public Validate set(String parameterName, Object value) { + return (Validate) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the UrlMaps collection. + * An accessor for creating requests from the VpnGateways collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.UrlMaps.List request = compute.urlMaps().list(parameters ...)}
    +   *   {@code Compute.VpnGateways.List request = compute.vpnGateways().list(parameters ...)}
        * 
    * * @return the resource collection */ - public UrlMaps urlMaps() { - return new UrlMaps(); + public VpnGateways vpnGateways() { + return new VpnGateways(); } /** - * The "urlMaps" collection of methods. + * The "vpnGateways" collection of methods. */ - public class UrlMaps { + public class VpnGateways { /** - * Retrieves the list of all UrlMap resources, regional and global, available to the specified - * project. + * Retrieves an aggregated list of VPN gateways. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "urlMaps.aggregatedList". + * Create a request for the method "vpnGateways.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 { @@ -224606,21 +239963,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/urlMaps"; + private static final String REST_PATH = "projects/{project}/aggregated/vpnGateways"; 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])?))"); /** - * Retrieves the list of all UrlMap resources, regional and global, available to the specified - * project. + * Retrieves an aggregated list of VPN gateways. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "urlMaps.aggregatedList". + * Create a request for the method "vpnGateways.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -224628,11 +239984,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapsAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnGatewayAggregatedList.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(), @@ -224711,17 +240067,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -225059,37 +240415,41 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified UrlMap resource. + * Deletes the specified VPN gateway. * - * Create a request for the method "urlMaps.delete". + * Create a request for the method "vpnGateways.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 urlMap Name of the UrlMap resource to delete. + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String urlMap) throws java.io.IOException { - Delete result = new Delete(project, urlMap); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { + Delete result = new Delete(project, region, vpnGateway); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; 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 URL_MAP_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern VPN_GATEWAY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified UrlMap resource. + * Deletes the specified VPN gateway. * - * Create a request for the method "urlMaps.delete". + * Create a request for the method "vpnGateways.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -225097,10 +240457,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to delete. + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String urlMap) { + protected Delete(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { 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()) { @@ -225108,10 +240469,16 @@ protected Delete(java.lang.String project, java.lang.String urlMap) { "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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -225197,24 +240564,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the UrlMap resource to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String region; - /** Name of the UrlMap resource to delete. + /** Name of the region for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRegion() { + return region; } - /** Name of the UrlMap resource to delete. */ - public Delete setUrlMap(java.lang.String urlMap) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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 VPN gateway to delete. */ + @com.google.api.client.util.Key + private java.lang.String vpnGateway; + + /** Name of the VPN gateway to delete. + */ + public java.lang.String getVpnGateway() { + return vpnGateway; + } + + /** Name of the VPN gateway to delete. */ + public Delete setVpnGateway(java.lang.String vpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.urlMap = urlMap; + this.vpnGateway = vpnGateway; return this; } @@ -225273,37 +240661,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified UrlMap resource. + * Returns the specified VPN gateway. * - * Create a request for the method "urlMaps.get". + * Create a request for the method "vpnGateways.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 urlMap Name of the UrlMap resource to return. + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String urlMap) throws java.io.IOException { - Get result = new Get(project, urlMap); + public Get get(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { + Get result = new Get(project, region, vpnGateway); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; 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 URL_MAP_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern VPN_GATEWAY_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 UrlMap resource. + * Returns the specified VPN gateway. * - * Create a request for the method "urlMaps.get". + * Create a request for the method "vpnGateways.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.

    {@link @@ -225311,21 +240703,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to return. + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String urlMap) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMap.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnGateway.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -225421,24 +240820,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the UrlMap resource to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String region; - /** Name of the UrlMap resource to return. + /** Name of the region for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRegion() { + return region; } - /** Name of the UrlMap resource to return. */ - public Get setUrlMap(java.lang.String urlMap) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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 VPN gateway to return. */ + @com.google.api.client.util.Key + private java.lang.String vpnGateway; + + /** Name of the VPN gateway to return. + */ + public java.lang.String getVpnGateway() { + return vpnGateway; + } + + /** Name of the VPN gateway to return. */ + public Get setVpnGateway(java.lang.String vpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.urlMap = urlMap; + this.vpnGateway = vpnGateway; return this; } @@ -225448,112 +240868,143 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a UrlMap resource in the specified project using the data included in the request. + * Returns the status for the specified VPN gateway. * - * Create a request for the method "urlMaps.insert". + * Create a request for the method "vpnGateways.getStatus". * * 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 GetStatus#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { - Insert result = new Insert(project, content); + public GetStatus getStatus(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { + GetStatus result = new GetStatus(project, region, vpnGateway); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class GetStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern VPN_GATEWAY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a UrlMap resource in the specified project using the data included in the request. + * Returns the status for the specified VPN gateway. * - * Create a request for the method "urlMaps.insert". + * Create a request for the method "vpnGateways.getStatus". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link GetStatus#execute()} method to invoke the remote operation.

    + * {@link + * GetStatus#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 content the {@link com.google.api.services.compute.model.UrlMap} + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.UrlMap content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetStatus(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnGatewaysGetStatusResponse.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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway 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 GetStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetStatus) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetStatus setAccessToken(java.lang.String accessToken) { + return (GetStatus) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetStatus setAlt(java.lang.String alt) { + return (GetStatus) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetStatus setCallback(java.lang.String callback) { + return (GetStatus) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetStatus setFields(java.lang.String fields) { + return (GetStatus) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetStatus setKey(java.lang.String key) { + return (GetStatus) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetStatus setOauthToken(java.lang.String oauthToken) { + return (GetStatus) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetStatus) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetStatus setQuotaUser(java.lang.String quotaUser) { + return (GetStatus) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public GetStatus setUploadType(java.lang.String uploadType) { + return (GetStatus) super.setUploadType(uploadType); + } + + @Override + public GetStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetStatus) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetStatus setUserIp(java.lang.String userIp) { + return (GetStatus) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -225567,7 +241018,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public GetStatus 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 " + @@ -225577,112 +241028,99 @@ public Insert setProject(java.lang.String project) { 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 region for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** 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. + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } - 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. + /** Name of the region for this request. */ + public GetStatus 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 request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the VPN gateway to return. */ + @com.google.api.client.util.Key + private java.lang.String vpnGateway; + + /** Name of the VPN gateway to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getVpnGateway() { + return vpnGateway; } - /** - * 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; + /** Name of the VPN gateway to return. */ + public GetStatus setVpnGateway(java.lang.String vpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vpnGateway = vpnGateway; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetStatus set(String parameterName, Object value) { + return (GetStatus) super.set(parameterName, value); } } /** - * Initiates a cache invalidation operation, invalidating the specified path, scoped to the - * specified UrlMap. - * - * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * Creates a VPN gateway in the specified project and region using the data included in the request. * - * Create a request for the method "urlMaps.invalidateCache". + * Create a request for the method "vpnGateways.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link InvalidateCache#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 urlMap Name of the UrlMap scoping this request. - * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.VpnGateway} * @return the request */ - public InvalidateCache invalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) throws java.io.IOException { - InvalidateCache result = new InvalidateCache(project, urlMap, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnGateway content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class InvalidateCache extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/invalidateCache"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Initiates a cache invalidation operation, invalidating the specified path, scoped to the - * specified UrlMap. - * - * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * Creates a VPN gateway in the specified project and region using the data included in the + * request. * - * Create a request for the method "urlMaps.invalidateCache". + * Create a request for the method "vpnGateways.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link InvalidateCache#execute()} method to invoke the remote operation. - *

    {@link InvalidateCache#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 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 urlMap Name of the UrlMap scoping this request. - * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.VpnGateway} * @since 1.13 */ - protected InvalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnGateway 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()) { @@ -225690,72 +241128,72 @@ protected InvalidateCache(java.lang.String project, java.lang.String urlMap, com "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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap 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(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { - return (InvalidateCache) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public InvalidateCache setAccessToken(java.lang.String accessToken) { - return (InvalidateCache) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public InvalidateCache setAlt(java.lang.String alt) { - return (InvalidateCache) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public InvalidateCache setCallback(java.lang.String callback) { - return (InvalidateCache) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public InvalidateCache setFields(java.lang.String fields) { - return (InvalidateCache) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public InvalidateCache setKey(java.lang.String key) { - return (InvalidateCache) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public InvalidateCache setOauthToken(java.lang.String oauthToken) { - return (InvalidateCache) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvalidateCache) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public InvalidateCache setQuotaUser(java.lang.String quotaUser) { - return (InvalidateCache) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public InvalidateCache setUploadType(java.lang.String uploadType) { - return (InvalidateCache) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { - return (InvalidateCache) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public InvalidateCache setUserIp(java.lang.String userIp) { - return (InvalidateCache) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -225769,7 +241207,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public InvalidateCache 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 " + @@ -225779,24 +241217,24 @@ public InvalidateCache setProject(java.lang.String project) { return this; } - /** Name of the UrlMap scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String region; - /** Name of the UrlMap scoping this request. + /** Name of the region for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRegion() { + return region; } - /** Name of the UrlMap scoping this request. */ - public InvalidateCache setUrlMap(java.lang.String urlMap) { + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap 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(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.urlMap = urlMap; + this.region = region; return this; } @@ -225844,44 +241282,48 @@ 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 InvalidateCache setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public InvalidateCache set(String parameterName, Object value) { - return (InvalidateCache) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves the list of UrlMap resources available to the specified project. + * Retrieves a list of VPN gateways available to the specified project and region. * - * Create a request for the method "urlMaps.list". + * Create a request for the method "vpnGateways.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. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; 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 REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Retrieves the list of UrlMap resources available to the specified project. + * Retrieves a list of VPN gateways available to the specified project and region. * - * Create a request for the method "urlMaps.list". + * Create a request for the method "vpnGateways.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -225889,16 +241331,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. + * @param region Name of the region for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapList.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnGatewayList.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 @@ -225992,6 +241441,27 @@ public List setProject(java.lang.String project) { return this; } + /** 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. + */ + public java.lang.String getRegion() { + return 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 " + + "[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 @@ -226262,125 +241732,137 @@ public List set(String parameterName, Object value) { } } /** - * Patches the specified UrlMap resource with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "urlMaps.patch". + * Create a request for the method "vpnGateways.setLabels". * * 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 SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to patch. - * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @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 Patch patch(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { - Patch result = new Patch(project, urlMap, 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 Patch extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels"; 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 URL_MAP_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified UrlMap resource with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "urlMaps.patch". + * Create a request for the method "vpnGateways.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    + * {@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 urlMap Name of the UrlMap resource to patch. - * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @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 Patch(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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()) { 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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 Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -226394,7 +241876,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch 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 " + @@ -226404,240 +241886,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the UrlMap resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to patch. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to patch. */ - public Patch setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Updates the specified UrlMap resource with the data included in the request. - * - * Create a request for the method "urlMaps.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 urlMap Name of the UrlMap resource to update. - * @param content the {@link com.google.api.services.compute.model.UrlMap} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { - Update result = new Update(project, urlMap, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified UrlMap resource with the data included in the request. - * - * Create a request for the method "urlMaps.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    - * - * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to update. - * @param content the {@link com.google.api.services.compute.model.UrlMap} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap 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(), - "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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap 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); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); - } - - /** Project ID for this request. */ + /** The region for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String region; - /** Project ID for this request. + /** The region for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getRegion() { + return region; } - /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { 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])?))"); + 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.project = project; + this.region = region; return this; } - /** Name of the UrlMap resource to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String resource; - /** Name of the UrlMap resource to update. + /** Name or id of the resource for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getResource() { + return resource; } - /** Name of the UrlMap resource to update. */ - public Update setUrlMap(java.lang.String urlMap) { + /** 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap 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.urlMap = urlMap; + this.resource = resource; return this; } @@ -226685,137 +241972,146 @@ 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 Update setRequestId(java.lang.String requestId) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be - * run. Calling this method does NOT create the UrlMap. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "urlMaps.validate". + * Create a request for the method "vpnGateways.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Validate#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 urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.model.UrlMapsValidateRequest} + * @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 Validate validate(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMapsValidateRequest content) throws java.io.IOException { - Validate result = new Validate(project, urlMap, content); + 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 Validate extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/validate"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions"; 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 URL_MAP_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be - * run. Calling this method does NOT create the UrlMap. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "urlMaps.validate". + * Create a request for the method "vpnGateways.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Validate#execute()} method to invoke the remote operation.

    - * {@link - * Validate#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 urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.model.UrlMapsValidateRequest} + * @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 Validate(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMapsValidateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.UrlMapsValidateResponse.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(), "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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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 Validate set$Xgafv(java.lang.String $Xgafv) { - return (Validate) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Validate setAccessToken(java.lang.String accessToken) { - return (Validate) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Validate setAlt(java.lang.String alt) { - return (Validate) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Validate setCallback(java.lang.String callback) { - return (Validate) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Validate setFields(java.lang.String fields) { - return (Validate) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Validate setKey(java.lang.String key) { - return (Validate) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Validate setOauthToken(java.lang.String oauthToken) { - return (Validate) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Validate) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Validate setQuotaUser(java.lang.String quotaUser) { - return (Validate) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Validate setUploadType(java.lang.String uploadType) { - return (Validate) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Validate setUploadProtocol(java.lang.String uploadProtocol) { - return (Validate) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Validate setUserIp(java.lang.String userIp) { - return (Validate) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -226829,7 +242125,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Validate 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 " + @@ -226839,62 +242135,83 @@ public Validate setProject(java.lang.String project) { return this; } - /** Name of the UrlMap resource to be validated as. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String region; - /** Name of the UrlMap resource to be validated as. + /** The name of the region for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRegion() { + return region; } - /** Name of the UrlMap resource to be validated as. */ - public Validate setUrlMap(java.lang.String urlMap) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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 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 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.urlMap = urlMap; + this.resource = resource; return this; } @Override - public Validate set(String parameterName, Object value) { - return (Validate) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the VpnGateways collection. + * An accessor for creating requests from the VpnTunnels collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.VpnGateways.List request = compute.vpnGateways().list(parameters ...)}
    +   *   {@code Compute.VpnTunnels.List request = compute.vpnTunnels().list(parameters ...)}
        * 
    * * @return the resource collection */ - public VpnGateways vpnGateways() { - return new VpnGateways(); + public VpnTunnels vpnTunnels() { + return new VpnTunnels(); } /** - * The "vpnGateways" collection of methods. + * The "vpnTunnels" collection of methods. */ - public class VpnGateways { + public class VpnTunnels { /** - * Retrieves an aggregated list of VPN gateways. + * Retrieves an aggregated list of VPN tunnels. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "vpnGateways.aggregatedList". + * Create a request for the method "vpnTunnels.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. @@ -226908,20 +242225,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/vpnGateways"; + private static final String REST_PATH = "projects/{project}/aggregated/vpnTunnels"; 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])?))"); /** - * Retrieves an aggregated list of VPN gateways. + * Retrieves an aggregated list of VPN tunnels. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "vpnGateways.aggregatedList". + * Create a request for the method "vpnTunnels.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -226933,7 +242250,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; 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])?))"); @@ -227388,13 +242705,13 @@ public class Delete extends ComputeRequest {@link @@ -227403,10 +242720,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; 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])?))"); @@ -227634,13 +242951,13 @@ public class Get extends ComputeRequest {@link @@ -227649,11 +242966,11 @@ public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus"; - - 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern VPN_GATEWAY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the status for the specified VPN gateway. - * - * Create a request for the method "vpnGateways.getStatus". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetStatus#execute()} method to invoke the remote operation.

    - * {@link - * GetStatus#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 vpnGateway Name of the VPN gateway to return. - * @since 1.13 - */ - protected GetStatus(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnGatewaysGetStatusResponse.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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), - "Parameter vpnGateway 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 GetStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetStatus) super.set$Xgafv($Xgafv); - } - - @Override - public GetStatus setAccessToken(java.lang.String accessToken) { - return (GetStatus) super.setAccessToken(accessToken); - } - - @Override - public GetStatus setAlt(java.lang.String alt) { - return (GetStatus) super.setAlt(alt); - } - - @Override - public GetStatus setCallback(java.lang.String callback) { - return (GetStatus) super.setCallback(callback); - } - - @Override - public GetStatus setFields(java.lang.String fields) { - return (GetStatus) super.setFields(fields); - } - - @Override - public GetStatus setKey(java.lang.String key) { - return (GetStatus) super.setKey(key); - } - - @Override - public GetStatus setOauthToken(java.lang.String oauthToken) { - return (GetStatus) super.setOauthToken(oauthToken); - } - - @Override - public GetStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetStatus) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetStatus setQuotaUser(java.lang.String quotaUser) { - return (GetStatus) super.setQuotaUser(quotaUser); - } - - @Override - public GetStatus setUploadType(java.lang.String uploadType) { - return (GetStatus) super.setUploadType(uploadType); - } - - @Override - public GetStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetStatus) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetStatus setUserIp(java.lang.String userIp) { - return (GetStatus) 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 GetStatus 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public GetStatus 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 VPN gateway to return. */ - @com.google.api.client.util.Key - private java.lang.String vpnGateway; - - /** Name of the VPN gateway to return. - */ - public java.lang.String getVpnGateway() { - return vpnGateway; - } - - /** Name of the VPN gateway to return. */ - public GetStatus setVpnGateway(java.lang.String vpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), - "Parameter vpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vpnGateway = vpnGateway; - return this; - } - - @Override - public GetStatus set(String parameterName, Object value) { - return (GetStatus) super.set(parameterName, value); - } - } - /** - * Creates a VPN gateway in the specified project and region using the data included in the request. + * Creates a VpnTunnel resource in the specified project and region using the data included in the + * request. * - * Create a request for the method "vpnGateways.insert". + * Create a request for the method "vpnTunnels.insert". * * 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. * * @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.VpnGateway} + * @param content the {@link com.google.api.services.compute.model.VpnTunnel} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnGateway content) throws java.io.IOException { + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnTunnel content) throws java.io.IOException { Insert result = new Insert(project, region, content); initialize(result); return result; @@ -228041,7 +243151,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; 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])?))"); @@ -228050,10 +243160,10 @@ public class Insert extends ComputeRequest {@link @@ -228062,10 +243172,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; 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])?))"); @@ -228266,9 +243376,9 @@ public class List extends ComputeRequest {@link @@ -228280,7 +243390,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels"; 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])?))"); @@ -228711,10 +243821,10 @@ public class SetLabels extends ComputeRequest @@ -228927,736 +244037,59 @@ public SetLabels set(String parameterName, Object value) { return (SetLabels) super.set(parameterName, value); } } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "vpnGateways.testIamPermissions". - * - * 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. - * - * @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 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 TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions"; - - 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "vpnGateways.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * 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 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 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(), - "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.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); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) 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 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 " + - "(?:(?:[-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 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 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 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; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } } /** - * An accessor for creating requests from the VpnTunnels collection. + * An accessor for creating requests from the WireGroups collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.VpnTunnels.List request = compute.vpnTunnels().list(parameters ...)}
    +   *   {@code Compute.WireGroups.List request = compute.wireGroups().list(parameters ...)}
        * 
    * - * @return the resource collection - */ - public VpnTunnels vpnTunnels() { - return new VpnTunnels(); - } - - /** - * The "vpnTunnels" collection of methods. - */ - public class VpnTunnels { - - /** - * Retrieves an aggregated list of VPN tunnels. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "vpnTunnels.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 Project ID for 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 { - - private static final String REST_PATH = "projects/{project}/aggregated/vpnTunnels"; - - 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])?))"); - - /** - * Retrieves an aggregated list of VPN tunnels. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "vpnTunnels.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * 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. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnTunnelAggregatedList.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])?))"); - } - } - - @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @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); - } - - /** 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 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 " + - "(?:(?:[-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; - } - - /** - * 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 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 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 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 - * 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. - * - * 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 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; - } + * @return the resource collection + */ + public WireGroups wireGroups() { + return new WireGroups(); + } + + /** + * The "wireGroups" collection of methods. + */ + public class WireGroups { - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } /** - * Deletes the specified VpnTunnel resource. + * Deletes the specified wire group in the given scope. * - * Create a request for the method "vpnTunnels.delete". + * Create a request for the method "wireGroups.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 for this request. - * @param vpnTunnel Name of the VpnTunnel resource to delete. + * @param crossSiteNetwork + * @param wireGroup Name of the wire group resource to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) throws java.io.IOException { - Delete result = new Delete(project, region, vpnTunnel); + public Delete delete(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { + Delete result = new Delete(project, crossSiteNetwork, wireGroup); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern VPN_TUNNEL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified VpnTunnel resource. + * Deletes the specified wire group in the given scope. * - * Create a request for the method "vpnTunnels.delete". + * Create a request for the method "wireGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -229664,11 +244097,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param vpnTunnel Name of the VpnTunnel resource to delete. + * @param crossSiteNetwork + * @param wireGroup Name of the wire group resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) { + protected Delete(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) { 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()) { @@ -229676,18 +244109,8 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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.vpnTunnel = com.google.api.client.util.Preconditions.checkNotNull(vpnTunnel, "Required parameter vpnTunnel must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), - "Parameter vpnTunnel must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); } @Override @@ -229771,45 +244194,34 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** Name of the region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + public Delete setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } - /** Name of the VpnTunnel resource to delete. */ + /** Name of the wire group resource to delete. */ @com.google.api.client.util.Key - private java.lang.String vpnTunnel; + private java.lang.String wireGroup; - /** Name of the VpnTunnel resource to delete. + /** Name of the wire group resource to delete. */ - public java.lang.String getVpnTunnel() { - return vpnTunnel; + public java.lang.String getWireGroup() { + return wireGroup; } - /** Name of the VpnTunnel resource to delete. */ - public Delete setVpnTunnel(java.lang.String vpnTunnel) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), - "Parameter vpnTunnel must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vpnTunnel = vpnTunnel; + /** Name of the wire group resource to delete. */ + public Delete setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; return this; } @@ -229824,7 +244236,7 @@ public Delete setVpnTunnel(java.lang.String vpnTunnel) { * 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). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -229838,7 +244250,7 @@ public Delete setVpnTunnel(java.lang.String vpnTunnel) { 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). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -229855,7 +244267,7 @@ public java.lang.String getRequestId() { * 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). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -229868,41 +244280,35 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified VpnTunnel resource. + * Gets the specified wire group resource in the given scope. * - * Create a request for the method "vpnTunnels.get". + * Create a request for the method "wireGroups.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 for this request. - * @param vpnTunnel Name of the VpnTunnel resource to return. + * @param crossSiteNetwork + * @param wireGroup Name of the wire group resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) throws java.io.IOException { - Get result = new Get(project, region, vpnTunnel); + public Get get(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { + Get result = new Get(project, crossSiteNetwork, wireGroup); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern VPN_TUNNEL_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 VpnTunnel resource. + * Gets the specified wire group resource in the given scope. * - * Create a request for the method "vpnTunnels.get". + * Create a request for the method "wireGroups.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.

    {@link @@ -229910,30 +244316,20 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param vpnTunnel Name of the VpnTunnel resource to return. + * @param crossSiteNetwork + * @param wireGroup Name of the wire group resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnTunnel.class); + protected Get(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.WireGroup.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.vpnTunnel = com.google.api.client.util.Preconditions.checkNotNull(vpnTunnel, "Required parameter vpnTunnel must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), - "Parameter vpnTunnel must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); } @Override @@ -230027,45 +244423,34 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** Name of the region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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; + public Get setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } - /** Name of the VpnTunnel resource to return. */ + /** Name of the wire group resource to return. */ @com.google.api.client.util.Key - private java.lang.String vpnTunnel; + private java.lang.String wireGroup; - /** Name of the VpnTunnel resource to return. + /** Name of the wire group resource to return. */ - public java.lang.String getVpnTunnel() { - return vpnTunnel; + public java.lang.String getWireGroup() { + return wireGroup; } - /** Name of the VpnTunnel resource to return. */ - public Get setVpnTunnel(java.lang.String vpnTunnel) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), - "Parameter vpnTunnel must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vpnTunnel = vpnTunnel; + /** Name of the wire group resource to return. */ + public Get setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; return this; } @@ -230075,40 +244460,37 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a VpnTunnel resource in the specified project and region using the data included in the - * request. + * Creates a wire group in the specified project in the given scope using the parameters that are + * included in the request. * - * Create a request for the method "vpnTunnels.insert". + * Create a request for the method "wireGroups.insert". * * 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. * * @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.VpnTunnel} + * @param crossSiteNetwork + * @param content the {@link com.google.api.services.compute.model.WireGroup} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnTunnel content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Insert insert(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.model.WireGroup content) throws java.io.IOException { + Insert result = new Insert(project, crossSiteNetwork, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Creates a VpnTunnel resource in the specified project and region using the data included in the - * request. + * Creates a wire group in the specified project in the given scope using the parameters that are + * included in the request. * - * Create a request for the method "vpnTunnels.insert". + * Create a request for the method "wireGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

    {@link @@ -230116,11 +244498,11 @@ public class Insert extends ComputeRequest * * @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.VpnTunnel} + * @param crossSiteNetwork + * @param content the {@link com.google.api.services.compute.model.WireGroup} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnTunnel content) { + protected Insert(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.model.WireGroup 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()) { @@ -230128,12 +244510,7 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); } @Override @@ -230217,24 +244594,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** Name of the region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + public Insert setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } @@ -230249,7 +244620,7 @@ public Insert setRegion(java.lang.String region) { * 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). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -230263,7 +244634,7 @@ public Insert setRegion(java.lang.String region) { 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). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -230280,50 +244651,65 @@ public java.lang.String getRequestId() { * 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). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** [Input Only] Validate the new configuration, but don't create it. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /**[ Input Only] Validate the new configuration, but don't create it. + [ + + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** [Input Only] Validate the new configuration, but don't create it. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of VpnTunnel resources contained in the specified project and region. + * Lists the wire groups for a project in the given scope. * - * Create a request for the method "vpnTunnels.list". + * Create a request for the method "wireGroups.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 crossSiteNetwork * @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 List list(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { + List result = new List(project, crossSiteNetwork); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves a list of VpnTunnel resources contained in the specified project and region. + * Lists the wire groups for a project in the given scope. * - * Create a request for the method "vpnTunnels.list". + * Create a request for the method "wireGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -230331,23 +244717,18 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param crossSiteNetwork * @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.VpnTunnelList.class); + protected List(java.lang.String project, java.lang.String crossSiteNetwork) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.WireGroupList.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); } @Override @@ -230441,24 +244822,18 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** Name of the region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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; + public List setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } @@ -230732,137 +245107,120 @@ public List set(String parameterName, Object value) { } } /** - * Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources - * documentation. + * Updates the specified wire group resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "vpnTunnels.setLabels". + * Create a request for the method "wireGroups.patch". * * 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 Patch#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 crossSiteNetwork + * @param wireGroup Name of the WireGroups resource to patch. + * @param content the {@link com.google.api.services.compute.model.WireGroup} * @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 Patch patch(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup, com.google.api.services.compute.model.WireGroup content) throws java.io.IOException { + Patch result = new Patch(project, crossSiteNetwork, wireGroup, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; 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 REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources - * documentation. + * Updates the specified wire group resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "vpnTunnels.setLabels". + * Create a request for the method "wireGroups.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * 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 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 crossSiteNetwork + * @param wireGroup Name of the WireGroups resource to patch. + * @param content the {@link com.google.api.services.compute.model.WireGroup} * @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 Patch(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup, com.google.api.services.compute.model.WireGroup 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(), "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.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}"); - } + this.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -230876,7 +245234,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels 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 " + @@ -230886,45 +245244,34 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** The region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + public Patch setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } - /** Name or id of the resource for this request. */ + /** Name of the WireGroups resource to patch. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String wireGroup; - /** Name or id of the resource for this request. + /** Name of the WireGroups resource to patch. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getWireGroup() { + return wireGroup; } - /** 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; + /** Name of the WireGroups resource to patch. */ + public Patch setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; return this; } @@ -230939,7 +245286,7 @@ public SetLabels setResource(java.lang.String resource) { * 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). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -230953,7 +245300,7 @@ public SetLabels setResource(java.lang.String resource) { 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). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -230970,71 +245317,112 @@ public java.lang.String getRequestId() { * 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). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public SetLabels setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** [Input Only] Validate the new configuration, but don't update it. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /**[ Input Only] Validate the new configuration, but don't update it. + [ + + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** [Input Only] Validate the new configuration, but don't update it. */ + public Patch setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the WireGroups collection. + * An accessor for creating requests from the ZoneOperations collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.WireGroups.List request = compute.wireGroups().list(parameters ...)}
    +   *   {@code Compute.ZoneOperations.List request = compute.zoneOperations().list(parameters ...)}
        * 
    * * @return the resource collection */ - public WireGroups wireGroups() { - return new WireGroups(); + public ZoneOperations zoneOperations() { + return new ZoneOperations(); } /** - * The "wireGroups" collection of methods. + * The "zoneOperations" collection of methods. */ - public class WireGroups { + public class ZoneOperations { /** - * Deletes the specified wire group in the given scope. + * Deletes the specified zone-specific Operations resource. * - * Create a request for the method "wireGroups.delete". + * Create a request for the method "zoneOperations.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 crossSiteNetwork - * @param wireGroup Name of the wire group resource to delete. + * @param zone Name of the zone for this request. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { - Delete result = new Delete(project, crossSiteNetwork, wireGroup); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { + Delete result = new Delete(project, zone, operation); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Deletes the specified wire group in the given scope. + * Deletes the specified zone-specific Operations resource. * - * Create a request for the method "wireGroups.delete". + * Create a request for the method "zoneOperations.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -231042,20 +245430,31 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param crossSiteNetwork - * @param wireGroup Name of the wire group resource to delete. + * @param zone Name of the zone for this request. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String operation) { + super(Compute.this, "DELETE", REST_PATH, null, Void.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); + 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -231139,83 +245538,49 @@ public Delete setProject(java.lang.String project) { return this; } + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public Delete setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; - return this; - } - - /** Name of the wire group resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String wireGroup; + private java.lang.String zone; - /** Name of the wire group resource to delete. + /** Name of the zone for this request. */ - public java.lang.String getWireGroup() { - return wireGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the wire group resource to delete. */ - public Delete setWireGroup(java.lang.String wireGroup) { - this.wireGroup = wireGroup; + /** Name of the zone for this request. */ + public Delete 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; } /** - * 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). end_interface: MixerMutationRequestBuilder + * Name of the Operations resource to delete, or its unique numeric identifier. */ @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 operation; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + /** Name of the Operations resource to delete, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * 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). end_interface: MixerMutationRequestBuilder + * Name of the Operations resource to delete, or its unique numeric identifier. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public Delete setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; return this; } @@ -231225,35 +245590,42 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets the specified wire group resource in the given scope. + * Retrieves the specified zone-specific Operations resource. * - * Create a request for the method "wireGroups.get". + * Create a request for the method "zoneOperations.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 crossSiteNetwork - * @param wireGroup Name of the wire group resource to return. + * @param zone Name of the zone for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. * @return the request */ - public Get get(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { - Get result = new Get(project, crossSiteNetwork, wireGroup); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { + Get result = new Get(project, zone, operation); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Gets the specified wire group resource in the given scope. + * Retrieves the specified zone-specific Operations resource. * - * Create a request for the method "wireGroups.get". + * Create a request for the method "zoneOperations.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.

    {@link @@ -231261,20 +245633,31 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param crossSiteNetwork - * @param wireGroup Name of the wire group resource to return. + * @param zone Name of the zone for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.WireGroup.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String operation) { + super(Compute.this, "GET", 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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); + 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -231368,293 +245751,89 @@ public Get setProject(java.lang.String project) { return this; } + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public Get setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; - return this; - } - - /** Name of the wire group resource to return. */ - @com.google.api.client.util.Key - private java.lang.String wireGroup; - - /** Name of the wire group resource to return. - */ - public java.lang.String getWireGroup() { - return wireGroup; - } - - /** Name of the wire group resource to return. */ - public Get setWireGroup(java.lang.String wireGroup) { - this.wireGroup = wireGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a wire group in the specified project in the given scope using the parameters that are - * included in the request. - * - * Create a request for the method "wireGroups.insert". - * - * 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. - * - * @param project Project ID for this request. - * @param crossSiteNetwork - * @param content the {@link com.google.api.services.compute.model.WireGroup} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.model.WireGroup content) throws java.io.IOException { - Insert result = new Insert(project, crossSiteNetwork, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; - - 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])?))"); - - /** - * Creates a wire group in the specified project in the given scope using the parameters that are - * included in the request. - * - * Create a request for the method "wireGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    - * - * @param project Project ID for this request. - * @param crossSiteNetwork - * @param content the {@link com.google.api.services.compute.model.WireGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.model.WireGroup 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(), - "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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String zone; - /** Project ID for this request. + /** Name of the zone for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getZone() { + return zone; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** Name of the zone for this request. */ + public Get setZone(java.lang.String zone) { 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])?))"); + 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.project = project; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public Insert setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; + this.zone = zone; 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). end_interface: MixerMutationRequestBuilder + * Name of the Operations resource to return, or its unique numeric identifier. */ @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 operation; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + /** Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * 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). end_interface: MixerMutationRequestBuilder - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** [Input Only] Validate the new configuration, but don't create it. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /**[ Input Only] Validate the new configuration, but don't create it. - [ - + * Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** [Input Only] Validate the new configuration, but don't create it. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + public Get setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; 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); } } /** - * Lists the wire groups for a project in the given scope. + * Retrieves a list of Operation resources contained within the specified zone. * - * Create a request for the method "wireGroups.list". + * Create a request for the method "zoneOperations.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 crossSiteNetwork + * @param zone Name of the zone for request. * @return the request */ - public List list(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { - List result = new List(project, crossSiteNetwork); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Lists the wire groups for a project in the given scope. + * Retrieves a list of Operation resources contained within the specified zone. * - * Create a request for the method "wireGroups.list". + * Create a request for the method "zoneOperations.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

    {@link @@ -231662,18 +245841,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param crossSiteNetwork + * @param zone Name of the zone for request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String crossSiteNetwork) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.WireGroupList.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + 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])?"); + } } @Override @@ -231767,18 +245951,24 @@ public List setProject(java.lang.String project) { return this; } + /** Name of the zone for request. */ @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** + private java.lang.String zone; + /** Name of the zone for request. */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; + public java.lang.String getZone() { + return zone; } - public List setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; + /** Name of the zone for request. */ + public List 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; } @@ -232052,120 +246242,152 @@ public List set(String parameterName, Object value) { } } /** - * Updates the specified wire group resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * Waits for the specified Operation resource to return as `DONE` or for the request to approach the + * 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more + * than the 2 minutes and then returns the current state of the operation, which might be `DONE` or + * still in progress. * - * Create a request for the method "wireGroups.patch". + * This method is called on a best-effort basis. Specifically: - In uncommon cases, when + * the server is overloaded, the request might return before the default deadline is reached, or + * might return after zero seconds. - If the default deadline is reached, there is no + * guarantee that the operation is actually done when the method returns. Be prepared to retry + * if the operation is not `DONE`. + * + * Create a request for the method "zoneOperations.wait". * * 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 Wait#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param crossSiteNetwork - * @param wireGroup Name of the WireGroups resource to patch. - * @param content the {@link com.google.api.services.compute.model.WireGroup} + * @param zone Name of the zone for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup, com.google.api.services.compute.model.WireGroup content) throws java.io.IOException { - Patch result = new Patch(project, crossSiteNetwork, wireGroup, content); + public Wait wait(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { + Wait result = new Wait(project, zone, operation); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Wait extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}/wait"; 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Updates the specified wire group resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * Waits for the specified Operation resource to return as `DONE` or for the request to approach + * the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no + * more than the 2 minutes and then returns the current state of the operation, which might be + * `DONE` or still in progress. * - * Create a request for the method "wireGroups.patch". + * This method is called on a best-effort basis. Specifically: - In uncommon cases, + * when the server is overloaded, the request might return before the default deadline is + * reached, or might return after zero seconds. - If the default deadline is reached, there + * is no guarantee that the operation is actually done when the method returns. Be prepared to + * retry if the operation is not `DONE`. + * + * Create a request for the method "zoneOperations.wait". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

    {@link + * Wait#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 crossSiteNetwork - * @param wireGroup Name of the WireGroups resource to patch. - * @param content the {@link com.google.api.services.compute.model.WireGroup} + * @param zone Name of the zone for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup, com.google.api.services.compute.model.WireGroup content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Wait(java.lang.String project, java.lang.String zone, java.lang.String operation) { + 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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); + 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation 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 Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Wait setUserIp(java.lang.String userIp) { + return (Wait) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -232179,7 +246401,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Wait 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 " + @@ -232189,171 +246411,102 @@ public Patch setProject(java.lang.String project) { return this; } + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public Patch setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; - return this; - } - - /** Name of the WireGroups resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String wireGroup; + private java.lang.String zone; - /** Name of the WireGroups resource to patch. + /** Name of the zone for this request. */ - public java.lang.String getWireGroup() { - return wireGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the WireGroups resource to patch. */ - public Patch setWireGroup(java.lang.String wireGroup) { - this.wireGroup = wireGroup; + /** Name of the zone for this request. */ + public Wait 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; } /** - * 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). end_interface: MixerMutationRequestBuilder + * Name of the Operations resource to return, or its unique numeric identifier. */ @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 operation; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + /** Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * 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). end_interface: MixerMutationRequestBuilder - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** [Input Only] Validate the new configuration, but don't update it. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /**[ Input Only] Validate the new configuration, but don't update it. - [ - + * Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** [Input Only] Validate the new configuration, but don't update it. */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + public Wait setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the ZoneOperations collection. + * An accessor for creating requests from the ZoneVmExtensionPolicies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.ZoneOperations.List request = compute.zoneOperations().list(parameters ...)}
    +   *   {@code Compute.ZoneVmExtensionPolicies.List request = compute.zoneVmExtensionPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public ZoneOperations zoneOperations() { - return new ZoneOperations(); + public ZoneVmExtensionPolicies zoneVmExtensionPolicies() { + return new ZoneVmExtensionPolicies(); } /** - * The "zoneOperations" collection of methods. + * The "zoneVmExtensionPolicies" collection of methods. */ - public class ZoneOperations { + public class ZoneVmExtensionPolicies { /** - * Deletes the specified zone-specific Operations resource. + * Deletes a specified zone VM extension policy. * - * Create a request for the method "zoneOperations.delete". + * Create a request for the method "zoneVmExtensionPolicies.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 zone Name of the zone for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { - Delete result = new Delete(project, zone, operation); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { + Delete result = new Delete(project, zone, vmExtensionPolicy); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; 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])?))"); @@ -232361,13 +246514,10 @@ public class Delete extends ComputeRequest { private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified zone-specific Operations resource. + * Deletes a specified zone VM extension policy. * - * Create a request for the method "zoneOperations.delete". + * Create a request for the method "zoneVmExtensionPolicies.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

    {@link @@ -232376,12 +246526,11 @@ public class Delete extends ComputeRequest { * * @param project Project ID for this request. * @param zone Name of the zone for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) { + 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(), @@ -232394,12 +246543,7 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); } @Override @@ -232504,28 +246648,68 @@ public Delete setZone(java.lang.String zone) { return this; } + /** Name of the zone VM extension policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String vmExtensionPolicy; + + /** Name of the zone VM extension policy to delete. + */ + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; + } + + /** Name of the zone VM extension policy to delete. */ + public Delete setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; + return this; + } + /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * 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 operation; + private java.lang.String requestId; - /** Name of the Operations resource to delete, or its unique numeric identifier. + /** 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 getOperation() { - return operation; + public java.lang.String getRequestId() { + return requestId; } /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * 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 setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @@ -232535,28 +246719,27 @@ public Delete set(String parameterName, Object value) { } } /** - * Retrieves the specified zone-specific Operations resource. + * Retrieves details of a specific zone VM extension policy. * - * Create a request for the method "zoneOperations.get". + * Create a request for the method "zoneVmExtensionPolicies.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 zone Name of the zone for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param vmExtensionPolicy Name of the VM extension policy resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { - Get result = new Get(project, zone, operation); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { + Get result = new Get(project, zone, vmExtensionPolicy); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; 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])?))"); @@ -232564,13 +246747,13 @@ public class Get extends ComputeRequest {@link @@ -232579,12 +246762,11 @@ public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies"; + + 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Creates a new zone-level VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.VmExtensionPolicy 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(), + "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])?"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 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 " + + "(?:(?:[-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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Insert 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; + } + + /** + * 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; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all VM extension policies within a specific zone for a project. + * + * Create a request for the method "zoneVmExtensionPolicies.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 zone Name of the zone for request. + * @param zone 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 { @@ -232765,9 +247159,9 @@ public List list(java.lang.String project, java.lang.String zone) throws java.io return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies"; 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])?))"); @@ -232776,9 +247170,9 @@ public class List extends ComputeRequest {@link @@ -232786,11 +247180,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param zone Name of the zone for request. + * @param zone Name of the zone for this request. * @since 1.13 */ protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionPolicyList.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(), @@ -232896,17 +247290,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the zone for request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key private java.lang.String zone; - /** Name of the zone for request. + /** Name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** Name of the zone for request. */ + /** Name of the zone for this request. */ public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), @@ -233187,37 +247581,28 @@ public List set(String parameterName, Object value) { } } /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach the - * 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more - * than the 2 minutes and then returns the current state of the operation, which might be `DONE` or - * still in progress. + * Modifies an existing zone VM extension policy. * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, when - * the server is overloaded, the request might return before the default deadline is reached, or - * might return after zero seconds. - If the default deadline is reached, there is no - * guarantee that the operation is actually done when the method returns. Be prepared to retry - * if the operation is not `DONE`. - * - * Create a request for the method "zoneOperations.wait". + * Create a request for the method "zoneVmExtensionPolicies.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Wait#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 zone Name of the zone for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @return the request */ - public Wait wait(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { - Wait result = new Wait(project, zone, operation); + public Update update(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy content) throws java.io.IOException { + Update result = new Update(project, zone, vmExtensionPolicy, content); initialize(result); return result; } - public class Wait extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}/wait"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; 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])?))"); @@ -233225,36 +247610,24 @@ public class Wait extends ComputeRequest {@link - * Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

    * * @param project Project ID for this request. * @param zone Name of the zone for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @since 1.13 */ - protected Wait(java.lang.String project, java.lang.String zone, java.lang.String operation) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Update(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy 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(), @@ -233267,72 +247640,67 @@ protected Wait(java.lang.String project, java.lang.String zone, java.lang.String "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Wait setUserIp(java.lang.String userIp) { - return (Wait) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -233346,7 +247714,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Wait 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 " + @@ -233367,7 +247735,7 @@ public java.lang.String getZone() { } /** Name of the zone for this request. */ - public Wait setZone(java.lang.String zone) { + public Update 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 " + @@ -233377,34 +247745,74 @@ public Wait setZone(java.lang.String zone) { return this; } + /** Name of the zone VM extension policy to update. */ + @com.google.api.client.util.Key + private java.lang.String vmExtensionPolicy; + + /** Name of the zone VM extension policy to update. + */ + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; + } + + /** Name of the zone VM extension policy to update. */ + public Update setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; + return this; + } + /** - * Name of the Operations resource to return, or its unique numeric identifier. + * 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 operation; + private java.lang.String requestId; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** 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 getOperation() { - return operation; + public java.lang.String getRequestId() { + return requestId; } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * 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 Wait setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } @@ -234047,8 +248455,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorType.java index ca908adabeb..bb97180b273 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorType.java @@ -62,7 +62,8 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for + * accelerator types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,7 +84,7 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -167,7 +168,8 @@ public AcceleratorType setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for + * accelerator types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -175,7 +177,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for + * accelerator types. * @param kind kind or {@code null} for none */ public AcceleratorType setKind(java.lang.String kind) { @@ -218,7 +221,7 @@ public AcceleratorType setName(java.lang.String name) { } /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -226,7 +229,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public AcceleratorType setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java index 01a36ed3d8c..8ef1a82145b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for aggregated - * lists of accelerator types. + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for + * aggregated lists of accelerator types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AcceleratorTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AcceleratorTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java index d6ce17db7a8..8573d2e33b6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java @@ -50,8 +50,8 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of + * accelerator types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public AcceleratorTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of + * accelerator types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of + * accelerator types. * @param kind kind or {@code null} for none */ public AcceleratorTypeList setKind(java.lang.String kind) { @@ -158,7 +158,7 @@ public AcceleratorTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public AcceleratorTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AccessConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AccessConfig.java index de46a322098..41d68db5279 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AccessConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AccessConfig.java @@ -49,7 +49,7 @@ public final class AccessConfig extends com.google.api.client.json.GenericJson { private java.lang.Integer externalIpv6PrefixLength; /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -168,7 +168,7 @@ public AccessConfig setExternalIpv6PrefixLength(java.lang.Integer externalIpv6Pr } /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -176,7 +176,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. * @param kind kind or {@code null} for none */ public AccessConfig setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java index 0b32e7be57c..b4942471b19 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java @@ -53,7 +53,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String addressType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,12 +67,27 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; + /** + * Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for + * BYOIP. The PDP must support enhanced IPv4 allocations. + * + * Use one of the following formats to specify a PDP when reserving an external IPv4 address using + * BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/proj + * ectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in + * - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/pdp-name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCollection; + /** * The IP version that will be used by this address. Valid options areIPV4 or IPV6. * The value may be {@code null}. @@ -89,7 +104,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String ipv6EndpointType; /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * Output only. [Output Only] Type of the resource. Always compute#address for addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -175,9 +190,9 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String purpose; /** - * [Output Only] The URL of the region where a regional address resides. For regional addresses, - * you must specify the region as a path parameter in the HTTP request URL. *This field is not - * applicable to global addresses.* + * Output only. [Output Only] The URL of the region where a regional address resides. For regional + * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field + * is not applicable to global addresses.* * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -191,10 +206,10 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An - * address that is RESERVING is currently in the process of being reserved. A RESERVED address is - * currently reserved and available to use. An IN_USE address is currently being used by another - * resource and is not available. + * Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, + * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A + * RESERVED address is currently reserved and available to use. An IN_USE address is currently + * being used by another resource and is not available. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -253,7 +268,7 @@ public Address setAddressType(java.lang.String addressType) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -261,7 +276,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Address setCreationTimestamp(java.lang.String creationTimestamp) { @@ -287,7 +302,8 @@ public Address setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -295,7 +311,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Address setId(java.math.BigInteger id) { @@ -303,6 +320,37 @@ public Address setId(java.math.BigInteger id) { return this; } + /** + * Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for + * BYOIP. The PDP must support enhanced IPv4 allocations. + * + * Use one of the following formats to specify a PDP when reserving an external IPv4 address using + * BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/proj + * ectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in + * - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/pdp-name + * @return value or {@code null} for none + */ + public java.lang.String getIpCollection() { + return ipCollection; + } + + /** + * Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for + * BYOIP. The PDP must support enhanced IPv4 allocations. + * + * Use one of the following formats to specify a PDP when reserving an external IPv4 address using + * BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/proj + * ectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in + * - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/pdp-name + * @param ipCollection ipCollection or {@code null} for none + */ + public Address setIpCollection(java.lang.String ipCollection) { + this.ipCollection = ipCollection; + return this; + } + /** * The IP version that will be used by this address. Valid options areIPV4 or IPV6. * @return value or {@code null} for none @@ -340,7 +388,7 @@ public Address setIpv6EndpointType(java.lang.String ipv6EndpointType) { } /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * Output only. [Output Only] Type of the resource. Always compute#address for addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -348,7 +396,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * Output only. [Output Only] Type of the resource. Always compute#address for addresses. * @param kind kind or {@code null} for none */ public Address setKind(java.lang.String kind) { @@ -576,9 +624,9 @@ public Address setPurpose(java.lang.String purpose) { } /** - * [Output Only] The URL of the region where a regional address resides. For regional addresses, - * you must specify the region as a path parameter in the HTTP request URL. *This field is not - * applicable to global addresses.* + * Output only. [Output Only] The URL of the region where a regional address resides. For regional + * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field + * is not applicable to global addresses.* * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -586,9 +634,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of the region where a regional address resides. For regional addresses, - * you must specify the region as a path parameter in the HTTP request URL. *This field is not - * applicable to global addresses.* + * Output only. [Output Only] The URL of the region where a regional address resides. For regional + * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field + * is not applicable to global addresses.* * @param region region or {@code null} for none */ public Address setRegion(java.lang.String region) { @@ -614,10 +662,10 @@ public Address setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An - * address that is RESERVING is currently in the process of being reserved. A RESERVED address is - * currently reserved and available to use. An IN_USE address is currently being used by another - * resource and is not available. + * Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, + * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A + * RESERVED address is currently reserved and available to use. An IN_USE address is currently + * being used by another resource and is not available. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -625,10 +673,10 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An - * address that is RESERVING is currently in the process of being reserved. A RESERVED address is - * currently reserved and available to use. An IN_USE address is currently being used by another - * resource and is not available. + * Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, + * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A + * RESERVED address is currently reserved and available to use. An IN_USE address is currently + * being used by another resource and is not available. * @param status status or {@code null} for none */ public Address setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java index ce17cb61122..981d91082fb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java @@ -44,8 +44,8 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated + * lists of addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AddressAggregatedList setItems(java.util.Map } /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated + * lists of addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated + * lists of addresses. * @param kind kind or {@code null} for none */ public AddressAggregatedList setKind(java.lang.String kind) { @@ -159,7 +159,7 @@ public AddressAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public AddressAggregatedList setSelfLink(java.lang.String selfLink) { @@ -176,7 +176,7 @@ public AddressAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AddressAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressList.java index 68e6eb54491..62ab8af2ff8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressList.java @@ -50,7 +50,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public AddressList setItems(java.util.List
      items) { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. * @param kind kind or {@code null} for none */ public AddressList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public AddressList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public AddressList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java index e907d5d5764..caf9d9f3bae 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java @@ -32,7 +32,7 @@ public final class AllocationAggregateReservation extends com.google.api.client.json.GenericJson { /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,7 +60,7 @@ public final class AllocationAggregateReservation extends com.google.api.client. private java.lang.String workloadType; /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * @return value or {@code null} for none */ public java.util.List getInUseResources() { @@ -68,7 +68,7 @@ public java.util.List getInU } /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * @param inUseResources inUseResources or {@code null} for none */ public AllocationAggregateReservation setInUseResources(java.util.List inUseResources) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java index 0803ac39c58..259f3403934 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java @@ -17,7 +17,7 @@ package com.google.api.services.compute.model; /** - * Properties of the SKU instances being reserved. Next ID: 9 + * Properties of the SKU instances being reserved. Next ID: 10 * *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java index d928aa8151f..de9079076b2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java @@ -30,7 +30,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.client.json.GenericJson { /** - * [Output Only] Indicates how many instances are actually usable currently. + * Output only. [Output Only] Indicates how many instances are actually usable currently. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -44,7 +44,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.Long count; /** - * [Output Only] Indicates how many instances are in use. + * Output only. [Output Only] Indicates how many instances are in use. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -72,7 +72,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.String sourceInstanceTemplate; /** - * [Output Only] Indicates how many instances are actually usable currently. + * Output only. [Output Only] Indicates how many instances are actually usable currently. * @return value or {@code null} for none */ public java.lang.Long getAssuredCount() { @@ -80,7 +80,7 @@ public java.lang.Long getAssuredCount() { } /** - * [Output Only] Indicates how many instances are actually usable currently. + * Output only. [Output Only] Indicates how many instances are actually usable currently. * @param assuredCount assuredCount or {@code null} for none */ public AllocationSpecificSKUReservation setAssuredCount(java.lang.Long assuredCount) { @@ -106,7 +106,7 @@ public AllocationSpecificSKUReservation setCount(java.lang.Long count) { } /** - * [Output Only] Indicates how many instances are in use. + * Output only. [Output Only] Indicates how many instances are in use. * @return value or {@code null} for none */ public java.lang.Long getInUseCount() { @@ -114,7 +114,7 @@ public java.lang.Long getInUseCount() { } /** - * [Output Only] Indicates how many instances are in use. + * Output only. [Output Only] Indicates how many instances are in use. * @param inUseCount inUseCount or {@code null} for none */ public AllocationSpecificSKUReservation setInUseCount(java.lang.Long inUseCount) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDisk.java index f1f04e90ea5..d5949cb674e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDisk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDisk.java @@ -30,7 +30,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or + * X86_64. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +117,9 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * [Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you - * have many disks attached to an instance, each disk would have a unique index number. + * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot + * disk. If you have many disks attached to an instance, each disk would have a unique index + * number. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,14 +147,14 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -167,16 +169,16 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String mode; /** - * For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to - * PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. - * (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. + * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is + * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer + * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String savedState; /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -206,7 +208,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or + * X86_64. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -214,7 +217,8 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or + * X86_64. * @param architecture architecture or {@code null} for none */ public AttachedDisk setArchitecture(java.lang.String architecture) { @@ -402,8 +406,9 @@ public AttachedDisk setGuestOsFeatures(java.util.List guestOsFea } /** - * [Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you - * have many disks attached to an instance, each disk would have a unique index number. + * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot + * disk. If you have many disks attached to an instance, each disk would have a unique index + * number. * @return value or {@code null} for none */ public java.lang.Integer getIndex() { @@ -411,8 +416,9 @@ public java.lang.Integer getIndex() { } /** - * [Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you - * have many disks attached to an instance, each disk would have a unique index number. + * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot + * disk. If you have many disks attached to an instance, each disk would have a unique index + * number. * @param index index or {@code null} for none */ public AttachedDisk setIndex(java.lang.Integer index) { @@ -469,7 +475,7 @@ public AttachedDisk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -477,7 +483,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * @param kind kind or {@code null} for none */ public AttachedDisk setKind(java.lang.String kind) { @@ -486,7 +492,7 @@ public AttachedDisk setKind(java.lang.String kind) { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -494,7 +500,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @param licenses licenses or {@code null} for none */ public AttachedDisk setLicenses(java.util.List licenses) { @@ -522,9 +528,9 @@ public AttachedDisk setMode(java.lang.String mode) { } /** - * For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to - * PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. - * (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. + * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is + * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer + * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. * @return value or {@code null} for none */ public java.lang.String getSavedState() { @@ -532,9 +538,9 @@ public java.lang.String getSavedState() { } /** - * For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to - * PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. - * (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. + * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is + * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer + * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. * @param savedState savedState or {@code null} for none */ public AttachedDisk setSavedState(java.lang.String savedState) { @@ -543,7 +549,7 @@ public AttachedDisk setSavedState(java.lang.String savedState) { } /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * @return value or {@code null} for none */ public InitialStateConfig getShieldedInstanceInitialState() { @@ -551,7 +557,7 @@ public InitialStateConfig getShieldedInstanceInitialState() { } /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none */ public AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java index de8d155316a..527ca739be4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java @@ -145,9 +145,11 @@ public final class AttachedDiskInitializeParams extends com.google.api.client.js private java.util.List replicaZones; /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -489,9 +491,11 @@ public AttachedDiskInitializeParams setReplicaZones(java.util.List getResourceManagerTags() { @@ -499,9 +503,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public AttachedDiskInitializeParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Autoscaler.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Autoscaler.java index c2037360ae4..a15b4e5d32a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Autoscaler.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Autoscaler.java @@ -53,7 +53,7 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private AutoscalingPolicy autoscalingPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,15 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,25 +93,25 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Target recommended MIG size (number of instances) computed by autoscaler. - * Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is - * different from ON. This field is empty when autoscaler is not connected to an existing managed - * instance group or autoscaler did not generate its prediction. + * Output only. [Output Only] Target recommended MIG size (number of instances) computed by + * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy + * mode is different from ON. This field is empty when autoscaler is not connected to an existing + * managed instance group or autoscaler did not generate its prediction. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer recommendedSize; /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers + * living in regional scope). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -155,8 +156,8 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers + * living in zonal scope). * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -188,7 +189,7 @@ public Autoscaler setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -196,7 +197,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Autoscaler setCreationTimestamp(java.lang.String creationTimestamp) { @@ -222,7 +223,8 @@ public Autoscaler setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -230,7 +232,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Autoscaler setId(java.math.BigInteger id) { @@ -239,7 +242,7 @@ public Autoscaler setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -247,7 +250,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. * @param kind kind or {@code null} for none */ public Autoscaler setKind(java.lang.String kind) { @@ -281,10 +284,10 @@ public Autoscaler setName(java.lang.String name) { } /** - * [Output Only] Target recommended MIG size (number of instances) computed by autoscaler. - * Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is - * different from ON. This field is empty when autoscaler is not connected to an existing managed - * instance group or autoscaler did not generate its prediction. + * Output only. [Output Only] Target recommended MIG size (number of instances) computed by + * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy + * mode is different from ON. This field is empty when autoscaler is not connected to an existing + * managed instance group or autoscaler did not generate its prediction. * @return value or {@code null} for none */ public java.lang.Integer getRecommendedSize() { @@ -292,10 +295,10 @@ public java.lang.Integer getRecommendedSize() { } /** - * [Output Only] Target recommended MIG size (number of instances) computed by autoscaler. - * Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is - * different from ON. This field is empty when autoscaler is not connected to an existing managed - * instance group or autoscaler did not generate its prediction. + * Output only. [Output Only] Target recommended MIG size (number of instances) computed by + * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy + * mode is different from ON. This field is empty when autoscaler is not connected to an existing + * managed instance group or autoscaler did not generate its prediction. * @param recommendedSize recommendedSize or {@code null} for none */ public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { @@ -304,8 +307,8 @@ public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { } /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers + * living in regional scope). * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -313,8 +316,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers + * living in regional scope). * @param region region or {@code null} for none */ public Autoscaler setRegion(java.lang.String region) { @@ -323,7 +326,7 @@ public Autoscaler setRegion(java.lang.String region) { } /** - * [Output Only] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * @return value or {@code null} for none */ public java.util.Map getScalingScheduleStatus() { @@ -331,7 +334,7 @@ public java.util.Map getScalingScheduleStatus() { } /** - * [Output Only] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * @param scalingScheduleStatus scalingScheduleStatus or {@code null} for none */ public Autoscaler setScalingScheduleStatus(java.util.Map scalingScheduleStatus) { @@ -428,8 +431,8 @@ public Autoscaler setTarget(java.lang.String target) { } /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers + * living in zonal scope). * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -437,8 +440,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers + * living in zonal scope). * @param zone zone or {@code null} for none */ public Autoscaler setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java index 579ee9e1a4a..0b34b95a635 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java @@ -44,8 +44,8 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for aggregated lists of - * autoscalers. + * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for + * aggregated lists of autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,15 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,8 @@ public AutoscalerAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public AutoscalerAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerList.java index a53c5719b71..3fe3fa8efb5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerList.java @@ -50,7 +50,8 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of + * autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public AutoscalerList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of + * autoscalers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of + * autoscalers. * @param kind kind or {@code null} for none */ public AutoscalerList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public AutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public AutoscalerList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Backend.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Backend.java index 2136351b4ba..ea21a03b0aa 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Backend.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Backend.java @@ -165,6 +165,13 @@ public final class Backend extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Float maxUtilization; + /** + * Information about the resource or system that manages the backend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendBackendOrchestrationInfo orchestrationInfo; + /** * This field indicates whether this backend should be fully utilized before sending traffic to * backends with default preference. The possible values are: - PREFERRED: Backends with @@ -488,6 +495,23 @@ public Backend setMaxUtilization(java.lang.Float maxUtilization) { return this; } + /** + * Information about the resource or system that manages the backend. + * @return value or {@code null} for none + */ + public BackendBackendOrchestrationInfo getOrchestrationInfo() { + return orchestrationInfo; + } + + /** + * Information about the resource or system that manages the backend. + * @param orchestrationInfo orchestrationInfo or {@code null} for none + */ + public Backend setOrchestrationInfo(BackendBackendOrchestrationInfo orchestrationInfo) { + this.orchestrationInfo = orchestrationInfo; + return this; + } + /** * This field indicates whether this backend should be fully utilized before sending traffic to * backends with default preference. The possible values are: - PREFERRED: Backends with diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java new file mode 100644 index 00000000000..b296411823a --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A message containing information about the resource or system that manages the backend. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendBackendOrchestrationInfo extends com.google.api.client.json.GenericJson { + + /** + * The URI of the resource or system that manages the backend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceUri; + + /** + * The URI of the resource or system that manages the backend. + * @return value or {@code null} for none + */ + public java.lang.String getResourceUri() { + return resourceUri; + } + + /** + * The URI of the resource or system that manages the backend. + * @param resourceUri resourceUri or {@code null} for none + */ + public BackendBackendOrchestrationInfo setResourceUri(java.lang.String resourceUri) { + this.resourceUri = resourceUri; + return this; + } + + @Override + public BackendBackendOrchestrationInfo set(String fieldName, Object value) { + return (BackendBackendOrchestrationInfo) super.set(fieldName, value); + } + + @Override + public BackendBackendOrchestrationInfo clone() { + return (BackendBackendOrchestrationInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java index c97ae845d6e..3cefb82d3e5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java @@ -99,7 +99,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Type of the resource. + * Output only. Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,7 +142,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -308,7 +308,7 @@ public BackendBucket setId(java.math.BigInteger id) { } /** - * Type of the resource. + * Output only. Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -316,7 +316,7 @@ public java.lang.String getKind() { } /** - * Type of the resource. + * Output only. Type of the resource. * @param kind kind or {@code null} for none */ public BackendBucket setKind(java.lang.String kind) { @@ -409,7 +409,7 @@ public BackendBucket setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -417,7 +417,7 @@ public java.util.List getUsedBy() { } /** - * [Output Only] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * @param usedBy usedBy or {@code null} for none */ public BackendBucket setUsedBy(java.util.List usedBy) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketList.java index bbae1324bd2..eeaa03daf08 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketList.java @@ -50,7 +50,7 @@ public final class BackendBucketList extends com.google.api.client.json.GenericJ } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class BackendBucketList extends com.google.api.client.json.GenericJ private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public BackendBucketList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public BackendBucketList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public BackendBucketList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public BackendBucketList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java index da75c481ccb..e7045e0c2e3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java @@ -30,14 +30,14 @@ public final class BackendBucketUsedBy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String reference; /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. * @return value or {@code null} for none */ public java.lang.String getReference() { @@ -45,7 +45,7 @@ public java.lang.String getReference() { } /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. * @param reference reference or {@code null} for none */ public BackendBucketUsedBy setReference(java.lang.String reference) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java index 05bc6020d7d..e5725453eb2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -127,7 +127,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private ConsistentHashLoadBalancerSettings consistentHash; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -322,7 +322,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String ipAddressSelectionPolicy; /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * Output only. [Output Only] Type of resource. Always compute#backendService for backend + * services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -442,6 +443,22 @@ public final class BackendService extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String network; + /** + * Configures traffic steering properties of internal passthrough Network Load Balancers. + * + * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceNetworkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy; + + /** + * Information about the resource or system that manages the backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceOrchestrationInfo orchestrationInfo; + /** * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool * of each individual proxy instance that processes the traffic for the given backend service. If @@ -516,9 +533,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String protocol; /** - * [Output Only] URL of the region where the regional backend service resides. This field is not - * applicable to global backend services. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional backend service resides. This + * field is not applicable to global backend services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -621,7 +638,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private BackendServiceTlsSettings tlsSettings; /** - * [Output Only] List of resources referencing given backend service. + * Output only. [Output Only] List of resources referencing given backend service. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -808,7 +825,7 @@ public BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consi } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -816,7 +833,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public BackendService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1284,7 +1301,8 @@ public BackendService setIpAddressSelectionPolicy(java.lang.String ipAddressSele } /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * Output only. [Output Only] Type of resource. Always compute#backendService for backend + * services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -1292,7 +1310,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * Output only. [Output Only] Type of resource. Always compute#backendService for backend + * services. * @param kind kind or {@code null} for none */ public BackendService setKind(java.lang.String kind) { @@ -1552,6 +1571,44 @@ public BackendService setNetwork(java.lang.String network) { return this; } + /** + * Configures traffic steering properties of internal passthrough Network Load Balancers. + * + * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. + * @return value or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicy getNetworkPassThroughLbTrafficPolicy() { + return networkPassThroughLbTrafficPolicy; + } + + /** + * Configures traffic steering properties of internal passthrough Network Load Balancers. + * + * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. + * @param networkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy or {@code null} for none + */ + public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetworkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy) { + this.networkPassThroughLbTrafficPolicy = networkPassThroughLbTrafficPolicy; + return this; + } + + /** + * Information about the resource or system that manages the backend service. + * @return value or {@code null} for none + */ + public BackendServiceOrchestrationInfo getOrchestrationInfo() { + return orchestrationInfo; + } + + /** + * Information about the resource or system that manages the backend service. + * @param orchestrationInfo orchestrationInfo or {@code null} for none + */ + public BackendService setOrchestrationInfo(BackendServiceOrchestrationInfo orchestrationInfo) { + this.orchestrationInfo = orchestrationInfo; + return this; + } + /** * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool * of each individual proxy instance that processes the traffic for the given backend service. If @@ -1714,9 +1771,9 @@ public BackendService setProtocol(java.lang.String protocol) { } /** - * [Output Only] URL of the region where the regional backend service resides. This field is not - * applicable to global backend services. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional backend service resides. This + * field is not applicable to global backend services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -1724,9 +1781,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional backend service resides. This field is not - * applicable to global backend services. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional backend service resides. This + * field is not applicable to global backend services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * @param region region or {@code null} for none */ public BackendService setRegion(java.lang.String region) { @@ -1957,7 +2014,7 @@ public BackendService setTlsSettings(BackendServiceTlsSettings tlsSettings) { } /** - * [Output Only] List of resources referencing given backend service. + * Output only. [Output Only] List of resources referencing given backend service. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -1965,7 +2022,7 @@ public java.util.List getUsedBy() { } /** - * [Output Only] List of resources referencing given backend service. + * Output only. [Output Only] List of resources referencing given backend service. * @param usedBy usedBy or {@code null} for none */ public BackendService setUsedBy(java.util.List usedBy) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java index e0afada0240..313198d23b6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public BackendServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public BackendServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java index efdb6b23e77..6d41f11341d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java @@ -38,7 +38,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.json.GenericJson { /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * The value may be {@code null}. @@ -73,7 +73,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.js private java.lang.Float failoverRatio; /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * @return value or {@code null} for none @@ -83,7 +83,7 @@ public java.lang.Boolean getDisableConnectionDrainOnFailover() { } /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * @param disableConnectionDrainOnFailover disableConnectionDrainOnFailover or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java index bc3239368af..2df9c4eb5fe 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java @@ -45,8 +45,8 @@ public final class BackendServiceGroupHealth extends com.google.api.client.json. private java.util.List healthStatus; /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the + * health of backend services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,8 +89,8 @@ public BackendServiceGroupHealth setHealthStatus(java.util.List he } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the + * health of backend services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -98,8 +98,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the + * health of backend services. * @param kind kind or {@code null} for none */ public BackendServiceGroupHealth setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java index 04c9a74f9e2..dd4899bf142 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java @@ -55,7 +55,7 @@ public final class BackendServiceIAP extends com.google.api.client.json.GenericJ private java.lang.String oauth2ClientSecret; /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +121,7 @@ public BackendServiceIAP setOauth2ClientSecret(java.lang.String oauth2ClientSecr } /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. * @return value or {@code null} for none */ public java.lang.String getOauth2ClientSecretSha256() { @@ -129,7 +129,7 @@ public java.lang.String getOauth2ClientSecretSha256() { } /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. * @param oauth2ClientSecretSha256 oauth2ClientSecretSha256 or {@code null} for none */ public BackendServiceIAP setOauth2ClientSecretSha256(java.lang.String oauth2ClientSecretSha256) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceList.java index 55bacc0e85b..a9fbe1babdc 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceList.java @@ -50,7 +50,8 @@ public final class BackendServiceList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of + * backend services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class BackendServiceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public BackendServiceList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of + * backend services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of + * backend services. * @param kind kind or {@code null} for none */ public BackendServiceList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public BackendServiceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public BackendServiceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java index 68b53b5decb..eeee3073ad5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java @@ -50,8 +50,8 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists + * of usable backend services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public BackendServiceListUsable setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists + * of usable backend services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists + * of usable backend services. * @param kind kind or {@code null} for none */ public BackendServiceListUsable setKind(java.lang.String kind) { @@ -158,7 +158,7 @@ public BackendServiceListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public BackendServiceListUsable setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java new file mode 100644 index 00000000000..3a229f17954 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for BackendServiceNetworkPassThroughLbTrafficPolicy. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceNetworkPassThroughLbTrafficPolicy extends com.google.api.client.json.GenericJson { + + /** + * When configured, new connections are load balanced across healthy backend endpoints in the + * local zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonalAffinity; + + /** + * When configured, new connections are load balanced across healthy backend endpoints in the + * local zone. + * @return value or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity getZonalAffinity() { + return zonalAffinity; + } + + /** + * When configured, new connections are load balanced across healthy backend endpoints in the + * local zone. + * @param zonalAffinity zonalAffinity or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicy setZonalAffinity(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonalAffinity) { + this.zonalAffinity = zonalAffinity; + return this; + } + + @Override + public BackendServiceNetworkPassThroughLbTrafficPolicy set(String fieldName, Object value) { + return (BackendServiceNetworkPassThroughLbTrafficPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceNetworkPassThroughLbTrafficPolicy clone() { + return (BackendServiceNetworkPassThroughLbTrafficPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java new file mode 100644 index 00000000000..05d91177575 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java @@ -0,0 +1,135 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity extends com.google.api.client.json.GenericJson { + + /** + * This field indicates whether zonal affinity is enabled or not. The possible values are: + * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer + * distributes new connections to all healthy backend endpoints across all zones. - + * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes + * new connections to all healthy backend endpoints in the local zone only. If there are no + * healthy backend endpoints in the local zone, the load balancer distributes new + * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: + * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy + * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints + * in the local zone, the load balancer distributes new connections to all healthy backend + * endpoints across all zones. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String spillover; + + /** + * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend + * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above + * this threshold, the load balancer distributes new connections to all healthy endpoints in the + * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the + * count of backend endpoints in that same zone is below this threshold, the load balancer + * distributes all new connections to all healthy endpoints across all zones. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float spilloverRatio; + + /** + * This field indicates whether zonal affinity is enabled or not. The possible values are: + * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer + * distributes new connections to all healthy backend endpoints across all zones. - + * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes + * new connections to all healthy backend endpoints in the local zone only. If there are no + * healthy backend endpoints in the local zone, the load balancer distributes new + * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: + * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy + * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints + * in the local zone, the load balancer distributes new connections to all healthy backend + * endpoints across all zones. + * @return value or {@code null} for none + */ + public java.lang.String getSpillover() { + return spillover; + } + + /** + * This field indicates whether zonal affinity is enabled or not. The possible values are: + * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer + * distributes new connections to all healthy backend endpoints across all zones. - + * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes + * new connections to all healthy backend endpoints in the local zone only. If there are no + * healthy backend endpoints in the local zone, the load balancer distributes new + * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: + * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy + * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints + * in the local zone, the load balancer distributes new connections to all healthy backend + * endpoints across all zones. + * @param spillover spillover or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity setSpillover(java.lang.String spillover) { + this.spillover = spillover; + return this; + } + + /** + * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend + * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above + * this threshold, the load balancer distributes new connections to all healthy endpoints in the + * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the + * count of backend endpoints in that same zone is below this threshold, the load balancer + * distributes all new connections to all healthy endpoints across all zones. + * @return value or {@code null} for none + */ + public java.lang.Float getSpilloverRatio() { + return spilloverRatio; + } + + /** + * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend + * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above + * this threshold, the load balancer distributes new connections to all healthy endpoints in the + * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the + * count of backend endpoints in that same zone is below this threshold, the load balancer + * distributes all new connections to all healthy endpoints across all zones. + * @param spilloverRatio spilloverRatio or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity setSpilloverRatio(java.lang.Float spilloverRatio) { + this.spilloverRatio = spilloverRatio; + return this; + } + + @Override + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity set(String fieldName, Object value) { + return (BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity) super.set(fieldName, value); + } + + @Override + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity clone() { + return (BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java new file mode 100644 index 00000000000..a3e10b1d879 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A message containing information about the resource or system that manages the backend service. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceOrchestrationInfo extends com.google.api.client.json.GenericJson { + + /** + * The resource URI of the resource or system that manages the backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceUri; + + /** + * The resource URI of the resource or system that manages the backend service. + * @return value or {@code null} for none + */ + public java.lang.String getResourceUri() { + return resourceUri; + } + + /** + * The resource URI of the resource or system that manages the backend service. + * @param resourceUri resourceUri or {@code null} for none + */ + public BackendServiceOrchestrationInfo setResourceUri(java.lang.String resourceUri) { + this.resourceUri = resourceUri; + return this; + } + + @Override + public BackendServiceOrchestrationInfo set(String fieldName, Object value) { + return (BackendServiceOrchestrationInfo) super.set(fieldName, value); + } + + @Override + public BackendServiceOrchestrationInfo clone() { + return (BackendServiceOrchestrationInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java index cebbcab9361..d1f47ab4d6d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java @@ -30,16 +30,16 @@ public final class BackendServiceUsedBy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * Output only. [Output Only] Server-defined URL for resources referencing given BackendService + * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String reference; /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * Output only. [Output Only] Server-defined URL for resources referencing given BackendService + * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. * @return value or {@code null} for none */ public java.lang.String getReference() { @@ -47,8 +47,8 @@ public java.lang.String getReference() { } /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * Output only. [Output Only] Server-defined URL for resources referencing given BackendService + * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. * @param reference reference or {@code null} for none */ public BackendServiceUsedBy setReference(java.lang.String reference) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRoute.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRoute.java index 9c057f2e6c6..f4e2917b118 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRoute.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRoute.java @@ -30,42 +30,42 @@ public final class BgpRoute extends com.google.api.client.json.GenericJson { /** - * [Output only] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List asPaths; /** - * [Output only] BGP communities in human-readable A:B format. + * Output only. [Output only] BGP communities in human-readable A:B format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List communities; /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format * The value may be {@code null}. */ @com.google.api.client.util.Key private BgpRouteNetworkLayerReachabilityInformation destination; /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Long med; /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String origin; /** - * [Output only] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -73,7 +73,7 @@ public java.util.List getAsPaths() { } /** - * [Output only] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * @param asPaths asPaths or {@code null} for none */ public BgpRoute setAsPaths(java.util.List asPaths) { @@ -82,7 +82,7 @@ public BgpRoute setAsPaths(java.util.List asPaths) { } /** - * [Output only] BGP communities in human-readable A:B format. + * Output only. [Output only] BGP communities in human-readable A:B format. * @return value or {@code null} for none */ public java.util.List getCommunities() { @@ -90,7 +90,7 @@ public java.util.List getCommunities() { } /** - * [Output only] BGP communities in human-readable A:B format. + * Output only. [Output only] BGP communities in human-readable A:B format. * @param communities communities or {@code null} for none */ public BgpRoute setCommunities(java.util.List communities) { @@ -99,7 +99,7 @@ public BgpRoute setCommunities(java.util.List communities) { } /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format * @return value or {@code null} for none */ public BgpRouteNetworkLayerReachabilityInformation getDestination() { @@ -107,7 +107,7 @@ public BgpRouteNetworkLayerReachabilityInformation getDestination() { } /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format * @param destination destination or {@code null} for none */ public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation destination) { @@ -116,7 +116,7 @@ public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation desti } /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * @return value or {@code null} for none */ public java.lang.Long getMed() { @@ -124,7 +124,7 @@ public java.lang.Long getMed() { } /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * @param med med or {@code null} for none */ public BgpRoute setMed(java.lang.Long med) { @@ -133,7 +133,7 @@ public BgpRoute setMed(java.lang.Long med) { } /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @return value or {@code null} for none */ public java.lang.String getOrigin() { @@ -141,7 +141,7 @@ public java.lang.String getOrigin() { } /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @param origin origin or {@code null} for none */ public BgpRoute setOrigin(java.lang.String origin) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java index da0ffd82c86..34de456cbc3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java @@ -30,30 +30,30 @@ public final class BgpRouteAsPath extends com.google.api.client.json.GenericJson { /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List asns; /** - * [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the - * other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are - * ordered. + * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit + * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is + * SEQUENCE, these are ordered. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List asns32; /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. * @return value or {@code null} for none */ public java.util.List getAsns() { @@ -61,7 +61,7 @@ public java.util.List getAsns() { } /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. * @param asns asns or {@code null} for none */ public BgpRouteAsPath setAsns(java.util.List asns) { @@ -70,9 +70,9 @@ public BgpRouteAsPath setAsns(java.util.List asns) { } /** - * [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the - * other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are - * ordered. + * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit + * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is + * SEQUENCE, these are ordered. * @return value or {@code null} for none */ public java.util.List getAsns32() { @@ -80,9 +80,9 @@ public java.util.List getAsns32() { } /** - * [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the - * other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are - * ordered. + * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit + * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is + * SEQUENCE, these are ordered. * @param asns32 asns32 or {@code null} for none */ public BgpRouteAsPath setAsns32(java.util.List asns32) { @@ -91,7 +91,7 @@ public BgpRouteAsPath setAsns32(java.util.List asns32) { } /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) * @return value or {@code null} for none */ public java.lang.String getType() { @@ -99,7 +99,7 @@ public java.lang.String getType() { } /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) * @param type type or {@code null} for none */ public BgpRouteAsPath setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java index 85b65abd943..00fb6aa915d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java @@ -37,6 +37,13 @@ public final class BulkInsertInstanceResource extends com.google.api.client.json @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long count; + /** + * A flexible specification of machine type of instances to create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceFlexibilityPolicy instanceFlexibilityPolicy; + /** * The instance properties defining the VM instances to be created. Required if * sourceInstanceTemplate is not provided. @@ -117,6 +124,23 @@ public BulkInsertInstanceResource setCount(java.lang.Long count) { return this; } + /** + * A flexible specification of machine type of instances to create. + * @return value or {@code null} for none + */ + public InstanceFlexibilityPolicy getInstanceFlexibilityPolicy() { + return instanceFlexibilityPolicy; + } + + /** + * A flexible specification of machine type of instances to create. + * @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none + */ + public BulkInsertInstanceResource setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy instanceFlexibilityPolicy) { + this.instanceFlexibilityPolicy = instanceFlexibilityPolicy; + return this; + } + /** * The instance properties defining the VM instances to be created. Required if * sourceInstanceTemplate is not provided. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java index aca17118fa4..e8d1e697aa7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java @@ -38,7 +38,7 @@ public final class BulkInsertInstanceResourcePerInstanceProperties extends com.g private java.lang.String hostname; /** - * This field is only temporary. It will be removed. Do not use it. + * Output only. This field is only temporary. It will be removed. Do not use it. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -64,7 +64,7 @@ public BulkInsertInstanceResourcePerInstanceProperties setHostname(java.lang.Str } /** - * This field is only temporary. It will be removed. Do not use it. + * Output only. This field is only temporary. It will be removed. Do not use it. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -72,7 +72,7 @@ public java.lang.String getName() { } /** - * This field is only temporary. It will be removed. Do not use it. + * Output only. This field is only temporary. It will be removed. Do not use it. * @param name name or {@code null} for none */ public BulkInsertInstanceResourcePerInstanceProperties setName(java.lang.String name) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java new file mode 100644 index 00000000000..c66fcd01945 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for BundledLocalSsds. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BundledLocalSsds extends com.google.api.client.json.GenericJson { + + /** + * The default disk interface if the interface is not specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultInterface; + + /** + * The number of partitions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer partitionCount; + + /** + * The default disk interface if the interface is not specified. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultInterface() { + return defaultInterface; + } + + /** + * The default disk interface if the interface is not specified. + * @param defaultInterface defaultInterface or {@code null} for none + */ + public BundledLocalSsds setDefaultInterface(java.lang.String defaultInterface) { + this.defaultInterface = defaultInterface; + return this; + } + + /** + * The number of partitions. + * @return value or {@code null} for none + */ + public java.lang.Integer getPartitionCount() { + return partitionCount; + } + + /** + * The number of partitions. + * @param partitionCount partitionCount or {@code null} for none + */ + public BundledLocalSsds setPartitionCount(java.lang.Integer partitionCount) { + this.partitionCount = partitionCount; + return this; + } + + @Override + public BundledLocalSsds set(String fieldName, Object value) { + return (BundledLocalSsds) super.set(fieldName, value); + } + + @Override + public BundledLocalSsds clone() { + return (BundledLocalSsds) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java new file mode 100644 index 00000000000..d9a1ac93f2f --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A request to recommend the best way to consume the specified resources in the future. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CalendarModeAdviceRequest extends com.google.api.client.json.GenericJson { + + /** + * Specification of resources to create in the future. The key of the map is an arbitrary string + * specified by the caller. Value of the map is a specification of required resources and their + * constraints. Currently only one value is allowed in this map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map futureResourcesSpecs; + + /** + * Specification of resources to create in the future. The key of the map is an arbitrary string + * specified by the caller. Value of the map is a specification of required resources and their + * constraints. Currently only one value is allowed in this map. + * @return value or {@code null} for none + */ + public java.util.Map getFutureResourcesSpecs() { + return futureResourcesSpecs; + } + + /** + * Specification of resources to create in the future. The key of the map is an arbitrary string + * specified by the caller. Value of the map is a specification of required resources and their + * constraints. Currently only one value is allowed in this map. + * @param futureResourcesSpecs futureResourcesSpecs or {@code null} for none + */ + public CalendarModeAdviceRequest setFutureResourcesSpecs(java.util.Map futureResourcesSpecs) { + this.futureResourcesSpecs = futureResourcesSpecs; + return this; + } + + @Override + public CalendarModeAdviceRequest set(String fieldName, Object value) { + return (CalendarModeAdviceRequest) super.set(fieldName, value); + } + + @Override + public CalendarModeAdviceRequest clone() { + return (CalendarModeAdviceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java new file mode 100644 index 00000000000..b0e9bc7e715 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A response containing the recommended way of creating the specified resources in the future. It + * contains (will contain) multiple recommendations that can be analyzed by the customer and the + * best one can be picked. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CalendarModeAdviceResponse extends com.google.api.client.json.GenericJson { + + /** + * Recommendations where, how and when to create the requested resources in order to maximize + * their obtainability and minimize cost. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List recommendations; + + /** + * Recommendations where, how and when to create the requested resources in order to maximize + * their obtainability and minimize cost. + * @return value or {@code null} for none + */ + public java.util.List getRecommendations() { + return recommendations; + } + + /** + * Recommendations where, how and when to create the requested resources in order to maximize + * their obtainability and minimize cost. + * @param recommendations recommendations or {@code null} for none + */ + public CalendarModeAdviceResponse setRecommendations(java.util.List recommendations) { + this.recommendations = recommendations; + return this; + } + + @Override + public CalendarModeAdviceResponse set(String fieldName, Object value) { + return (CalendarModeAdviceResponse) super.set(fieldName, value); + } + + @Override + public CalendarModeAdviceResponse clone() { + return (CalendarModeAdviceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java new file mode 100644 index 00000000000..b72b349be77 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A single recommendation to create requested resources. Contains detailed recommendations for + * every future resources specification specified in CalendarModeAdviceRequest. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CalendarModeRecommendation extends com.google.api.client.json.GenericJson { + + /** + * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. + * Keys of the map correspond to keys specified in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map recommendationsPerSpec; + + /** + * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. + * Keys of the map correspond to keys specified in the request. + * @return value or {@code null} for none + */ + public java.util.Map getRecommendationsPerSpec() { + return recommendationsPerSpec; + } + + /** + * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. + * Keys of the map correspond to keys specified in the request. + * @param recommendationsPerSpec recommendationsPerSpec or {@code null} for none + */ + public CalendarModeRecommendation setRecommendationsPerSpec(java.util.Map recommendationsPerSpec) { + this.recommendationsPerSpec = recommendationsPerSpec; + return this; + } + + @Override + public CalendarModeRecommendation set(String fieldName, Object value) { + return (CalendarModeRecommendation) super.set(fieldName, value); + } + + @Override + public CalendarModeRecommendation clone() { + return (CalendarModeRecommendation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Commitment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Commitment.java index b8cecc3fbc9..5d94997191e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Commitment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Commitment.java @@ -58,7 +58,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String category; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,14 +95,15 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List existingReservations; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,7 +147,8 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String plan; /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * Output only. [Output Only] URL of the region where the commitment and committed resources are + * located. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -166,7 +168,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List reservations; /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -181,7 +183,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List resources; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,23 +198,23 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String splitSourceCommitment; /** - * [Output Only] Commitment start time inRFC3339 text format. + * Output only. [Output Only] Commitment start time inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String startTimestamp; /** - * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has - * an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, - * orEXPIRED. + * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each + * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, + * ACTIVE, orEXPIRED. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -228,10 +230,11 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. For example, - * type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory - * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies - * only to eligible resources of general purpose N1 machine series. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies + * only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE + * specifies a commitment that applies only to eligible resources of general purpose N1 machine + * series. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -290,7 +293,7 @@ public Commitment setCategory(java.lang.String category) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -298,7 +301,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Commitment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -347,7 +350,7 @@ public Commitment setDescription(java.lang.String description) { } /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getEndTimestamp() { @@ -355,7 +358,7 @@ public java.lang.String getEndTimestamp() { } /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * @param endTimestamp endTimestamp or {@code null} for none */ public Commitment setEndTimestamp(java.lang.String endTimestamp) { @@ -379,7 +382,8 @@ public Commitment setExistingReservations(java.util.List exist } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -387,7 +391,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Commitment setId(java.math.BigInteger id) { @@ -396,7 +401,7 @@ public Commitment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -404,7 +409,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. * @param kind kind or {@code null} for none */ public Commitment setKind(java.lang.String kind) { @@ -499,7 +504,8 @@ public Commitment setPlan(java.lang.String plan) { } /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * Output only. [Output Only] URL of the region where the commitment and committed resources are + * located. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -507,7 +513,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * Output only. [Output Only] URL of the region where the commitment and committed resources are + * located. * @param region region or {@code null} for none */ public Commitment setRegion(java.lang.String region) { @@ -545,7 +552,7 @@ public Commitment setReservations(java.util.List reservations) { } /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * @return value or {@code null} for none */ public CommitmentResourceStatus getResourceStatus() { @@ -553,7 +560,7 @@ public CommitmentResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Commitment setResourceStatus(CommitmentResourceStatus resourceStatus) { @@ -581,7 +588,7 @@ public Commitment setResources(java.util.List resources) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -589,7 +596,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Commitment setSelfLink(java.lang.String selfLink) { @@ -617,7 +624,7 @@ public Commitment setSplitSourceCommitment(java.lang.String splitSourceCommitmen } /** - * [Output Only] Commitment start time inRFC3339 text format. + * Output only. [Output Only] Commitment start time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getStartTimestamp() { @@ -625,7 +632,7 @@ public java.lang.String getStartTimestamp() { } /** - * [Output Only] Commitment start time inRFC3339 text format. + * Output only. [Output Only] Commitment start time inRFC3339 text format. * @param startTimestamp startTimestamp or {@code null} for none */ public Commitment setStartTimestamp(java.lang.String startTimestamp) { @@ -634,9 +641,9 @@ public Commitment setStartTimestamp(java.lang.String startTimestamp) { } /** - * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has - * an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, - * orEXPIRED. + * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each + * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, + * ACTIVE, orEXPIRED. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -644,9 +651,9 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has - * an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, - * orEXPIRED. + * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each + * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, + * ACTIVE, orEXPIRED. * @param status status or {@code null} for none */ public Commitment setStatus(java.lang.String status) { @@ -655,7 +662,7 @@ public Commitment setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -663,7 +670,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @param statusMessage statusMessage or {@code null} for none */ public Commitment setStatusMessage(java.lang.String statusMessage) { @@ -681,10 +688,11 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. For example, - * type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory - * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies - * only to eligible resources of general purpose N1 machine series. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies + * only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE + * specifies a commitment that applies only to eligible resources of general purpose N1 machine + * series. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -701,10 +709,11 @@ public java.lang.String getType() { * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. For example, - * type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory - * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies - * only to eligible resources of general purpose N1 machine series. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies + * only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE + * specifies a commitment that applies only to eligible resources of general purpose N1 machine + * series. * @param type type or {@code null} for none */ public Commitment setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java index ebea0717115..f2e7e93ec6f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java @@ -44,8 +44,8 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for aggregated lists of - * commitments. + * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for + * aggregated lists of commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public CommitmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CommitmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentList.java index 888c1afdb74..1b42ceec78e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentList.java @@ -50,7 +50,8 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of + * commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public CommitmentList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of + * commitments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of + * commitments. * @param kind kind or {@code null} for none */ public CommitmentList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public CommitmentList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public CommitmentList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java index f044c949ee2..f2ef349ba88 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java @@ -30,18 +30,18 @@ public final class CommitmentResourceStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] Indicates the end time of customer's eligibility to send custom term requests in - * RFC3339 text format. Term extension requests that (not the end time in the request) after this - * time will be rejected. + * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term + * requests in RFC3339 text format. Term extension requests that (not the end time in the request) + * after this time will be rejected. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String customTermEligibilityEndTimestamp; /** - * [Output Only] Indicates the end time of customer's eligibility to send custom term requests in - * RFC3339 text format. Term extension requests that (not the end time in the request) after this - * time will be rejected. + * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term + * requests in RFC3339 text format. Term extension requests that (not the end time in the request) + * after this time will be rejected. * @return value or {@code null} for none */ public java.lang.String getCustomTermEligibilityEndTimestamp() { @@ -49,9 +49,9 @@ public java.lang.String getCustomTermEligibilityEndTimestamp() { } /** - * [Output Only] Indicates the end time of customer's eligibility to send custom term requests in - * RFC3339 text format. Term extension requests that (not the end time in the request) after this - * time will be rejected. + * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term + * requests in RFC3339 text format. Term extension requests that (not the end time in the request) + * after this time will be rejected. * @param customTermEligibilityEndTimestamp customTermEligibilityEndTimestamp or {@code null} for none */ public CommitmentResourceStatus setCustomTermEligibilityEndTimestamp(java.lang.String customTermEligibilityEndTimestamp) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java new file mode 100644 index 00000000000..54846cd5537 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java @@ -0,0 +1,397 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a composite health check. + * + * A composite health check resource specifies the health source resources and the health + * destination resource to which the aggregated health result from the health source resources is + * delivered. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CompositeHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must + * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same + * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not + * supported). Can be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthDestination; + + /** + * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is + * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must + * be regional and in the same region as theCompositeHealthCheck. Can be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthSources; + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] URL of the region where the composite health check resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public CompositeHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public CompositeHealthCheck setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public CompositeHealthCheck setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * @see #setFingerprint() + * + *

      + * The value is encoded Base64 or {@code null} for none. + *

      + * + * @since 1.14 + */ + public CompositeHealthCheck encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must + * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same + * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not + * supported). Can be mutated. + * @return value or {@code null} for none + */ + public java.lang.String getHealthDestination() { + return healthDestination; + } + + /** + * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must + * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same + * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not + * supported). Can be mutated. + * @param healthDestination healthDestination or {@code null} for none + */ + public CompositeHealthCheck setHealthDestination(java.lang.String healthDestination) { + this.healthDestination = healthDestination; + return this; + } + + /** + * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is + * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must + * be regional and in the same region as theCompositeHealthCheck. Can be mutated. + * @return value or {@code null} for none + */ + public java.util.List getHealthSources() { + return healthSources; + } + + /** + * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is + * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must + * be regional and in the same region as theCompositeHealthCheck. Can be mutated. + * @param healthSources healthSources or {@code null} for none + */ + public CompositeHealthCheck setHealthSources(java.util.List healthSources) { + this.healthSources = healthSources; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public CompositeHealthCheck setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * @param kind kind or {@code null} for none + */ + public CompositeHealthCheck setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public CompositeHealthCheck setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the composite health check resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the composite health check resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public CompositeHealthCheck setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public CompositeHealthCheck setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public CompositeHealthCheck setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + @Override + public CompositeHealthCheck set(String fieldName, Object value) { + return (CompositeHealthCheck) super.set(fieldName, value); + } + + @Override + public CompositeHealthCheck clone() { + return (CompositeHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java new file mode 100644 index 00000000000..88a96d851a4 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java @@ -0,0 +1,401 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Contains a list of CompositeHealthChecksScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CompositeHealthCheckAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of CompositeHealthChecksScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of CompositeHealthChecksScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of CompositeHealthChecksScopedList resources. + * @param items items or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CompositeHealthCheckAggregatedList set(String fieldName, Object value) { + return (CompositeHealthCheckAggregatedList) super.set(fieldName, value); + } + + @Override + public CompositeHealthCheckAggregatedList clone() { + return (CompositeHealthCheckAggregatedList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for CompositeHealthCheckAggregatedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java new file mode 100644 index 00000000000..d0904ef3566 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for CompositeHealthCheckList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CompositeHealthCheckList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of CompositeHealthCheck resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider CompositeHealthCheck used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(CompositeHealthCheck.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public CompositeHealthCheckList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of CompositeHealthCheck resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of CompositeHealthCheck resources. + * @param items items or {@code null} for none + */ + public CompositeHealthCheckList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * @param kind kind or {@code null} for none + */ + public CompositeHealthCheckList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CompositeHealthCheckList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public CompositeHealthCheckList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public CompositeHealthCheckList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CompositeHealthCheckList set(String fieldName, Object value) { + return (CompositeHealthCheckList) super.set(fieldName, value); + } + + @Override + public CompositeHealthCheckList clone() { + return (CompositeHealthCheckList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for CompositeHealthCheckListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java new file mode 100644 index 00000000000..a565eeba4d2 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java @@ -0,0 +1,281 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for CompositeHealthChecksScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CompositeHealthChecksScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of CompositeHealthChecks contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List compositeHealthChecks; + + static { + // hack to force ProGuard to consider CompositeHealthCheck used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(CompositeHealthCheck.class); + } + + /** + * Informational warning which replaces the list of composite health checks when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of CompositeHealthChecks contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getCompositeHealthChecks() { + return compositeHealthChecks; + } + + /** + * A list of CompositeHealthChecks contained in this scope. + * @param compositeHealthChecks compositeHealthChecks or {@code null} for none + */ + public CompositeHealthChecksScopedList setCompositeHealthChecks(java.util.List compositeHealthChecks) { + this.compositeHealthChecks = compositeHealthChecks; + return this; + } + + /** + * Informational warning which replaces the list of composite health checks when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of composite health checks when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public CompositeHealthChecksScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CompositeHealthChecksScopedList set(String fieldName, Object value) { + return (CompositeHealthChecksScopedList) super.set(fieldName, value); + } + + @Override + public CompositeHealthChecksScopedList clone() { + return (CompositeHealthChecksScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of composite health checks when the list is empty. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for CompositeHealthChecksScopedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java index 46323370db3..02b1ed22200 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java @@ -33,7 +33,7 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,15 +47,16 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +74,14 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -88,7 +89,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CrossSiteNetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -114,8 +115,8 @@ public CrossSiteNetwork setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -123,8 +124,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public CrossSiteNetwork setId(java.math.BigInteger id) { @@ -133,7 +134,8 @@ public CrossSiteNetwork setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -141,7 +143,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. * @param kind kind or {@code null} for none */ public CrossSiteNetwork setKind(java.lang.String kind) { @@ -175,7 +178,7 @@ public CrossSiteNetwork setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -183,7 +186,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public CrossSiteNetwork setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java index 110bd4bdc2d..24e29d0450f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java @@ -56,7 +56,8 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,7 +81,8 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public CrossSiteNetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. * @param kind kind or {@code null} for none */ public CrossSiteNetworkList setKind(java.lang.String kind) { @@ -200,7 +204,8 @@ public CrossSiteNetworkList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public CrossSiteNetworkList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java index bd7dd2119f6..43ef748e5ec 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java @@ -72,14 +72,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private DiskAsyncReplication asyncPrimaryDisk; /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map asyncSecondaryDisks; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -133,14 +133,15 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * Output only. [Output Only] Type of the resource. Always compute#disk for disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -167,14 +168,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lastAttachTimestamp; /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -256,9 +257,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long provisionedThroughput; /** - * [Output Only] URL of the region where the disk resides. Only applicable for regional resources. - * You must specify this field as part of the HTTP request URL. It is not settable as a field in - * the request body. + * Output only. [Output Only] URL of the region where the disk resides. Only applicable for + * regional resources. You must specify this field as part of the HTTP request URL. It is not + * settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -280,7 +281,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -294,14 +295,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -320,16 +321,16 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long sizeGb; /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceConsistencyGroupPolicy; /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -349,10 +350,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceDisk; /** - * [Output Only] The unique ID of the disk used to create this disk. This value identifies the - * exact disk that was used to create this persistent disk. For example, if you created the - * persistent disk from a disk that was later deleted and recreated under the same name, the - * source disk ID would identify the exact version of the disk that was used. + * Output only. [Output Only] The unique ID of the disk used to create this disk. This value + * identifies the exact disk that was used to create this persistent disk. For example, if you + * created the persistent disk from a disk that was later deleted and recreated under the same + * name, the source disk ID would identify the exact version of the disk that was used. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -394,10 +395,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceImageEncryptionKey; /** - * [Output Only] The ID value of the image used to create this disk. This value identifies the - * exact image that was used to create this persistent disk. For example, if you created the - * persistent disk from an image that was later deleted and recreated under the same name, the - * source image ID would identify the exact version of the image that was used. + * Output only. [Output Only] The ID value of the image used to create this disk. This value + * identifies the exact image that was used to create this persistent disk. For example, if you + * created the persistent disk from an image that was later deleted and recreated under the same + * name, the source image ID would identify the exact version of the image that was used. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -415,8 +416,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceInstantSnapshot; /** - * [Output Only] The unique ID of the instant snapshot used to create this disk. This value - * identifies the exact instant snapshot that was used to create this persistent disk. For + * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This + * value identifies the exact instant snapshot that was used to create this persistent disk. For * example, if you created the persistent disk from an instant snapshot that was later deleted and * recreated under the same name, the source instant snapshot ID would identify the exact version * of the instant snapshot that was used. @@ -444,10 +445,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceSnapshotEncryptionKey; /** - * [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the - * exact snapshot that was used to create this persistent disk. For example, if you created the - * persistent disk from a snapshot that was later deleted and recreated under the same name, the - * source snapshot ID would identify the exact version of the snapshot that was used. + * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value + * identifies the exact snapshot that was used to create this persistent disk. For example, if you + * created the persistent disk from a snapshot that was later deleted and recreated under the same + * name, the source snapshot ID would identify the exact version of the snapshot that was used. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -465,9 +466,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceStorageObject; /** - * [Output Only] The status of disk creation. - CREATING: Disk is provisioning. - * - RESTORING: Source data is being copied into the disk. - FAILED: Disk creation - * failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. + * Output only. [Output Only] The status of disk creation. - CREATING: Disk is + * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: + * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -494,7 +495,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * [Output Only] Links to the users of the disk (attached instances) in + * Output only. [Output Only] Links to the users of the disk (attached instances) in * form:projects/project/zones/zone/instances/instance * The value may be {@code null}. */ @@ -502,8 +503,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List users; /** - * [Output Only] URL of the zone where the disk resides. You must specify this field as part of - * the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -573,7 +574,7 @@ public Disk setAsyncPrimaryDisk(DiskAsyncReplication asyncPrimaryDisk) { } /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. * @return value or {@code null} for none */ public java.util.Map getAsyncSecondaryDisks() { @@ -581,7 +582,7 @@ public java.util.Map getAsyncSecondaryDisks() } /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. * @param asyncSecondaryDisks asyncSecondaryDisks or {@code null} for none */ public Disk setAsyncSecondaryDisks(java.util.Map asyncSecondaryDisks) { @@ -590,7 +591,7 @@ public Disk setAsyncSecondaryDisks(java.util.Map guestOsFeatures) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -721,7 +723,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Disk setId(java.math.BigInteger id) { @@ -730,7 +733,7 @@ public Disk setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * Output only. [Output Only] Type of the resource. Always compute#disk for disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -738,7 +741,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * Output only. [Output Only] Type of the resource. Always compute#disk for disks. * @param kind kind or {@code null} for none */ public Disk setKind(java.lang.String kind) { @@ -833,7 +836,7 @@ public Disk setLabels(java.util.Map labels) { } /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastAttachTimestamp() { @@ -841,7 +844,7 @@ public java.lang.String getLastAttachTimestamp() { } /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. * @param lastAttachTimestamp lastAttachTimestamp or {@code null} for none */ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { @@ -850,7 +853,7 @@ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { } /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastDetachTimestamp() { @@ -858,7 +861,7 @@ public java.lang.String getLastDetachTimestamp() { } /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * @param lastDetachTimestamp lastDetachTimestamp or {@code null} for none */ public Disk setLastDetachTimestamp(java.lang.String lastDetachTimestamp) { @@ -1044,9 +1047,9 @@ public Disk setProvisionedThroughput(java.lang.Long provisionedThroughput) { } /** - * [Output Only] URL of the region where the disk resides. Only applicable for regional resources. - * You must specify this field as part of the HTTP request URL. It is not settable as a field in - * the request body. + * Output only. [Output Only] URL of the region where the disk resides. Only applicable for + * regional resources. You must specify this field as part of the HTTP request URL. It is not + * settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -1054,9 +1057,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the disk resides. Only applicable for regional resources. - * You must specify this field as part of the HTTP request URL. It is not settable as a field in - * the request body. + * Output only. [Output Only] URL of the region where the disk resides. Only applicable for + * regional resources. You must specify this field as part of the HTTP request URL. It is not + * settable as a field in the request body. * @param region region or {@code null} for none */ public Disk setRegion(java.lang.String region) { @@ -1101,7 +1104,7 @@ public Disk setResourcePolicies(java.util.List resourcePolicie } /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * @return value or {@code null} for none */ public DiskResourceStatus getResourceStatus() { @@ -1109,7 +1112,7 @@ public DiskResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Disk setResourceStatus(DiskResourceStatus resourceStatus) { @@ -1135,7 +1138,7 @@ public Disk setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1143,7 +1146,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1152,7 +1155,7 @@ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1160,7 +1163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public Disk setSelfLink(java.lang.String selfLink) { @@ -1196,8 +1199,8 @@ public Disk setSizeGb(java.lang.Long sizeGb) { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. * @return value or {@code null} for none */ public java.lang.String getSourceConsistencyGroupPolicy() { @@ -1205,8 +1208,8 @@ public java.lang.String getSourceConsistencyGroupPolicy() { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. * @param sourceConsistencyGroupPolicy sourceConsistencyGroupPolicy or {@code null} for none */ public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGroupPolicy) { @@ -1215,8 +1218,8 @@ public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGr } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. * @return value or {@code null} for none */ public java.lang.String getSourceConsistencyGroupPolicyId() { @@ -1224,8 +1227,8 @@ public java.lang.String getSourceConsistencyGroupPolicyId() { } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. * @param sourceConsistencyGroupPolicyId sourceConsistencyGroupPolicyId or {@code null} for none */ public Disk setSourceConsistencyGroupPolicyId(java.lang.String sourceConsistencyGroupPolicyId) { @@ -1263,10 +1266,10 @@ public Disk setSourceDisk(java.lang.String sourceDisk) { } /** - * [Output Only] The unique ID of the disk used to create this disk. This value identifies the - * exact disk that was used to create this persistent disk. For example, if you created the - * persistent disk from a disk that was later deleted and recreated under the same name, the - * source disk ID would identify the exact version of the disk that was used. + * Output only. [Output Only] The unique ID of the disk used to create this disk. This value + * identifies the exact disk that was used to create this persistent disk. For example, if you + * created the persistent disk from a disk that was later deleted and recreated under the same + * name, the source disk ID would identify the exact version of the disk that was used. * @return value or {@code null} for none */ public java.lang.String getSourceDiskId() { @@ -1274,10 +1277,10 @@ public java.lang.String getSourceDiskId() { } /** - * [Output Only] The unique ID of the disk used to create this disk. This value identifies the - * exact disk that was used to create this persistent disk. For example, if you created the - * persistent disk from a disk that was later deleted and recreated under the same name, the - * source disk ID would identify the exact version of the disk that was used. + * Output only. [Output Only] The unique ID of the disk used to create this disk. This value + * identifies the exact disk that was used to create this persistent disk. For example, if you + * created the persistent disk from a disk that was later deleted and recreated under the same + * name, the source disk ID would identify the exact version of the disk that was used. * @param sourceDiskId sourceDiskId or {@code null} for none */ public Disk setSourceDiskId(java.lang.String sourceDiskId) { @@ -1362,10 +1365,10 @@ public Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncrypt } /** - * [Output Only] The ID value of the image used to create this disk. This value identifies the - * exact image that was used to create this persistent disk. For example, if you created the - * persistent disk from an image that was later deleted and recreated under the same name, the - * source image ID would identify the exact version of the image that was used. + * Output only. [Output Only] The ID value of the image used to create this disk. This value + * identifies the exact image that was used to create this persistent disk. For example, if you + * created the persistent disk from an image that was later deleted and recreated under the same + * name, the source image ID would identify the exact version of the image that was used. * @return value or {@code null} for none */ public java.lang.String getSourceImageId() { @@ -1373,10 +1376,10 @@ public java.lang.String getSourceImageId() { } /** - * [Output Only] The ID value of the image used to create this disk. This value identifies the - * exact image that was used to create this persistent disk. For example, if you created the - * persistent disk from an image that was later deleted and recreated under the same name, the - * source image ID would identify the exact version of the image that was used. + * Output only. [Output Only] The ID value of the image used to create this disk. This value + * identifies the exact image that was used to create this persistent disk. For example, if you + * created the persistent disk from an image that was later deleted and recreated under the same + * name, the source image ID would identify the exact version of the image that was used. * @param sourceImageId sourceImageId or {@code null} for none */ public Disk setSourceImageId(java.lang.String sourceImageId) { @@ -1410,8 +1413,8 @@ public Disk setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { } /** - * [Output Only] The unique ID of the instant snapshot used to create this disk. This value - * identifies the exact instant snapshot that was used to create this persistent disk. For + * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This + * value identifies the exact instant snapshot that was used to create this persistent disk. For * example, if you created the persistent disk from an instant snapshot that was later deleted and * recreated under the same name, the source instant snapshot ID would identify the exact version * of the instant snapshot that was used. @@ -1422,8 +1425,8 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [Output Only] The unique ID of the instant snapshot used to create this disk. This value - * identifies the exact instant snapshot that was used to create this persistent disk. For + * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This + * value identifies the exact instant snapshot that was used to create this persistent disk. For * example, if you created the persistent disk from an instant snapshot that was later deleted and * recreated under the same name, the source instant snapshot ID would identify the exact version * of the instant snapshot that was used. @@ -1477,10 +1480,10 @@ public Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotE } /** - * [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the - * exact snapshot that was used to create this persistent disk. For example, if you created the - * persistent disk from a snapshot that was later deleted and recreated under the same name, the - * source snapshot ID would identify the exact version of the snapshot that was used. + * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value + * identifies the exact snapshot that was used to create this persistent disk. For example, if you + * created the persistent disk from a snapshot that was later deleted and recreated under the same + * name, the source snapshot ID would identify the exact version of the snapshot that was used. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotId() { @@ -1488,10 +1491,10 @@ public java.lang.String getSourceSnapshotId() { } /** - * [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the - * exact snapshot that was used to create this persistent disk. For example, if you created the - * persistent disk from a snapshot that was later deleted and recreated under the same name, the - * source snapshot ID would identify the exact version of the snapshot that was used. + * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value + * identifies the exact snapshot that was used to create this persistent disk. For example, if you + * created the persistent disk from a snapshot that was later deleted and recreated under the same + * name, the source snapshot ID would identify the exact version of the snapshot that was used. * @param sourceSnapshotId sourceSnapshotId or {@code null} for none */ public Disk setSourceSnapshotId(java.lang.String sourceSnapshotId) { @@ -1525,9 +1528,9 @@ public Disk setSourceStorageObject(java.lang.String sourceStorageObject) { } /** - * [Output Only] The status of disk creation. - CREATING: Disk is provisioning. - * - RESTORING: Source data is being copied into the disk. - FAILED: Disk creation - * failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. + * Output only. [Output Only] The status of disk creation. - CREATING: Disk is + * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: + * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -1535,9 +1538,9 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of disk creation. - CREATING: Disk is provisioning. - * - RESTORING: Source data is being copied into the disk. - FAILED: Disk creation - * failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. + * Output only. [Output Only] The status of disk creation. - CREATING: Disk is + * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: + * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. * @param status status or {@code null} for none */ public Disk setStatus(java.lang.String status) { @@ -1592,7 +1595,7 @@ public Disk setType(java.lang.String type) { } /** - * [Output Only] Links to the users of the disk (attached instances) in + * Output only. [Output Only] Links to the users of the disk (attached instances) in * form:projects/project/zones/zone/instances/instance * @return value or {@code null} for none */ @@ -1601,7 +1604,7 @@ public java.util.List getUsers() { } /** - * [Output Only] Links to the users of the disk (attached instances) in + * Output only. [Output Only] Links to the users of the disk (attached instances) in * form:projects/project/zones/zone/instances/instance * @param users users or {@code null} for none */ @@ -1611,8 +1614,8 @@ public Disk setUsers(java.util.List users) { } /** - * [Output Only] URL of the zone where the disk resides. You must specify this field as part of - * the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -1620,8 +1623,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the zone where the disk resides. You must specify this field as part of - * the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. * @param zone zone or {@code null} for none */ public Disk setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java index b61dce2084d..a396284404a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java @@ -44,8 +44,8 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated + * lists of persistent disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public DiskAggregatedList setItems(java.util.Map items) } /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated + * lists of persistent disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated + * lists of persistent disks. * @param kind kind or {@code null} for none */ public DiskAggregatedList setKind(java.lang.String kind) { @@ -159,7 +159,7 @@ public DiskAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public DiskAggregatedList setSelfLink(java.lang.String selfLink) { @@ -176,7 +176,7 @@ public DiskAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java index c8fb4fbcba9..e31cddc0dd0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java @@ -30,16 +30,16 @@ public final class DiskAsyncReplication extends com.google.api.client.json.GenericJson { /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String consistencyGroupPolicy; /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,19 +56,19 @@ public final class DiskAsyncReplication extends com.google.api.client.json.Gener private java.lang.String disk; /** - * [Output Only] The unique ID of the other disk asynchronously replicated to or from the current - * disk. This value identifies the exact disk that was used to create this replication. For - * example, if you started replicating the persistent disk from a disk that was later deleted and - * recreated under the same name, the disk ID would identify the exact version of the disk that - * was used. + * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from + * the current disk. This value identifies the exact disk that was used to create this + * replication. For example, if you started replicating the persistent disk from a disk that was + * later deleted and recreated under the same name, the disk ID would identify the exact version + * of the disk that was used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String diskId; /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. * @return value or {@code null} for none */ public java.lang.String getConsistencyGroupPolicy() { @@ -76,8 +76,8 @@ public java.lang.String getConsistencyGroupPolicy() { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. * @param consistencyGroupPolicy consistencyGroupPolicy or {@code null} for none */ public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consistencyGroupPolicy) { @@ -86,8 +86,8 @@ public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consisten } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. * @return value or {@code null} for none */ public java.lang.String getConsistencyGroupPolicyId() { @@ -95,8 +95,8 @@ public java.lang.String getConsistencyGroupPolicyId() { } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. * @param consistencyGroupPolicyId consistencyGroupPolicyId or {@code null} for none */ public DiskAsyncReplication setConsistencyGroupPolicyId(java.lang.String consistencyGroupPolicyId) { @@ -128,11 +128,11 @@ public DiskAsyncReplication setDisk(java.lang.String disk) { } /** - * [Output Only] The unique ID of the other disk asynchronously replicated to or from the current - * disk. This value identifies the exact disk that was used to create this replication. For - * example, if you started replicating the persistent disk from a disk that was later deleted and - * recreated under the same name, the disk ID would identify the exact version of the disk that - * was used. + * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from + * the current disk. This value identifies the exact disk that was used to create this + * replication. For example, if you started replicating the persistent disk from a disk that was + * later deleted and recreated under the same name, the disk ID would identify the exact version + * of the disk that was used. * @return value or {@code null} for none */ public java.lang.String getDiskId() { @@ -140,11 +140,11 @@ public java.lang.String getDiskId() { } /** - * [Output Only] The unique ID of the other disk asynchronously replicated to or from the current - * disk. This value identifies the exact disk that was used to create this replication. For - * example, if you started replicating the persistent disk from a disk that was later deleted and - * recreated under the same name, the disk ID would identify the exact version of the disk that - * was used. + * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from + * the current disk. This value identifies the exact disk that was used to create this + * replication. For example, if you started replicating the persistent disk from a disk that was + * later deleted and recreated under the same name, the disk ID would identify the exact version + * of the disk that was used. * @param diskId diskId or {@code null} for none */ public DiskAsyncReplication setDiskId(java.lang.String diskId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskList.java index 340802d6056..af6eab69258 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskList.java @@ -50,7 +50,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public DiskList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. * @param kind kind or {@code null} for none */ public DiskList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public DiskList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public DiskList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskParams.java index 1ffac25638f..ca12f2eb573 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskParams.java @@ -30,18 +30,22 @@ public final class DiskParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map resourceManagerTags; /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public DiskParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskType.java index 5e4e104b541..68f00cf8b7e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskType.java @@ -79,7 +79,7 @@ public final class DiskType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -209,7 +209,7 @@ public DiskType setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -217,7 +217,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. * @param kind kind or {@code null} for none */ public DiskType setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java index c1ded43bc49..cf1cb69068d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public DiskTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeList.java index 514356f0f16..c14af4a2a50 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeList.java @@ -50,7 +50,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public DiskTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. * @param kind kind or {@code null} for none */ public DiskTypeList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public DiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public DiskTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java index b9ce02ac6f5..5559090d792 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java @@ -38,7 +38,11 @@ public final class DistributionPolicy extends com.google.api.client.json.Generic private java.lang.String targetShape; /** - * Zones where the regional managed instance group will create and manage its instances. + * Zones where the regional managed instance group will create and manage its instances. By + * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an + * AI zone is available in the specified region. To create instances in an AI zone in the selected + * region, you must explicitly specify it in the distribution policy together with the other + * preferred zones. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -64,7 +68,11 @@ public DistributionPolicy setTargetShape(java.lang.String targetShape) { } /** - * Zones where the regional managed instance group will create and manage its instances. + * Zones where the regional managed instance group will create and manage its instances. By + * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an + * AI zone is available in the specified region. To create instances in an AI zone in the selected + * region, you must explicitly specify it in the distribution policy together with the other + * preferred zones. * @return value or {@code null} for none */ public java.util.List getZones() { @@ -72,7 +80,11 @@ public java.util.List getZones() { } /** - * Zones where the regional managed instance group will create and manage its instances. + * Zones where the regional managed instance group will create and manage its instances. By + * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an + * AI zone is available in the specified region. To create instances in an AI zone in the selected + * region, you must explicitly specify it in the distribution policy together with the other + * preferred zones. * @param zones zones or {@code null} for none */ public DistributionPolicy setZones(java.util.List zones) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java index b29773cfbb2..5e63c8f113a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java @@ -50,8 +50,8 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for + * exchanged peering routes lists. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public ExchangedPeeringRoutesList setItems(java.util.List } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for + * exchanged peering routes lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for + * exchanged peering routes lists. * @param kind kind or {@code null} for none */ public ExchangedPeeringRoutesList setKind(java.lang.String kind) { @@ -158,7 +158,7 @@ public ExchangedPeeringRoutesList setNextPageToken(java.lang.String nextPageToke } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ExchangedPeeringRoutesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java index 8e6b9b4a0b1..268e207e284 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java @@ -40,7 +40,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,7 +54,8 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -72,7 +73,8 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.util.List interfaces; /** - * [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways. + * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for + * externalVpnGateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,6 +112,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic @com.google.api.client.util.Key private java.lang.String name; + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExternalVpnGatewayParams params; + /** * Indicates the user-supplied redundancy type of this external VPN gateway. * The value may be {@code null}. @@ -118,14 +128,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String redundancyType; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -133,7 +143,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ExternalVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -159,7 +169,8 @@ public ExternalVpnGateway setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -167,7 +178,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public ExternalVpnGateway setId(java.math.BigInteger id) { @@ -201,7 +213,8 @@ public ExternalVpnGateway setInterfaces(java.util.List items) } /** - * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @return value or {@code null} for none */ @@ -146,7 +146,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @param kind kind or {@code null} for none */ @@ -179,7 +179,7 @@ public ExternalVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -187,7 +187,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ExternalVpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java new file mode 100644 index 00000000000..ae9a0a6eea6 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for ExternalVpnGatewayParams. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExternalVpnGatewayParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public ExternalVpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public ExternalVpnGatewayParams set(String fieldName, Object value) { + return (ExternalVpnGatewayParams) super.set(fieldName, value); + } + + @Override + public ExternalVpnGatewayParams clone() { + return (ExternalVpnGatewayParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java index a183f6c8ef6..790c4fd6faa 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java @@ -47,7 +47,7 @@ public final class Firewall extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -101,14 +101,15 @@ public final class Firewall extends com.google.api.client.json.GenericJson { private java.lang.Boolean disabled; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -256,7 +257,7 @@ public Firewall setAllowed(java.util.List allowed) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -264,7 +265,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Firewall setCreationTimestamp(java.lang.String creationTimestamp) { @@ -370,7 +371,8 @@ public Firewall setDisabled(java.lang.Boolean disabled) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -378,7 +380,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Firewall setId(java.math.BigInteger id) { @@ -387,7 +390,7 @@ public Firewall setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -395,7 +398,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. * @param kind kind or {@code null} for none */ public Firewall setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallList.java index 96b60b0b731..c80b819385c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallList.java @@ -50,7 +50,8 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of + * firewalls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public FirewallList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of + * firewalls. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of + * firewalls. * @param kind kind or {@code null} for none */ public FirewallList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public FirewallList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public FirewallList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java index 609dcacbde5..3f0fd7877bd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class FirewallPoliciesListAssociationsResponse extends com.google.a private java.util.List associations; /** - * [Output Only] Type of firewallPolicy associations. + * Output only. [Output Only] Type of firewallPolicy associations. * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. * The value may be {@code null}. */ @@ -62,7 +62,7 @@ public FirewallPoliciesListAssociationsResponse setAssociations(java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,8 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,8 +108,8 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.util.List packetMirroringRules; /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to + * network firewall policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -124,17 +125,17 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String policyType; /** - * [Output Only] URL of the region where the regional firewall policy resides. This field is not - * applicable to global firewall policies. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional firewall policy resides. This + * field is not applicable to global firewall policies. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy + * can not exceed a set number of tuples. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -157,7 +158,7 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -194,7 +195,7 @@ public FirewallPolicy setAssociations(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -202,7 +203,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public FirewallPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -345,7 +346,8 @@ public FirewallPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -353,7 +355,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * @param kind kind or {@code null} for none */ public FirewallPolicy setKind(java.lang.String kind) { @@ -398,8 +401,8 @@ public FirewallPolicy setPacketMirroringRules(java.util.List } /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to + * network firewall policies. * @return value or {@code null} for none */ public java.lang.String getParent() { @@ -407,8 +410,8 @@ public java.lang.String getParent() { } /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to + * network firewall policies. * @param parent parent or {@code null} for none */ public FirewallPolicy setParent(java.lang.String parent) { @@ -438,9 +441,9 @@ public FirewallPolicy setPolicyType(java.lang.String policyType) { } /** - * [Output Only] URL of the region where the regional firewall policy resides. This field is not - * applicable to global firewall policies. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional firewall policy resides. This + * field is not applicable to global firewall policies. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -448,9 +451,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional firewall policy resides. This field is not - * applicable to global firewall policies. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional firewall policy resides. This + * field is not applicable to global firewall policies. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * @param region region or {@code null} for none */ public FirewallPolicy setRegion(java.lang.String region) { @@ -459,8 +462,8 @@ public FirewallPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy + * can not exceed a set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -468,8 +471,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy + * can not exceed a set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public FirewallPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -516,7 +519,7 @@ public FirewallPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -524,7 +527,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public FirewallPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java index e9de8434872..5c30821cd4c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java @@ -45,7 +45,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.String displayName; /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,7 +59,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.String name; /** - * [Output Only] The short name of the firewall policy of the association. + * Output only. [Output Only] The short name of the firewall policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -102,7 +102,7 @@ public FirewallPolicyAssociation setDisplayName(java.lang.String displayName) { } /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicyId() { @@ -110,7 +110,7 @@ public java.lang.String getFirewallPolicyId() { } /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * @param firewallPolicyId firewallPolicyId or {@code null} for none */ public FirewallPolicyAssociation setFirewallPolicyId(java.lang.String firewallPolicyId) { @@ -136,7 +136,7 @@ public FirewallPolicyAssociation setName(java.lang.String name) { } /** - * [Output Only] The short name of the firewall policy of the association. + * Output only. [Output Only] The short name of the firewall policy of the association. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -144,7 +144,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy of the association. + * Output only. [Output Only] The short name of the firewall policy of the association. * @param shortName shortName or {@code null} for none */ public FirewallPolicyAssociation setShortName(java.lang.String shortName) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java index 5f6cb2a7687..5ced755c298 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java @@ -50,7 +50,8 @@ public final class FirewallPolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public FirewallPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * @param kind kind or {@code null} for none */ public FirewallPolicyList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java index 718335aa939..eb6a7bc4f56 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java @@ -72,8 +72,8 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.Boolean enableLogging; /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall + * rules andcompute#packetMirroringRule for packet mirroring rules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +104,7 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.String ruleName; /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -255,8 +255,8 @@ public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) { } /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall + * rules andcompute#packetMirroringRule for packet mirroring rules. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -264,8 +264,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall + * rules andcompute#packetMirroringRule for packet mirroring rules. * @param kind kind or {@code null} for none */ public FirewallPolicyRule setKind(java.lang.String kind) { @@ -331,7 +331,7 @@ public FirewallPolicyRule setRuleName(java.lang.String ruleName) { } /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -339,7 +339,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public FirewallPolicyRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java index 7a0a47beb2c..2a23b7aa765 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java @@ -53,6 +53,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @com.google.api.client.util.Key private java.util.List destIpRanges; + /** + * Network context of the traffic destination. Allowed values are: - UNSPECIFIED + * - INTERNET - NON_INTERNET + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destNetworkContext; + /** * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - * INTERNET - NON_INTERNET @@ -108,6 +116,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @com.google.api.client.util.Key private java.util.List srcIpRanges; + /** + * Network context of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String srcNetworkContext; + /** * Network type of the traffic source. Allowed values are: - UNSPECIFIED - * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS @@ -204,6 +220,25 @@ public FirewallPolicyRuleMatcher setDestIpRanges(java.util.List return this; } + /** + * Network context of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * @return value or {@code null} for none + */ + public java.lang.String getSrcNetworkContext() { + return srcNetworkContext; + } + + /** + * Network context of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * @param srcNetworkContext srcNetworkContext or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcNetworkContext(java.lang.String srcNetworkContext) { + this.srcNetworkContext = srcNetworkContext; + return this; + } + /** * Network type of the traffic source. Allowed values are: - UNSPECIFIED - * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java index b8b606b7f46..3aa52411ce1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java @@ -37,8 +37,8 @@ public final class FirewallPolicyRuleSecureTag extends com.google.api.client.jso private java.lang.String name; /** - * [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is - * `INEFFECTIVE` when it is deleted or its network is deleted. + * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A + * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,8 +62,8 @@ public FirewallPolicyRuleSecureTag setName(java.lang.String name) { } /** - * [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is - * `INEFFECTIVE` when it is deleted or its network is deleted. + * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A + * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is - * `INEFFECTIVE` when it is deleted or its network is deleted. + * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A + * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. * @param state state or {@code null} for none */ public FirewallPolicyRuleSecureTag setState(java.lang.String state) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java index 96e626ed323..d244d6d7f04 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java @@ -30,7 +30,8 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson { /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [Output Only] Absolute value of VM instances calculated based on the specific + * mode. * * - If the value is fixed, then the calculated value is equal to the fixed * value. - If the value is a percent, then the calculated value is percent/100 * @@ -58,7 +59,8 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson private java.lang.Integer percent; /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [Output Only] Absolute value of VM instances calculated based on the specific + * mode. * * - If the value is fixed, then the calculated value is equal to the fixed * value. - If the value is a percent, then the calculated value is percent/100 * @@ -72,7 +74,8 @@ public java.lang.Integer getCalculated() { } /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [Output Only] Absolute value of VM instances calculated based on the specific + * mode. * * - If the value is fixed, then the calculated value is equal to the fixed * value. - If the value is a percent, then the calculated value is percent/100 * diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java new file mode 100644 index 00000000000..4b11567e687 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java @@ -0,0 +1,129 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Specifies a flexible time range with flexible start time and duration. + * + * It is possible to specify a contradictory time range that cannot be matched by any Interval. This + * causes a validation error. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FlexibleTimeRange extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String maxDuration; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String minDuration; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTimeNotEarlierThan; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTimeNotLaterThan; + + /** + * @return value or {@code null} for none + */ + public String getMaxDuration() { + return maxDuration; + } + + /** + * @param maxDuration maxDuration or {@code null} for none + */ + public FlexibleTimeRange setMaxDuration(String maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + /** + * @return value or {@code null} for none + */ + public String getMinDuration() { + return minDuration; + } + + /** + * @param minDuration minDuration or {@code null} for none + */ + public FlexibleTimeRange setMinDuration(String minDuration) { + this.minDuration = minDuration; + return this; + } + + /** + * @return value or {@code null} for none + */ + public String getStartTimeNotEarlierThan() { + return startTimeNotEarlierThan; + } + + /** + * @param startTimeNotEarlierThan startTimeNotEarlierThan or {@code null} for none + */ + public FlexibleTimeRange setStartTimeNotEarlierThan(String startTimeNotEarlierThan) { + this.startTimeNotEarlierThan = startTimeNotEarlierThan; + return this; + } + + /** + * @return value or {@code null} for none + */ + public String getStartTimeNotLaterThan() { + return startTimeNotLaterThan; + } + + /** + * @param startTimeNotLaterThan startTimeNotLaterThan or {@code null} for none + */ + public FlexibleTimeRange setStartTimeNotLaterThan(String startTimeNotLaterThan) { + this.startTimeNotLaterThan = startTimeNotLaterThan; + return this; + } + + @Override + public FlexibleTimeRange set(String fieldName, Object value) { + return (FlexibleTimeRange) super.set(fieldName, value); + } + + @Override + public FlexibleTimeRange clone() { + return (FlexibleTimeRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java index b7e75baef48..bbf36ebfdf8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -133,17 +133,17 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String backendService; /** - * [Output Only] The URL for the corresponding base forwarding rule. By base forwarding rule, we - * mean the forwarding rule that has the same IP address, protocol, and port settings with the - * current forwarding rule, but without sourceIPRanges specified. Always empty if the current - * forwarding rule does not have sourceIPRanges specified. + * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base + * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port + * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty + * if the current forwarding rule does not have sourceIPRanges specified. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String baseForwardingRule; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -240,7 +240,8 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean isMirroringCollector; /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding + * rule resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -413,9 +414,9 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String pscConnectionStatus; /** - * [Output Only] URL of the region where the regional forwarding rule resides. This field is not - * applicable to global forwarding rules. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This + * field is not applicable to global forwarding rules. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -429,7 +430,7 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -712,10 +713,10 @@ public ForwardingRule setBackendService(java.lang.String backendService) { } /** - * [Output Only] The URL for the corresponding base forwarding rule. By base forwarding rule, we - * mean the forwarding rule that has the same IP address, protocol, and port settings with the - * current forwarding rule, but without sourceIPRanges specified. Always empty if the current - * forwarding rule does not have sourceIPRanges specified. + * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base + * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port + * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty + * if the current forwarding rule does not have sourceIPRanges specified. * @return value or {@code null} for none */ public java.lang.String getBaseForwardingRule() { @@ -723,10 +724,10 @@ public java.lang.String getBaseForwardingRule() { } /** - * [Output Only] The URL for the corresponding base forwarding rule. By base forwarding rule, we - * mean the forwarding rule that has the same IP address, protocol, and port settings with the - * current forwarding rule, but without sourceIPRanges specified. Always empty if the current - * forwarding rule does not have sourceIPRanges specified. + * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base + * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port + * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty + * if the current forwarding rule does not have sourceIPRanges specified. * @param baseForwardingRule baseForwardingRule or {@code null} for none */ public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) { @@ -735,7 +736,7 @@ public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -743,7 +744,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp) { @@ -994,7 +995,8 @@ public ForwardingRule setIsMirroringCollector(java.lang.Boolean isMirroringColle } /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding + * rule resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -1002,7 +1004,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding + * rule resources. * @param kind kind or {@code null} for none */ public ForwardingRule setKind(java.lang.String kind) { @@ -1419,9 +1422,9 @@ public ForwardingRule setPscConnectionStatus(java.lang.String pscConnectionStatu } /** - * [Output Only] URL of the region where the regional forwarding rule resides. This field is not - * applicable to global forwarding rules. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This + * field is not applicable to global forwarding rules. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -1429,9 +1432,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional forwarding rule resides. This field is not - * applicable to global forwarding rules. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This + * field is not applicable to global forwarding rules. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * @param region region or {@code null} for none */ public ForwardingRule setRegion(java.lang.String region) { @@ -1457,7 +1460,7 @@ public ForwardingRule setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -1465,7 +1468,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public ForwardingRule setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java index b3edbe7c261..01fcda7261e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java @@ -44,8 +44,8 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for lists of - * forwarding rules. + * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for + * lists of forwarding rules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public ForwardingRuleAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ForwardingRuleAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java index f54e7f24f8a..eadbc548ba5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java @@ -50,7 +50,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ForwardingRuleList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ForwardingRuleList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ForwardingRuleList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ForwardingRuleList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java index a13aca77872..133e19e501d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -73,7 +73,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationCommitmentInfo commitmentInfo; /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String confidentialComputeType; + + /** + * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -102,15 +109,16 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.Boolean enableEmergentMaintenance; /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * Output only. [Output Only] A unique identifier for this future reservation. The server defines + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future + * reservations. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -168,14 +176,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.String schedulingType; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -205,7 +213,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationSpecificSKUProperties specificSkuProperties; /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,7 +227,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationTimeWindow timeWindow; /** - * [Output Only] URL of the Zone where this future reservation resides. + * Output only. [Output Only] URL of the Zone where this future reservation resides. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -327,7 +335,23 @@ public FutureReservation setCommitmentInfo(FutureReservationCommitmentInfo commi } /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getConfidentialComputeType() { + return confidentialComputeType; + } + + /** + * @param confidentialComputeType confidentialComputeType or {@code null} for none + */ + public FutureReservation setConfidentialComputeType(java.lang.String confidentialComputeType) { + this.confidentialComputeType = confidentialComputeType; + return this; + } + + /** + * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -335,7 +359,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text + * format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public FutureReservation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -397,8 +422,8 @@ public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEm } /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * Output only. [Output Only] A unique identifier for this future reservation. The server defines + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -406,8 +431,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * Output only. [Output Only] A unique identifier for this future reservation. The server defines + * this identifier. * @param id id or {@code null} for none */ public FutureReservation setId(java.math.BigInteger id) { @@ -416,7 +441,8 @@ public FutureReservation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future + * reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -424,7 +450,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future + * reservations. * @param kind kind or {@code null} for none */ public FutureReservation setKind(java.lang.String kind) { @@ -553,7 +580,7 @@ public FutureReservation setSchedulingType(java.lang.String schedulingType) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -561,7 +588,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public FutureReservation setSelfLink(java.lang.String selfLink) { @@ -570,7 +597,7 @@ public FutureReservation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -578,7 +605,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public FutureReservation setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -642,7 +669,7 @@ public FutureReservation setSpecificSkuProperties(FutureReservationSpecificSKUPr } /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * @return value or {@code null} for none */ public FutureReservationStatus getStatus() { @@ -650,7 +677,7 @@ public FutureReservationStatus getStatus() { } /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * @param status status or {@code null} for none */ public FutureReservation setStatus(FutureReservationStatus status) { @@ -676,7 +703,7 @@ public FutureReservation setTimeWindow(FutureReservationTimeWindow timeWindow) { } /** - * [Output Only] URL of the Zone where this future reservation resides. + * Output only. [Output Only] URL of the Zone where this future reservation resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -684,7 +711,7 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the Zone where this future reservation resides. + * Output only. [Output Only] URL of the Zone where this future reservation resides. * @param zone zone or {@code null} for none */ public FutureReservation setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java index 59fbc1a6f59..2595b4830d2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java @@ -30,38 +30,39 @@ public final class FutureReservationStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The current status of the requested amendment. + * Output only. [Output Only] The current status of the requested amendment. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String amendmentStatus; /** - * Fully qualified urls of the automatically created reservations at start_time. + * Output only. Fully qualified urls of the automatically created reservations at start_time. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List autoCreatedReservations; /** - * [Output Only] Represents the existing matching usage for the future reservation. + * Output only. [Output Only] Represents the existing matching usage for the future reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key private FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo; /** - * This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state. - * This count also includes capacity delivered as part of existing matching reservations. + * Output only. This count indicates the fulfilled capacity so far. This is set during + * "PROVISIONING" state. This count also includes capacity delivered as part of existing matching + * reservations. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long fulfilledCount; /** - * [Output Only] This field represents the future reservation before an amendment was requested. - * If the amendment is declined, the Future Reservation will be reverted to the last known good - * state. The last known good state is not set when updating a future reservation whose + * Output only. [Output Only] This field represents the future reservation before an amendment was + * requested. If the amendment is declined, the Future Reservation will be reverted to the last + * known good state. The last known good state is not set when updating a future reservation whose * Procurement Status is DRAFTING. * The value may be {@code null}. */ @@ -69,17 +70,17 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusLastKnownGoodState lastKnownGoodState; /** - * Time when Future Reservation would become LOCKED, after which no modifications to Future - * Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED - * state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING - * state at this time. + * Output only. Time when Future Reservation would become LOCKED, after which no modifications to + * Future Reservation will be allowed. Applicable only after the Future Reservation is in the + * APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to + * PROCURING state at this time. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lockTime; /** - * Current state of this Future Reservation + * Output only. Current state of this Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +93,7 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusSpecificSKUProperties specificSkuProperties; /** - * [Output Only] The current status of the requested amendment. + * Output only. [Output Only] The current status of the requested amendment. * @return value or {@code null} for none */ public java.lang.String getAmendmentStatus() { @@ -100,7 +101,7 @@ public java.lang.String getAmendmentStatus() { } /** - * [Output Only] The current status of the requested amendment. + * Output only. [Output Only] The current status of the requested amendment. * @param amendmentStatus amendmentStatus or {@code null} for none */ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStatus) { @@ -109,7 +110,7 @@ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStat } /** - * Fully qualified urls of the automatically created reservations at start_time. + * Output only. Fully qualified urls of the automatically created reservations at start_time. * @return value or {@code null} for none */ public java.util.List getAutoCreatedReservations() { @@ -117,7 +118,7 @@ public java.util.List getAutoCreatedReservations() { } /** - * Fully qualified urls of the automatically created reservations at start_time. + * Output only. Fully qualified urls of the automatically created reservations at start_time. * @param autoCreatedReservations autoCreatedReservations or {@code null} for none */ public FutureReservationStatus setAutoCreatedReservations(java.util.List autoCreatedReservations) { @@ -126,7 +127,7 @@ public FutureReservationStatus setAutoCreatedReservations(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#futureReservationsAggregatedListResponse for - * future resevation aggregated list response. + * Output only. [Output Only] Type of resource. + * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list + * response. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +69,14 @@ public final class FutureReservationsAggregatedListResponse extends com.google.a private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,9 @@ public FutureReservationsAggregatedListResponse setItems(java.util.Map getUnreachables() { @@ -205,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java index 967fa4b6712..26c435a877b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java @@ -56,8 +56,8 @@ public final class FutureReservationsListResponse extends com.google.api.client. } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for + * lists of reservations * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,14 @@ public final class FutureReservationsListResponse extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,8 +144,8 @@ public FutureReservationsListResponse setItems(java.util.List } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for + * lists of reservations * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -153,8 +153,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for + * lists of reservations * @param kind kind or {@code null} for none */ public FutureReservationsListResponse setKind(java.lang.String kind) { @@ -186,7 +186,7 @@ public FutureReservationsListResponse setNextPageToken(java.lang.String nextPage } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { @@ -203,7 +203,7 @@ public FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java new file mode 100644 index 00000000000..2ccacd327d1 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java @@ -0,0 +1,186 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Recommendation for single resources specification, to be created in the future. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesRecommendation extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means + * that no location is recommended - see other_locations for details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * List of locations in the request scope that were not recommended. Keys of the map are zones, in + * format 'zones/'. The values are status information indicating the recommendation status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map otherLocations; + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String recommendationId; + + /** + * Type of recommendation. Currently only FUTURE_RESERVATION is supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String recommendationType; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * @param endTime endTime or {@code null} for none + */ + public FutureResourcesRecommendation setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means + * that no location is recommended - see other_locations for details. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means + * that no location is recommended - see other_locations for details. + * @param location location or {@code null} for none + */ + public FutureResourcesRecommendation setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * List of locations in the request scope that were not recommended. Keys of the map are zones, in + * format 'zones/'. The values are status information indicating the recommendation status. + * @return value or {@code null} for none + */ + public java.util.Map getOtherLocations() { + return otherLocations; + } + + /** + * List of locations in the request scope that were not recommended. Keys of the map are zones, in + * format 'zones/'. The values are status information indicating the recommendation status. + * @param otherLocations otherLocations or {@code null} for none + */ + public FutureResourcesRecommendation setOtherLocations(java.util.Map otherLocations) { + this.otherLocations = otherLocations; + return this; + } + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * @return value or {@code null} for none + */ + public java.lang.String getRecommendationId() { + return recommendationId; + } + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * @param recommendationId recommendationId or {@code null} for none + */ + public FutureResourcesRecommendation setRecommendationId(java.lang.String recommendationId) { + this.recommendationId = recommendationId; + return this; + } + + /** + * Type of recommendation. Currently only FUTURE_RESERVATION is supported. + * @return value or {@code null} for none + */ + public java.lang.String getRecommendationType() { + return recommendationType; + } + + /** + * Type of recommendation. Currently only FUTURE_RESERVATION is supported. + * @param recommendationType recommendationType or {@code null} for none + */ + public FutureResourcesRecommendation setRecommendationType(java.lang.String recommendationType) { + this.recommendationType = recommendationType; + return this; + } + + /** + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * @param startTime startTime or {@code null} for none + */ + public FutureResourcesRecommendation setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public FutureResourcesRecommendation set(String fieldName, Object value) { + return (FutureResourcesRecommendation) super.set(fieldName, value); + } + + @Override + public FutureResourcesRecommendation clone() { + return (FutureResourcesRecommendation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java new file mode 100644 index 00000000000..6d5b0c60056 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Information about recommendation status for locations that were allowed but not used by the + * response. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesRecommendationOtherLocation extends com.google.api.client.json.GenericJson { + + /** + * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, + * then details contain information about the parameters of the time window that did not meet the + * required conditions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String details; + + /** + * Status of recommendation in this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, + * then details contain information about the parameters of the time window that did not meet the + * required conditions. + * @return value or {@code null} for none + */ + public java.lang.String getDetails() { + return details; + } + + /** + * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, + * then details contain information about the parameters of the time window that did not meet the + * required conditions. + * @param details details or {@code null} for none + */ + public FutureResourcesRecommendationOtherLocation setDetails(java.lang.String details) { + this.details = details; + return this; + } + + /** + * Status of recommendation in this location. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Status of recommendation in this location. + * @param status status or {@code null} for none + */ + public FutureResourcesRecommendationOtherLocation setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public FutureResourcesRecommendationOtherLocation set(String fieldName, Object value) { + return (FutureResourcesRecommendationOtherLocation) super.set(fieldName, value); + } + + @Override + public FutureResourcesRecommendationOtherLocation clone() { + return (FutureResourcesRecommendationOtherLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java new file mode 100644 index 00000000000..6e2dd704c57 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Specification of resources to be created at some time in the future within an optionally + * specified set of locations, and within the specified time range. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesSpec extends com.google.api.client.json.GenericJson { + + /** + * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). + * Defaults to DENSE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deploymentType; + + /** + * Optional location policy allowing to exclude some zone(s) in which the resources must not be + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureResourcesSpecLocationPolicy locationPolicy; + + /** + * Specification of the reserved resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureResourcesSpecTargetResources targetResources; + + /** + * Specification of a time range in which the resources may be created. The time range specifies + * start of resource use and planned end of resource use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FlexibleTimeRange timeRangeSpec; + + /** + * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). + * Defaults to DENSE. + * @return value or {@code null} for none + */ + public java.lang.String getDeploymentType() { + return deploymentType; + } + + /** + * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). + * Defaults to DENSE. + * @param deploymentType deploymentType or {@code null} for none + */ + public FutureResourcesSpec setDeploymentType(java.lang.String deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * Optional location policy allowing to exclude some zone(s) in which the resources must not be + * created. + * @return value or {@code null} for none + */ + public FutureResourcesSpecLocationPolicy getLocationPolicy() { + return locationPolicy; + } + + /** + * Optional location policy allowing to exclude some zone(s) in which the resources must not be + * created. + * @param locationPolicy locationPolicy or {@code null} for none + */ + public FutureResourcesSpec setLocationPolicy(FutureResourcesSpecLocationPolicy locationPolicy) { + this.locationPolicy = locationPolicy; + return this; + } + + /** + * Specification of the reserved resources. + * @return value or {@code null} for none + */ + public FutureResourcesSpecTargetResources getTargetResources() { + return targetResources; + } + + /** + * Specification of the reserved resources. + * @param targetResources targetResources or {@code null} for none + */ + public FutureResourcesSpec setTargetResources(FutureResourcesSpecTargetResources targetResources) { + this.targetResources = targetResources; + return this; + } + + /** + * Specification of a time range in which the resources may be created. The time range specifies + * start of resource use and planned end of resource use. + * @return value or {@code null} for none + */ + public FlexibleTimeRange getTimeRangeSpec() { + return timeRangeSpec; + } + + /** + * Specification of a time range in which the resources may be created. The time range specifies + * start of resource use and planned end of resource use. + * @param timeRangeSpec timeRangeSpec or {@code null} for none + */ + public FutureResourcesSpec setTimeRangeSpec(FlexibleTimeRange timeRangeSpec) { + this.timeRangeSpec = timeRangeSpec; + return this; + } + + @Override + public FutureResourcesSpec set(String fieldName, Object value) { + return (FutureResourcesSpec) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpec clone() { + return (FutureResourcesSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java new file mode 100644 index 00000000000..9773bea49aa --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for FutureResourcesSpecAggregateResources. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesSpecAggregateResources extends com.google.api.client.json.GenericJson { + + /** + * Size of the request, in accelerator (chip) count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long acceleratorCount; + + /** + * The VM family that all instances scheduled against this reservation must belong to. Use for TPU + * reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vmFamily; + + /** + * Workload type. Use for TPU reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadType; + + /** + * Size of the request, in accelerator (chip) count. + * @return value or {@code null} for none + */ + public java.lang.Long getAcceleratorCount() { + return acceleratorCount; + } + + /** + * Size of the request, in accelerator (chip) count. + * @param acceleratorCount acceleratorCount or {@code null} for none + */ + public FutureResourcesSpecAggregateResources setAcceleratorCount(java.lang.Long acceleratorCount) { + this.acceleratorCount = acceleratorCount; + return this; + } + + /** + * The VM family that all instances scheduled against this reservation must belong to. Use for TPU + * reservations. + * @return value or {@code null} for none + */ + public java.lang.String getVmFamily() { + return vmFamily; + } + + /** + * The VM family that all instances scheduled against this reservation must belong to. Use for TPU + * reservations. + * @param vmFamily vmFamily or {@code null} for none + */ + public FutureResourcesSpecAggregateResources setVmFamily(java.lang.String vmFamily) { + this.vmFamily = vmFamily; + return this; + } + + /** + * Workload type. Use for TPU reservations. + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadType() { + return workloadType; + } + + /** + * Workload type. Use for TPU reservations. + * @param workloadType workloadType or {@code null} for none + */ + public FutureResourcesSpecAggregateResources setWorkloadType(java.lang.String workloadType) { + this.workloadType = workloadType; + return this; + } + + @Override + public FutureResourcesSpecAggregateResources set(String fieldName, Object value) { + return (FutureResourcesSpecAggregateResources) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecAggregateResources clone() { + return (FutureResourcesSpecAggregateResources) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java new file mode 100644 index 00000000000..10907bc1be5 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for FutureResourcesSpecLocalSsdPartition. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesSpecLocalSsdPartition extends com.google.api.client.json.GenericJson { + + /** + * Disk interface. Defaults to SCSI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diskInterface; + + /** + * The size of the disk in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * Disk interface. Defaults to SCSI. + * @return value or {@code null} for none + */ + public java.lang.String getDiskInterface() { + return diskInterface; + } + + /** + * Disk interface. Defaults to SCSI. + * @param diskInterface diskInterface or {@code null} for none + */ + public FutureResourcesSpecLocalSsdPartition setDiskInterface(java.lang.String diskInterface) { + this.diskInterface = diskInterface; + return this; + } + + /** + * The size of the disk in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * The size of the disk in GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public FutureResourcesSpecLocalSsdPartition setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + @Override + public FutureResourcesSpecLocalSsdPartition set(String fieldName, Object value) { + return (FutureResourcesSpecLocalSsdPartition) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecLocalSsdPartition clone() { + return (FutureResourcesSpecLocalSsdPartition) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java new file mode 100644 index 00000000000..80098785f4b --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Specification of locations to create resources in. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesSpecLocationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Preferences for specified locations. Keys of the map are locations - zones, in format of + * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is + * ALLOWed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map locations; + + /** + * Preferences for specified locations. Keys of the map are locations - zones, in format of + * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is + * ALLOWed. + * @return value or {@code null} for none + */ + public java.util.Map getLocations() { + return locations; + } + + /** + * Preferences for specified locations. Keys of the map are locations - zones, in format of + * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is + * ALLOWed. + * @param locations locations or {@code null} for none + */ + public FutureResourcesSpecLocationPolicy setLocations(java.util.Map locations) { + this.locations = locations; + return this; + } + + @Override + public FutureResourcesSpecLocationPolicy set(String fieldName, Object value) { + return (FutureResourcesSpecLocationPolicy) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecLocationPolicy clone() { + return (FutureResourcesSpecLocationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.java new file mode 100644 index 00000000000..1bdaa0ec064 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Preference for a single specified location. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesSpecLocationPolicyLocation extends com.google.api.client.json.GenericJson { + + /** + * Preference for this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String preference; + + /** + * Preference for this location. + * @return value or {@code null} for none + */ + public java.lang.String getPreference() { + return preference; + } + + /** + * Preference for this location. + * @param preference preference or {@code null} for none + */ + public FutureResourcesSpecLocationPolicyLocation setPreference(java.lang.String preference) { + this.preference = preference; + return this; + } + + @Override + public FutureResourcesSpecLocationPolicyLocation set(String fieldName, Object value) { + return (FutureResourcesSpecLocationPolicyLocation) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecLocationPolicyLocation clone() { + return (FutureResourcesSpecLocationPolicyLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java new file mode 100644 index 00000000000..89b5472ab03 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for FutureResourcesSpecSpecificSKUResources. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesSpecSpecificSKUResources extends com.google.api.client.json.GenericJson { + + /** + * Size of the request, in instance count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long instanceCount; + + /** + * Local SSD partitions. You do not have to include SSD partitions that are built in the machine + * type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List localSsdPartitions; + + static { + // hack to force ProGuard to consider FutureResourcesSpecLocalSsdPartition used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(FutureResourcesSpecLocalSsdPartition.class); + } + + /** + * The machine type to use for instances that will use the reservation. This field only accepts + * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. + * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU + * reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * Size of the request, in instance count. + * @return value or {@code null} for none + */ + public java.lang.Long getInstanceCount() { + return instanceCount; + } + + /** + * Size of the request, in instance count. + * @param instanceCount instanceCount or {@code null} for none + */ + public FutureResourcesSpecSpecificSKUResources setInstanceCount(java.lang.Long instanceCount) { + this.instanceCount = instanceCount; + return this; + } + + /** + * Local SSD partitions. You do not have to include SSD partitions that are built in the machine + * type. + * @return value or {@code null} for none + */ + public java.util.List getLocalSsdPartitions() { + return localSsdPartitions; + } + + /** + * Local SSD partitions. You do not have to include SSD partitions that are built in the machine + * type. + * @param localSsdPartitions localSsdPartitions or {@code null} for none + */ + public FutureResourcesSpecSpecificSKUResources setLocalSsdPartitions(java.util.List localSsdPartitions) { + this.localSsdPartitions = localSsdPartitions; + return this; + } + + /** + * The machine type to use for instances that will use the reservation. This field only accepts + * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. + * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU + * reservations. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * The machine type to use for instances that will use the reservation. This field only accepts + * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. + * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU + * reservations. + * @param machineType machineType or {@code null} for none + */ + public FutureResourcesSpecSpecificSKUResources setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + @Override + public FutureResourcesSpecSpecificSKUResources set(String fieldName, Object value) { + return (FutureResourcesSpecSpecificSKUResources) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecSpecificSKUResources clone() { + return (FutureResourcesSpecSpecificSKUResources) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java new file mode 100644 index 00000000000..6c6dfb971ae --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java @@ -0,0 +1,84 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Specification of reserved resources. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FutureResourcesSpecTargetResources extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureResourcesSpecAggregateResources aggregateResources; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureResourcesSpecSpecificSKUResources specificSkuResources; + + /** + * @return value or {@code null} for none + */ + public FutureResourcesSpecAggregateResources getAggregateResources() { + return aggregateResources; + } + + /** + * @param aggregateResources aggregateResources or {@code null} for none + */ + public FutureResourcesSpecTargetResources setAggregateResources(FutureResourcesSpecAggregateResources aggregateResources) { + this.aggregateResources = aggregateResources; + return this; + } + + /** + * @return value or {@code null} for none + */ + public FutureResourcesSpecSpecificSKUResources getSpecificSkuResources() { + return specificSkuResources; + } + + /** + * @param specificSkuResources specificSkuResources or {@code null} for none + */ + public FutureResourcesSpecTargetResources setSpecificSkuResources(FutureResourcesSpecSpecificSKUResources specificSkuResources) { + this.specificSkuResources = specificSkuResources; + return this; + } + + @Override + public FutureResourcesSpecTargetResources set(String fieldName, Object value) { + return (FutureResourcesSpecTargetResources) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecTargetResources clone() { + return (FutureResourcesSpecTargetResources) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java new file mode 100644 index 00000000000..9333f196ff6 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java @@ -0,0 +1,63 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for GetVersionOperationMetadata. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GetVersionOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetVersionOperationMetadataSbomInfo inlineSbomInfo; + + /** + * @return value or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo getInlineSbomInfo() { + return inlineSbomInfo; + } + + /** + * @param inlineSbomInfo inlineSbomInfo or {@code null} for none + */ + public GetVersionOperationMetadata setInlineSbomInfo(GetVersionOperationMetadataSbomInfo inlineSbomInfo) { + this.inlineSbomInfo = inlineSbomInfo; + return this; + } + + @Override + public GetVersionOperationMetadata set(String fieldName, Object value) { + return (GetVersionOperationMetadata) super.set(fieldName, value); + } + + @Override + public GetVersionOperationMetadata clone() { + return (GetVersionOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java new file mode 100644 index 00000000000..1e457d9c5ac --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for GetVersionOperationMetadataSbomInfo. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GetVersionOperationMetadataSbomInfo extends com.google.api.client.json.GenericJson { + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map currentComponentVersions; + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map targetComponentVersions; + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * @return value or {@code null} for none + */ + public java.util.Map getCurrentComponentVersions() { + return currentComponentVersions; + } + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * @param currentComponentVersions currentComponentVersions or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo setCurrentComponentVersions(java.util.Map currentComponentVersions) { + this.currentComponentVersions = currentComponentVersions; + return this; + } + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * @return value or {@code null} for none + */ + public java.util.Map getTargetComponentVersions() { + return targetComponentVersions; + } + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * @param targetComponentVersions targetComponentVersions or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo setTargetComponentVersions(java.util.Map targetComponentVersions) { + this.targetComponentVersions = targetComponentVersions; + return this; + } + + @Override + public GetVersionOperationMetadataSbomInfo set(String fieldName, Object value) { + return (GetVersionOperationMetadataSbomInfo) super.set(fieldName, value); + } + + @Override + public GetVersionOperationMetadataSbomInfo clone() { + return (GetVersionOperationMetadataSbomInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestAttributes.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestAttributes.java index d17716bd84f..03028ade01e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestAttributes.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestAttributes.java @@ -30,7 +30,8 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest + * attributes entry. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,14 +46,14 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String queryPath; /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * The value may be {@code null}. */ @com.google.api.client.util.Key private GuestAttributesValue queryValue; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,14 +67,15 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String variableKey; /** - * [Output Only] The value found for the requested key. + * Output only. [Output Only] The value found for the requested key. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String variableValue; /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest + * attributes entry. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -81,7 +83,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest + * attributes entry. * @param kind kind or {@code null} for none */ public GuestAttributes setKind(java.lang.String kind) { @@ -109,7 +112,7 @@ public GuestAttributes setQueryPath(java.lang.String queryPath) { } /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * @return value or {@code null} for none */ public GuestAttributesValue getQueryValue() { @@ -117,7 +120,7 @@ public GuestAttributesValue getQueryValue() { } /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * @param queryValue queryValue or {@code null} for none */ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { @@ -126,7 +129,7 @@ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -134,7 +137,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public GuestAttributes setSelfLink(java.lang.String selfLink) { @@ -160,7 +163,7 @@ public GuestAttributes setVariableKey(java.lang.String variableKey) { } /** - * [Output Only] The value found for the requested key. + * Output only. [Output Only] The value found for the requested key. * @return value or {@code null} for none */ public java.lang.String getVariableValue() { @@ -168,7 +171,7 @@ public java.lang.String getVariableValue() { } /** - * [Output Only] The value found for the requested key. + * Output only. [Output Only] The value found for the requested key. * @param variableValue variableValue or {@code null} for none */ public GuestAttributes setVariableValue(java.lang.String variableValue) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java new file mode 100644 index 00000000000..b4b12626881 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java @@ -0,0 +1,276 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HealthAggregationPoliciesScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthAggregationPoliciesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of HealthAggregationPolicys contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthAggregationPolicies; + + /** + * Informational warning which replaces the list of health aggregation policies when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of HealthAggregationPolicys contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getHealthAggregationPolicies() { + return healthAggregationPolicies; + } + + /** + * A list of HealthAggregationPolicys contained in this scope. + * @param healthAggregationPolicies healthAggregationPolicies or {@code null} for none + */ + public HealthAggregationPoliciesScopedList setHealthAggregationPolicies(java.util.List healthAggregationPolicies) { + this.healthAggregationPolicies = healthAggregationPolicies; + return this; + } + + /** + * Informational warning which replaces the list of health aggregation policies when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of health aggregation policies when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public HealthAggregationPoliciesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthAggregationPoliciesScopedList set(String fieldName, Object value) { + return (HealthAggregationPoliciesScopedList) super.set(fieldName, value); + } + + @Override + public HealthAggregationPoliciesScopedList clone() { + return (HealthAggregationPoliciesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of health aggregation policies when the list is + * empty. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HealthAggregationPoliciesScopedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java new file mode 100644 index 00000000000..5854e52ebe9 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java @@ -0,0 +1,451 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a health aggregation policy. + * + * A health aggregation policy resource defines a policy to aggregate health. + * + * For more information, see Health checks overview. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthAggregationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a + * percentage) of healthy endpoints required in order to consider the aggregated health result + * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field + * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default + * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in + * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a + * Network Endpoint Group or instances within an Instance Group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long healthyPercentThreshold; + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number + * of healthy endpoints required in order to consider the aggregated health result HEALTHY. + * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. + * Can be mutated. This field is optional, and will be set to the default if unspecified. Note + * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to + * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint + * Group or instances within an Instance Group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long minHealthyThreshold; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources + * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is + * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and + * cannot be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyType; + + /** + * Output only. [Output Only] URL of the region where the health aggregation policy resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public HealthAggregationPolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HealthAggregationPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public HealthAggregationPolicy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * @see #setFingerprint() + * + *

      + * The value is encoded Base64 or {@code null} for none. + *

      + * + * @since 1.14 + */ + public HealthAggregationPolicy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a + * percentage) of healthy endpoints required in order to consider the aggregated health result + * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field + * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default + * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in + * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a + * Network Endpoint Group or instances within an Instance Group. + * @return value or {@code null} for none + */ + public java.lang.Long getHealthyPercentThreshold() { + return healthyPercentThreshold; + } + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a + * percentage) of healthy endpoints required in order to consider the aggregated health result + * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field + * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default + * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in + * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a + * Network Endpoint Group or instances within an Instance Group. + * @param healthyPercentThreshold healthyPercentThreshold or {@code null} for none + */ + public HealthAggregationPolicy setHealthyPercentThreshold(java.lang.Long healthyPercentThreshold) { + this.healthyPercentThreshold = healthyPercentThreshold; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @param id id or {@code null} for none + */ + public HealthAggregationPolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * @param kind kind or {@code null} for none + */ + public HealthAggregationPolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number + * of healthy endpoints required in order to consider the aggregated health result HEALTHY. + * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. + * Can be mutated. This field is optional, and will be set to the default if unspecified. Note + * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to + * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint + * Group or instances within an Instance Group. + * @return value or {@code null} for none + */ + public java.lang.Long getMinHealthyThreshold() { + return minHealthyThreshold; + } + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number + * of healthy endpoints required in order to consider the aggregated health result HEALTHY. + * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. + * Can be mutated. This field is optional, and will be set to the default if unspecified. Note + * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to + * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint + * Group or instances within an Instance Group. + * @param minHealthyThreshold minHealthyThreshold or {@code null} for none + */ + public HealthAggregationPolicy setMinHealthyThreshold(java.lang.Long minHealthyThreshold) { + this.minHealthyThreshold = minHealthyThreshold; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public HealthAggregationPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources + * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is + * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and + * cannot be mutated. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyType() { + return policyType; + } + + /** + * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources + * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is + * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and + * cannot be mutated. + * @param policyType policyType or {@code null} for none + */ + public HealthAggregationPolicy setPolicyType(java.lang.String policyType) { + this.policyType = policyType; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the health aggregation policy resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the health aggregation policy resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public HealthAggregationPolicy setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public HealthAggregationPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + @Override + public HealthAggregationPolicy set(String fieldName, Object value) { + return (HealthAggregationPolicy) super.set(fieldName, value); + } + + @Override + public HealthAggregationPolicy clone() { + return (HealthAggregationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java new file mode 100644 index 00000000000..ef8315f5b60 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java @@ -0,0 +1,407 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Contains a list of HealthAggregationPoliciesScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthAggregationPolicyAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of HealthAggregationPoliciesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + static { + // hack to force ProGuard to consider HealthAggregationPoliciesScopedList used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(HealthAggregationPoliciesScopedList.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthAggregationPoliciesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of HealthAggregationPoliciesScopedList resources. + * @param items items or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthAggregationPolicyAggregatedList set(String fieldName, Object value) { + return (HealthAggregationPolicyAggregatedList) super.set(fieldName, value); + } + + @Override + public HealthAggregationPolicyAggregatedList clone() { + return (HealthAggregationPolicyAggregatedList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HealthAggregationPolicyAggregatedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java new file mode 100644 index 00000000000..bf5d73570e9 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HealthAggregationPolicyList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthAggregationPolicyList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of HealthAggregationPolicy resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider HealthAggregationPolicy used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(HealthAggregationPolicy.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HealthAggregationPolicyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthAggregationPolicy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of HealthAggregationPolicy resources. + * @param items items or {@code null} for none + */ + public HealthAggregationPolicyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * @param kind kind or {@code null} for none + */ + public HealthAggregationPolicyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthAggregationPolicyList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthAggregationPolicyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public HealthAggregationPolicyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthAggregationPolicyList set(String fieldName, Object value) { + return (HealthAggregationPolicyList) super.set(fieldName, value); + } + + @Override + public HealthAggregationPolicyList clone() { + return (HealthAggregationPolicyList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HealthAggregationPolicyListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java index 3a080056583..755b85ebb68 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java @@ -58,7 +58,7 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { private java.lang.Integer checkIntervalSec; /** - * [Output Only] Creation timestamp in3339 text format. + * Output only. [Output Only] Creation timestamp in3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,7 +117,7 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Type of the resource. + * Output only. Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +143,8 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Region where the health check resides. Not applicable to global health checks. + * Output only. [Output Only] Region where the health check resides. Not applicable to global + * health checks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -224,7 +225,7 @@ public HealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec) { } /** - * [Output Only] Creation timestamp in3339 text format. + * Output only. [Output Only] Creation timestamp in3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -232,7 +233,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp in3339 text format. + * Output only. [Output Only] Creation timestamp in3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { @@ -369,7 +370,7 @@ public HealthCheck setId(java.math.BigInteger id) { } /** - * Type of the resource. + * Output only. Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -377,7 +378,7 @@ public java.lang.String getKind() { } /** - * Type of the resource. + * Output only. Type of the resource. * @param kind kind or {@code null} for none */ public HealthCheck setKind(java.lang.String kind) { @@ -430,7 +431,8 @@ public HealthCheck setName(java.lang.String name) { } /** - * [Output Only] Region where the health check resides. Not applicable to global health checks. + * Output only. [Output Only] Region where the health check resides. Not applicable to global + * health checks. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -438,7 +440,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] Region where the health check resides. Not applicable to global health checks. + * Output only. [Output Only] Region where the health check resides. Not applicable to global + * health checks. * @param region region or {@code null} for none */ public HealthCheck setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckList.java index 8be0abe71e8..e09a8de7428 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckList.java @@ -50,7 +50,7 @@ public final class HealthCheckList extends com.google.api.client.json.GenericJso } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class HealthCheckList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public HealthCheckList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public HealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckService.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckService.java index 17877c67819..dabf1fea8ee 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckService.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckService.java @@ -30,7 +30,7 @@ public final class HealthCheckService extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -84,14 +84,16 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.lang.String healthStatusAggregationPolicy; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health + * check services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -128,23 +130,23 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.util.List notificationEndpoints; /** - * [Output Only] URL of the region where the health check service resides. This field is not - * applicable to global health check services. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the health check service resides. This field + * is not applicable to global health check services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -152,7 +154,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthCheckService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -303,7 +305,8 @@ public HealthCheckService setHealthStatusAggregationPolicy(java.lang.String heal } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -311,7 +314,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public HealthCheckService setId(java.math.BigInteger id) { @@ -320,7 +324,8 @@ public HealthCheckService setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health + * check services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -328,7 +333,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health + * check services. * @param kind kind or {@code null} for none */ public HealthCheckService setKind(java.lang.String kind) { @@ -406,9 +412,9 @@ public HealthCheckService setNotificationEndpoints(java.util.List This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthCheckServiceAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of HealthCheckServicesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HealthCheckServiceAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthCheckServicesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of HealthCheckServicesScopedList resources. + * @param items items or {@code null} for none + */ + public HealthCheckServiceAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HealthCheckServiceAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthCheckServiceAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthCheckServiceAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public HealthCheckServiceAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public HealthCheckServiceAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthCheckServiceAggregatedList set(String fieldName, Object value) { + return (HealthCheckServiceAggregatedList) super.set(fieldName, value); + } + + @Override + public HealthCheckServiceAggregatedList clone() { + return (HealthCheckServiceAggregatedList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HealthCheckServiceAggregatedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java index e77f8500ff9..e80bc5dfb36 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java @@ -30,14 +30,14 @@ public final class HealthCheckServicesList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String id; /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,25 +50,25 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for + * lists of HealthCheckServices. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public HealthCheckServicesList setId(java.lang.String id) { @@ -99,7 +99,7 @@ public HealthCheckServicesList setId(java.lang.String id) { } /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -107,7 +107,7 @@ public java.util.List getItems() { } /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * @param items items or {@code null} for none */ public HealthCheckServicesList setItems(java.util.List items) { @@ -116,8 +116,8 @@ public HealthCheckServicesList setItems(java.util.List items } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for + * lists of HealthCheckServices. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for + * lists of HealthCheckServices. * @param kind kind or {@code null} for none */ public HealthCheckServicesList setKind(java.lang.String kind) { @@ -135,10 +135,10 @@ public HealthCheckServicesList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public HealthCheckServicesList setNextPageToken(java.lang.String nextPageToken) { @@ -158,7 +158,7 @@ public HealthCheckServicesList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public HealthCheckServicesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java new file mode 100644 index 00000000000..84c685f8110 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HealthCheckServicesScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthCheckServicesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of HealthCheckServices contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + static { + // hack to force ProGuard to consider HealthCheckService used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(HealthCheckService.class); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of HealthCheckServices contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * A list of HealthCheckServices contained in this scope. + * @param resources resources or {@code null} for none + */ + public HealthCheckServicesScopedList setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public HealthCheckServicesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthCheckServicesScopedList set(String fieldName, Object value) { + return (HealthCheckServicesScopedList) super.set(fieldName, value); + } + + @Override + public HealthCheckServicesScopedList clone() { + return (HealthCheckServicesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HealthCheckServicesScopedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java index 18d8d8076ef..65b6d6c9236 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthChecksAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthChecksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSource.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSource.java new file mode 100644 index 00000000000..e645a8cd5d1 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSource.java @@ -0,0 +1,420 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a health source. + * + * A health source resource specifies the source resources and the health aggregation policy applied + * to the source resources to determine the aggregated health status. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthSource extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same + * region as the HealthSource. Can be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthAggregationPolicy; + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] URL of the region where the health source resides. This field + * applies only to the regional resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be + * specified when theHealthSource is created, and cannot be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceType; + + /** + * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is + * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED + * and must be regional and in the same region as the HealthSource (cross-region deployment for + * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of + * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sources; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public HealthSource setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HealthSource setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public HealthSource setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * @see #setFingerprint() + * + *

      + * The value is encoded Base64 or {@code null} for none. + *

      + * + * @since 1.14 + */ + public HealthSource encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same + * region as the HealthSource. Can be mutated. + * @return value or {@code null} for none + */ + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; + } + + /** + * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same + * region as the HealthSource. Can be mutated. + * @param healthAggregationPolicy healthAggregationPolicy or {@code null} for none + */ + public HealthSource setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { + this.healthAggregationPolicy = healthAggregationPolicy; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public HealthSource setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * @param kind kind or {@code null} for none + */ + public HealthSource setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public HealthSource setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the health source resides. This field + * applies only to the regional resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the health source resides. This field + * applies only to the regional resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public HealthSource setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthSource setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public HealthSource setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be + * specified when theHealthSource is created, and cannot be mutated. + * @return value or {@code null} for none + */ + public java.lang.String getSourceType() { + return sourceType; + } + + /** + * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be + * specified when theHealthSource is created, and cannot be mutated. + * @param sourceType sourceType or {@code null} for none + */ + public HealthSource setSourceType(java.lang.String sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is + * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED + * and must be regional and in the same region as the HealthSource (cross-region deployment for + * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of + * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. + * @return value or {@code null} for none + */ + public java.util.List getSources() { + return sources; + } + + /** + * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is + * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED + * and must be regional and in the same region as the HealthSource (cross-region deployment for + * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of + * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. + * @param sources sources or {@code null} for none + */ + public HealthSource setSources(java.util.List sources) { + this.sources = sources; + return this; + } + + @Override + public HealthSource set(String fieldName, Object value) { + return (HealthSource) super.set(fieldName, value); + } + + @Override + public HealthSource clone() { + return (HealthSource) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java new file mode 100644 index 00000000000..1ec07ab4b13 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java @@ -0,0 +1,401 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Contains a list of HealthSourcesScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthSourceAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of HealthSourcesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HealthSourceAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthSourcesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of HealthSourcesScopedList resources. + * @param items items or {@code null} for none + */ + public HealthSourceAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HealthSourceAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthSourceAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthSourceAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public HealthSourceAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public HealthSourceAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthSourceAggregatedList set(String fieldName, Object value) { + return (HealthSourceAggregatedList) super.set(fieldName, value); + } + + @Override + public HealthSourceAggregatedList clone() { + return (HealthSourceAggregatedList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HealthSourceAggregatedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceList.java new file mode 100644 index 00000000000..6bb05406796 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceList.java @@ -0,0 +1,383 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HealthSourceList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthSourceList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of HealthSource resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider HealthSource used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(HealthSource.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HealthSourceList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthSource resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of HealthSource resources. + * @param items items or {@code null} for none + */ + public HealthSourceList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * @param kind kind or {@code null} for none + */ + public HealthSourceList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthSourceList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthSourceList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public HealthSourceList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthSourceList set(String fieldName, Object value) { + return (HealthSourceList) super.set(fieldName, value); + } + + @Override + public HealthSourceList clone() { + return (HealthSourceList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HealthSourceListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java new file mode 100644 index 00000000000..dc16ce8e3a5 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HealthSourcesScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HealthSourcesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of HealthSources contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthSources; + + static { + // hack to force ProGuard to consider HealthSource used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(HealthSource.class); + } + + /** + * Informational warning which replaces the list of health sources when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of HealthSources contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getHealthSources() { + return healthSources; + } + + /** + * A list of HealthSources contained in this scope. + * @param healthSources healthSources or {@code null} for none + */ + public HealthSourcesScopedList setHealthSources(java.util.List healthSources) { + this.healthSources = healthSources; + return this; + } + + /** + * Informational warning which replaces the list of health sources when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of health sources when the list is empty. + * @param warning warning or {@code null} for none + */ + public HealthSourcesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthSourcesScopedList set(String fieldName, Object value) { + return (HealthSourcesScopedList) super.set(fieldName, value); + } + + @Override + public HealthSourcesScopedList clone() { + return (HealthSourcesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of health sources when the list is empty. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HealthSourcesScopedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java index cb4c89b509a..f7f6e7a324b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java @@ -117,7 +117,7 @@ public final class HttpHeaderMatch extends com.google.api.client.json.GenericJso * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -316,7 +316,7 @@ public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch) { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -334,7 +334,7 @@ public java.lang.String getRegexMatch() { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @param regexMatch regexMatch or {@code null} for none */ public HttpHeaderMatch setRegexMatch(java.lang.String regexMatch) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java index 8b653628100..438550bb2f3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java @@ -80,7 +80,8 @@ public final class HttpHealthCheck extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health + * checks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -242,7 +243,8 @@ public HttpHealthCheck setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health + * checks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -250,7 +252,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health + * checks. * @param kind kind or {@code null} for none */ public HttpHealthCheck setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java index 1df376c1629..42f2fddf7a6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java @@ -50,7 +50,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public HttpHealthCheckList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HttpHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public HttpHealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java index 5d4f2e2caf8..3393e1b57b1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java @@ -64,7 +64,7 @@ public final class HttpQueryParameterMatch extends com.google.api.client.json.Ge * Only one of presentMatch, exactMatch, orregexMatch must be set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,7 +142,7 @@ public HttpQueryParameterMatch setPresentMatch(java.lang.Boolean presentMatch) { * Only one of presentMatch, exactMatch, orregexMatch must be set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -156,7 +156,7 @@ public java.lang.String getRegexMatch() { * Only one of presentMatch, exactMatch, orregexMatch must be set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @param regexMatch regexMatch or {@code null} for none */ public HttpQueryParameterMatch setRegexMatch(java.lang.String regexMatch) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java index 27d237f9ccf..cd8eebf2f5c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java @@ -96,14 +96,18 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic private java.util.List metadataFilters; /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * A path template pattern can include variables and wildcards. Variables are enclosed in curly + * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and + * ** that matches zero or more path segments. The pattern must follow these rules: * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * - The value must be between 1 and 1024 characters. - The pattern must start + * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may + * appear in the pattern. + * + * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,8 +119,10 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * The * character inside a prefix match is treated as a literal character, not as a wildcard. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a + * matchRule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,7 +152,7 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -283,14 +289,18 @@ public HttpRouteRuleMatch setMetadataFilters(java.util.List meta } /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * A path template pattern can include variables and wildcards. Variables are enclosed in curly + * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and + * ** that matches zero or more path segments. The pattern must follow these rules: * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * - The value must be between 1 and 1024 characters. - The pattern must start + * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may + * appear in the pattern. + * + * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. * @return value or {@code null} for none */ public java.lang.String getPathTemplateMatch() { @@ -298,14 +308,18 @@ public java.lang.String getPathTemplateMatch() { } /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. + * + * A path template pattern can include variables and wildcards. Variables are enclosed in curly + * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and + * ** that matches zero or more path segments. The pattern must follow these rules: * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * - The value must be between 1 and 1024 characters. - The pattern must start + * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may + * appear in the pattern. * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. * @param pathTemplateMatch pathTemplateMatch or {@code null} for none */ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatch) { @@ -319,8 +333,10 @@ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatc * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * The * character inside a prefix match is treated as a literal character, not as a wildcard. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a + * matchRule. * @return value or {@code null} for none */ public java.lang.String getPrefixMatch() { @@ -333,8 +349,10 @@ public java.lang.String getPrefixMatch() { * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * The * character inside a prefix match is treated as a literal character, not as a wildcard. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a + * matchRule. * @param prefixMatch prefixMatch or {@code null} for none */ public HttpRouteRuleMatch setPrefixMatch(java.lang.String prefixMatch) { @@ -373,7 +391,7 @@ public HttpRouteRuleMatch setQueryParameterMatches(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HttpsHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpsHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public HttpsHealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Image.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Image.java index 1ecb4152746..638e7c38e35 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Image.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Image.java @@ -46,14 +46,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long archiveSizeBytes; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,8 +74,8 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long diskSizeGb; /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * Output only. Whether this image is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +110,8 @@ public final class Image extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -133,7 +134,7 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey imageEncryptionKey; /** - * [Output Only] Type of the resource. Always compute#image for images. + * Output only. [Output Only] Type of the resource. Always compute#image for images. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -207,14 +208,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -249,9 +250,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceDiskEncryptionKey; /** - * [Output Only] The ID value of the disk used to create this image. This value may be used to - * determine whether the image was taken from the current or a previous instance of a given disk - * name. + * Output only. [Output Only] The ID value of the disk used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given disk name. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -279,9 +280,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceImageEncryptionKey; /** - * [Output Only] The ID value of the image used to create this image. This value may be used to - * determine whether the image was taken from the current or a previous instance of a given image - * name. + * Output only. [Output Only] The ID value of the image used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given image name. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -309,9 +310,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceSnapshotEncryptionKey; /** - * [Output Only] The ID value of the snapshot used to create this image. This value may be used to - * determine whether the snapshot was taken from the current or a previous instance of a given - * snapshot name. + * Output only. [Output Only] The ID value of the snapshot used to create this image. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given snapshot name. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -325,9 +326,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.String sourceType; /** - * [Output Only] The status of the image. An image can be used to create other resources, such as - * instances, only after the image has been successfully created and the status is set to READY. - * Possible values are FAILED, PENDING, orREADY. + * Output only. [Output Only] The status of the image. An image can be used to create other + * resources, such as instances, only after the image has been successfully created and the status + * is set to READY. Possible values are FAILED, PENDING, orREADY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -375,7 +376,7 @@ public Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -383,7 +384,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Image setCreationTimestamp(java.lang.String creationTimestamp) { @@ -392,7 +393,7 @@ public Image setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * @return value or {@code null} for none */ public DeprecationStatus getDeprecated() { @@ -400,7 +401,7 @@ public DeprecationStatus getDeprecated() { } /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * @param deprecated deprecated or {@code null} for none */ public Image setDeprecated(DeprecationStatus deprecated) { @@ -443,8 +444,8 @@ public Image setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * Output only. Whether this image is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. * @return value or {@code null} for none */ public java.lang.Boolean getEnableConfidentialCompute() { @@ -452,8 +453,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * Output only. Whether this image is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none */ public Image setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { @@ -512,7 +513,8 @@ public Image setGuestOsFeatures(java.util.List guestOsFeatures) } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -520,7 +522,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Image setId(java.math.BigInteger id) { @@ -564,7 +567,7 @@ public Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey) { } /** - * [Output Only] Type of the resource. Always compute#image for images. + * Output only. [Output Only] Type of the resource. Always compute#image for images. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -572,7 +575,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#image for images. + * Output only. [Output Only] Type of the resource. Always compute#image for images. * @param kind kind or {@code null} for none */ public Image setKind(java.lang.String kind) { @@ -779,7 +782,7 @@ public Image setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -787,7 +790,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -796,7 +799,7 @@ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -804,7 +807,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Image setSelfLink(java.lang.String selfLink) { @@ -878,9 +881,9 @@ public Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncrypti } /** - * [Output Only] The ID value of the disk used to create this image. This value may be used to - * determine whether the image was taken from the current or a previous instance of a given disk - * name. + * Output only. [Output Only] The ID value of the disk used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given disk name. * @return value or {@code null} for none */ public java.lang.String getSourceDiskId() { @@ -888,9 +891,9 @@ public java.lang.String getSourceDiskId() { } /** - * [Output Only] The ID value of the disk used to create this image. This value may be used to - * determine whether the image was taken from the current or a previous instance of a given disk - * name. + * Output only. [Output Only] The ID value of the disk used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given disk name. * @param sourceDiskId sourceDiskId or {@code null} for none */ public Image setSourceDiskId(java.lang.String sourceDiskId) { @@ -947,9 +950,9 @@ public Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryp } /** - * [Output Only] The ID value of the image used to create this image. This value may be used to - * determine whether the image was taken from the current or a previous instance of a given image - * name. + * Output only. [Output Only] The ID value of the image used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given image name. * @return value or {@code null} for none */ public java.lang.String getSourceImageId() { @@ -957,9 +960,9 @@ public java.lang.String getSourceImageId() { } /** - * [Output Only] The ID value of the image used to create this image. This value may be used to - * determine whether the image was taken from the current or a previous instance of a given image - * name. + * Output only. [Output Only] The ID value of the image used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given image name. * @param sourceImageId sourceImageId or {@code null} for none */ public Image setSourceImageId(java.lang.String sourceImageId) { @@ -1016,9 +1019,9 @@ public Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshot } /** - * [Output Only] The ID value of the snapshot used to create this image. This value may be used to - * determine whether the snapshot was taken from the current or a previous instance of a given - * snapshot name. + * Output only. [Output Only] The ID value of the snapshot used to create this image. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given snapshot name. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotId() { @@ -1026,9 +1029,9 @@ public java.lang.String getSourceSnapshotId() { } /** - * [Output Only] The ID value of the snapshot used to create this image. This value may be used to - * determine whether the snapshot was taken from the current or a previous instance of a given - * snapshot name. + * Output only. [Output Only] The ID value of the snapshot used to create this image. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given snapshot name. * @param sourceSnapshotId sourceSnapshotId or {@code null} for none */ public Image setSourceSnapshotId(java.lang.String sourceSnapshotId) { @@ -1054,9 +1057,9 @@ public Image setSourceType(java.lang.String sourceType) { } /** - * [Output Only] The status of the image. An image can be used to create other resources, such as - * instances, only after the image has been successfully created and the status is set to READY. - * Possible values are FAILED, PENDING, orREADY. + * Output only. [Output Only] The status of the image. An image can be used to create other + * resources, such as instances, only after the image has been successfully created and the status + * is set to READY. Possible values are FAILED, PENDING, orREADY. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -1064,9 +1067,9 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the image. An image can be used to create other resources, such as - * instances, only after the image has been successfully created and the status is set to READY. - * Possible values are FAILED, PENDING, orREADY. + * Output only. [Output Only] The status of the image. An image can be used to create other + * resources, such as instances, only after the image has been successfully created and the status + * is set to READY. Possible values are FAILED, PENDING, orREADY. * @param status status or {@code null} for none */ public Image setStatus(java.lang.String status) { @@ -1124,10 +1127,13 @@ public static final class RawDisk extends com.google.api.client.json.GenericJson private java.lang.String sha1Checksum; /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is + * stored. The following are valid formats: - * https://storage.googleapis.com/bucket_name/image_archive_name - - * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs + * um_sha256:hex_value * * In order to create an image, you must provide the full or partial URL of one of the following: * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The @@ -1178,10 +1184,13 @@ public RawDisk setSha1Checksum(java.lang.String sha1Checksum) { } /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is + * stored. The following are valid formats: - * https://storage.googleapis.com/bucket_name/image_archive_name - - * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs + * um_sha256:hex_value * * In order to create an image, you must provide the full or partial URL of one of the following: * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The @@ -1193,10 +1202,13 @@ public java.lang.String getSource() { } /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is + * stored. The following are valid formats: - * https://storage.googleapis.com/bucket_name/image_archive_name - - * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs + * um_sha256:hex_value * * In order to create an image, you must provide the full or partial URL of one of the following: * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageList.java index a61438b1d5b..5dadcb0dd06 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageList.java @@ -50,7 +50,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ImageList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ImageList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ImageList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageParams.java index 8d4975d6e7a..e15c382b178 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageParams.java @@ -30,18 +30,22 @@ public final class ImageParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map resourceManagerTags; /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public ImageParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Instance.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Instance.java index 3ecd0ee7e4b..b71eefab2a6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Instance.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Instance.java @@ -55,14 +55,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ConfidentialInstanceConfig confidentialInstanceConfig; /** - * [Output Only] The CPU platform used by this instance. + * Output only. [Output Only] The CPU platform used by this instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cpuPlatform; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,7 +138,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String hostname; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -167,7 +168,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String keyRevocationActionType; /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * Output only. [Output Only] Type of the resource. Always compute#instance for instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -193,21 +194,21 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Last start timestamp inRFC3339 text format. + * Output only. [Output Only] Last start timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lastStartTimestamp; /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lastStopTimestamp; /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -285,6 +286,13 @@ public final class Instance extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private InstanceParams params; + /** + * Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map partnerMetadata; + /** * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK * as default. @@ -308,22 +316,22 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * Output only. [Output Only] Specifies values set for instance attributes as compared to the + * values requested by user in the corresponding input only field. * The value may be {@code null}. */ @com.google.api.client.util.Key private ResourceStatus resourceStatus; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -337,7 +345,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Scheduling scheduling; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -381,24 +389,24 @@ public final class Instance extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceMachineImageEncryptionKey; /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine + * has detected suspicious activity. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean startRestricted; /** - * [Output Only] The status of the instance. One of the following values: PROVISIONING, - * STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information - * about the status of the instance, see Instance life cycle. + * Output only. [Output Only] The status of the instance. One of the following values: + * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For + * more information about the status of the instance, see Instance life cycle. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -415,8 +423,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Tags tags; /** - * [Output Only] URL of the zone where the instance resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WorkloadIdentityConfig workloadIdentityConfig; + + /** + * Output only. [Output Only] URL of the zone where the instance resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -476,7 +490,7 @@ public Instance setConfidentialInstanceConfig(ConfidentialInstanceConfig confide } /** - * [Output Only] The CPU platform used by this instance. + * Output only. [Output Only] The CPU platform used by this instance. * @return value or {@code null} for none */ public java.lang.String getCpuPlatform() { @@ -484,7 +498,7 @@ public java.lang.String getCpuPlatform() { } /** - * [Output Only] The CPU platform used by this instance. + * Output only. [Output Only] The CPU platform used by this instance. * @param cpuPlatform cpuPlatform or {@code null} for none */ public Instance setCpuPlatform(java.lang.String cpuPlatform) { @@ -493,7 +507,7 @@ public Instance setCpuPlatform(java.lang.String cpuPlatform) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -501,7 +515,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Instance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -683,7 +697,8 @@ public Instance setHostname(java.lang.String hostname) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -691,7 +706,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Instance setId(java.math.BigInteger id) { @@ -750,7 +766,7 @@ public Instance setKeyRevocationActionType(java.lang.String keyRevocationActionT } /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * Output only. [Output Only] Type of the resource. Always compute#instance for instances. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -758,7 +774,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * Output only. [Output Only] Type of the resource. Always compute#instance for instances. * @param kind kind or {@code null} for none */ public Instance setKind(java.lang.String kind) { @@ -849,7 +865,7 @@ public Instance setLabels(java.util.Map labels) { } /** - * [Output Only] Last start timestamp inRFC3339 text format. + * Output only. [Output Only] Last start timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStartTimestamp() { @@ -857,7 +873,7 @@ public java.lang.String getLastStartTimestamp() { } /** - * [Output Only] Last start timestamp inRFC3339 text format. + * Output only. [Output Only] Last start timestamp inRFC3339 text format. * @param lastStartTimestamp lastStartTimestamp or {@code null} for none */ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { @@ -866,7 +882,7 @@ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { } /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStopTimestamp() { @@ -874,7 +890,7 @@ public java.lang.String getLastStopTimestamp() { } /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. * @param lastStopTimestamp lastStopTimestamp or {@code null} for none */ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { @@ -883,7 +899,7 @@ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { } /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastSuspendedTimestamp() { @@ -891,7 +907,7 @@ public java.lang.String getLastSuspendedTimestamp() { } /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * @param lastSuspendedTimestamp lastSuspendedTimestamp or {@code null} for none */ public Instance setLastSuspendedTimestamp(java.lang.String lastSuspendedTimestamp) { @@ -1064,6 +1080,23 @@ public Instance setParams(InstanceParams params) { return this; } + /** + * Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. + * @return value or {@code null} for none + */ + public java.util.Map getPartnerMetadata() { + return partnerMetadata; + } + + /** + * Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. + * @param partnerMetadata partnerMetadata or {@code null} for none + */ + public Instance setPartnerMetadata(java.util.Map partnerMetadata) { + this.partnerMetadata = partnerMetadata; + return this; + } + /** * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK * as default. @@ -1118,8 +1151,8 @@ public Instance setResourcePolicies(java.util.List resourcePol } /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * Output only. [Output Only] Specifies values set for instance attributes as compared to the + * values requested by user in the corresponding input only field. * @return value or {@code null} for none */ public ResourceStatus getResourceStatus() { @@ -1127,8 +1160,8 @@ public ResourceStatus getResourceStatus() { } /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * Output only. [Output Only] Specifies values set for instance attributes as compared to the + * values requested by user in the corresponding input only field. * @param resourceStatus resourceStatus or {@code null} for none */ public Instance setResourceStatus(ResourceStatus resourceStatus) { @@ -1137,7 +1170,7 @@ public Instance setResourceStatus(ResourceStatus resourceStatus) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -1145,7 +1178,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -1154,7 +1187,7 @@ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1162,7 +1195,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1188,7 +1221,7 @@ public Instance setScheduling(Scheduling scheduling) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1196,7 +1229,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public Instance setSelfLink(java.lang.String selfLink) { @@ -1294,8 +1327,8 @@ public Instance setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceM } /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine + * has detected suspicious activity. * @return value or {@code null} for none */ public java.lang.Boolean getStartRestricted() { @@ -1303,8 +1336,8 @@ public java.lang.Boolean getStartRestricted() { } /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine + * has detected suspicious activity. * @param startRestricted startRestricted or {@code null} for none */ public Instance setStartRestricted(java.lang.Boolean startRestricted) { @@ -1313,9 +1346,9 @@ public Instance setStartRestricted(java.lang.Boolean startRestricted) { } /** - * [Output Only] The status of the instance. One of the following values: PROVISIONING, - * STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information - * about the status of the instance, see Instance life cycle. + * Output only. [Output Only] The status of the instance. One of the following values: + * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For + * more information about the status of the instance, see Instance life cycle. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -1323,9 +1356,9 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instance. One of the following values: PROVISIONING, - * STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information - * about the status of the instance, see Instance life cycle. + * Output only. [Output Only] The status of the instance. One of the following values: + * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For + * more information about the status of the instance, see Instance life cycle. * @param status status or {@code null} for none */ public Instance setStatus(java.lang.String status) { @@ -1334,7 +1367,7 @@ public Instance setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -1342,7 +1375,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @param statusMessage statusMessage or {@code null} for none */ public Instance setStatusMessage(java.lang.String statusMessage) { @@ -1374,8 +1407,23 @@ public Instance setTags(Tags tags) { } /** - * [Output Only] URL of the zone where the instance resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig; + } + + /** + * @param workloadIdentityConfig workloadIdentityConfig or {@code null} for none + */ + public Instance setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig) { + this.workloadIdentityConfig = workloadIdentityConfig; + return this; + } + + /** + * Output only. [Output Only] URL of the zone where the instance resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -1383,8 +1431,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the zone where the instance resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the instance resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * @param zone zone or {@code null} for none */ public Instance setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java index 8ace3b07ae4..e9839b02983 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java @@ -44,8 +44,8 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for aggregated lists of - * Instance resources. + * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for + * aggregated lists of Instance resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java index a460f6a71e8..0802df8ace4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java @@ -30,21 +30,21 @@ public final class InstanceConsumptionData extends com.google.api.client.json.GenericJson { /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceConsumptionInfo consumptionInfo; /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instance; /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumptionInfo() { @@ -52,7 +52,7 @@ public InstanceConsumptionInfo getConsumptionInfo() { } /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * @param consumptionInfo consumptionInfo or {@code null} for none */ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consumptionInfo) { @@ -61,7 +61,7 @@ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consum } /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -69,7 +69,7 @@ public java.lang.String getInstance() { } /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * @param instance instance or {@code null} for none */ public InstanceConsumptionData setInstance(java.lang.String instance) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java index 9964f0ec7b8..045c36fe60e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java @@ -30,35 +30,35 @@ public final class InstanceConsumptionInfo extends com.google.api.client.json.GenericJson { /** - * The number of virtual CPUs that are available to the instance. + * Output only. The number of virtual CPUs that are available to the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer guestCpus; /** - * The amount of local SSD storage available to the instance, defined in GiB. + * Output only. The amount of local SSD storage available to the instance, defined in GiB. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer localSsdGb; /** - * The amount of physical memory available to the instance, defined in MiB. + * Output only. The amount of physical memory available to the instance, defined in MiB. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer memoryMb; /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer minNodeCpus; /** - * The number of virtual CPUs that are available to the instance. + * Output only. The number of virtual CPUs that are available to the instance. * @return value or {@code null} for none */ public java.lang.Integer getGuestCpus() { @@ -66,7 +66,7 @@ public java.lang.Integer getGuestCpus() { } /** - * The number of virtual CPUs that are available to the instance. + * Output only. The number of virtual CPUs that are available to the instance. * @param guestCpus guestCpus or {@code null} for none */ public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { @@ -75,7 +75,7 @@ public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { } /** - * The amount of local SSD storage available to the instance, defined in GiB. + * Output only. The amount of local SSD storage available to the instance, defined in GiB. * @return value or {@code null} for none */ public java.lang.Integer getLocalSsdGb() { @@ -83,7 +83,7 @@ public java.lang.Integer getLocalSsdGb() { } /** - * The amount of local SSD storage available to the instance, defined in GiB. + * Output only. The amount of local SSD storage available to the instance, defined in GiB. * @param localSsdGb localSsdGb or {@code null} for none */ public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { @@ -92,7 +92,7 @@ public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * The amount of physical memory available to the instance, defined in MiB. + * Output only. The amount of physical memory available to the instance, defined in MiB. * @return value or {@code null} for none */ public java.lang.Integer getMemoryMb() { @@ -100,7 +100,7 @@ public java.lang.Integer getMemoryMb() { } /** - * The amount of physical memory available to the instance, defined in MiB. + * Output only. The amount of physical memory available to the instance, defined in MiB. * @param memoryMb memoryMb or {@code null} for none */ public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { @@ -109,7 +109,7 @@ public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { } /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. * @return value or {@code null} for none */ public java.lang.Integer getMinNodeCpus() { @@ -117,7 +117,7 @@ public java.lang.Integer getMinNodeCpus() { } /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. * @param minNodeCpus minNodeCpus or {@code null} for none */ public InstanceConsumptionInfo setMinNodeCpus(java.lang.Integer minNodeCpus) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java new file mode 100644 index 00000000000..681d9b2c7a7 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java @@ -0,0 +1,75 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A flexible specification of machine types for instances to create. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specification of alternative, flexible instance subsets. One of them will be selected to create + * the instances based on various criteria, like: - ranks, - location policy, - current capacity, + * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE + * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map instanceSelections; + + /** + * Specification of alternative, flexible instance subsets. One of them will be selected to create + * the instances based on various criteria, like: - ranks, - location policy, - current capacity, + * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE + * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. + * @return value or {@code null} for none + */ + public java.util.Map getInstanceSelections() { + return instanceSelections; + } + + /** + * Specification of alternative, flexible instance subsets. One of them will be selected to create + * the instances based on various criteria, like: - ranks, - location policy, - current capacity, + * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE + * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. + * @param instanceSelections instanceSelections or {@code null} for none + */ + public InstanceFlexibilityPolicy setInstanceSelections(java.util.Map instanceSelections) { + this.instanceSelections = instanceSelections; + return this; + } + + @Override + public InstanceFlexibilityPolicy set(String fieldName, Object value) { + return (InstanceFlexibilityPolicy) super.set(fieldName, value); + } + + @Override + public InstanceFlexibilityPolicy clone() { + return (InstanceFlexibilityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java new file mode 100644 index 00000000000..11f9142150d --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java @@ -0,0 +1,134 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Specification of machine type to use. Every position inside this message is an alternative. The + * count specified in the shape flexibility must not exceed the number of entries in + * per_instance_properties or the capacity of the name_pattern, if used. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceFlexibilityPolicyInstanceSelection extends com.google.api.client.json.GenericJson { + + /** + * Disks to be attached to the instances created from in this selection. They override the disks + * specified in the instance properties. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + static { + // hack to force ProGuard to consider AttachedDisk used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AttachedDisk.class); + } + + /** + * Alternative machine types to use for instances that are created from these properties. This + * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial + * URLs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List machineTypes; + + /** + * Rank when prioritizing the shape flexibilities. The instance selections with rank are + * considered first, in the ascending order of the rank. If not set, defaults to 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long rank; + + /** + * Disks to be attached to the instances created from in this selection. They override the disks + * specified in the instance properties. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * Disks to be attached to the instances created from in this selection. They override the disks + * specified in the instance properties. + * @param disks disks or {@code null} for none + */ + public InstanceFlexibilityPolicyInstanceSelection setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + /** + * Alternative machine types to use for instances that are created from these properties. This + * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial + * URLs. + * @return value or {@code null} for none + */ + public java.util.List getMachineTypes() { + return machineTypes; + } + + /** + * Alternative machine types to use for instances that are created from these properties. This + * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial + * URLs. + * @param machineTypes machineTypes or {@code null} for none + */ + public InstanceFlexibilityPolicyInstanceSelection setMachineTypes(java.util.List machineTypes) { + this.machineTypes = machineTypes; + return this; + } + + /** + * Rank when prioritizing the shape flexibilities. The instance selections with rank are + * considered first, in the ascending order of the rank. If not set, defaults to 0. + * @return value or {@code null} for none + */ + public java.lang.Long getRank() { + return rank; + } + + /** + * Rank when prioritizing the shape flexibilities. The instance selections with rank are + * considered first, in the ascending order of the rank. If not set, defaults to 0. + * @param rank rank or {@code null} for none + */ + public InstanceFlexibilityPolicyInstanceSelection setRank(java.lang.Long rank) { + this.rank = rank; + return this; + } + + @Override + public InstanceFlexibilityPolicyInstanceSelection set(String fieldName, Object value) { + return (InstanceFlexibilityPolicyInstanceSelection) super.set(fieldName, value); + } + + @Override + public InstanceFlexibilityPolicyInstanceSelection clone() { + return (InstanceFlexibilityPolicyInstanceSelection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroup.java index b4c883b718f..1347250c1d6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroup.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroup.java @@ -43,7 +43,8 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,22 +58,24 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String fingerprint; /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * Output only. [Output Only] A unique identifier for this instance group, generated by the + * server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance + * groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,45 +111,47 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * Output only. [Output Only] The URL of theregion where the instance group is located (for + * regional resources). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] The URL for this instance group. The server generates this URL. + * Output only. [Output Only] The URL for this instance group. The server generates this URL. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] The total number of instances in the instance group. + * Output only. [Output Only] The total number of instances in the instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer size; /** - * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If - * your instance has multiple network interfaces, then the network and subnetwork fields only - * refer to the network and subnet used by your primary interface (nic0). + * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance + * group belong. If your instance has multiple network interfaces, then the network and subnetwork + * fields only refer to the network and subnet used by your primary interface (nic0). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String subnetwork; /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal + * resources). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -154,7 +159,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text + * format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstanceGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -180,8 +186,8 @@ public InstanceGroup setDescription(java.lang.String description) { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. * @see #decodeFingerprint() * @return value or {@code null} for none */ @@ -190,8 +196,8 @@ public java.lang.String getFingerprint() { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. * @see #getFingerprint() * @return Base64 decoded value or {@code null} for none * @@ -202,8 +208,8 @@ public byte[] decodeFingerprint() { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. * @see #encodeFingerprint() * @param fingerprint fingerprint or {@code null} for none */ @@ -213,8 +219,8 @@ public InstanceGroup setFingerprint(java.lang.String fingerprint) { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. * @see #setFingerprint() * *

      @@ -229,7 +235,8 @@ public InstanceGroup encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * Output only. [Output Only] A unique identifier for this instance group, generated by the + * server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -237,7 +244,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * Output only. [Output Only] A unique identifier for this instance group, generated by the + * server. * @param id id or {@code null} for none */ public InstanceGroup setId(java.math.BigInteger id) { @@ -246,7 +254,8 @@ public InstanceGroup setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance + * groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -254,7 +263,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance + * groups. * @param kind kind or {@code null} for none */ public InstanceGroup setKind(java.lang.String kind) { @@ -330,8 +340,8 @@ public InstanceGroup setNetwork(java.lang.String network) { } /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * Output only. [Output Only] The URL of theregion where the instance group is located (for + * regional resources). * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -339,8 +349,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * Output only. [Output Only] The URL of theregion where the instance group is located (for + * regional resources). * @param region region or {@code null} for none */ public InstanceGroup setRegion(java.lang.String region) { @@ -349,7 +359,7 @@ public InstanceGroup setRegion(java.lang.String region) { } /** - * [Output Only] The URL for this instance group. The server generates this URL. + * Output only. [Output Only] The URL for this instance group. The server generates this URL. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -357,7 +367,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this instance group. The server generates this URL. + * Output only. [Output Only] The URL for this instance group. The server generates this URL. * @param selfLink selfLink or {@code null} for none */ public InstanceGroup setSelfLink(java.lang.String selfLink) { @@ -366,7 +376,7 @@ public InstanceGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The total number of instances in the instance group. + * Output only. [Output Only] The total number of instances in the instance group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -374,7 +384,7 @@ public java.lang.Integer getSize() { } /** - * [Output Only] The total number of instances in the instance group. + * Output only. [Output Only] The total number of instances in the instance group. * @param size size or {@code null} for none */ public InstanceGroup setSize(java.lang.Integer size) { @@ -383,9 +393,9 @@ public InstanceGroup setSize(java.lang.Integer size) { } /** - * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If - * your instance has multiple network interfaces, then the network and subnetwork fields only - * refer to the network and subnet used by your primary interface (nic0). + * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance + * group belong. If your instance has multiple network interfaces, then the network and subnetwork + * fields only refer to the network and subnet used by your primary interface (nic0). * @return value or {@code null} for none */ public java.lang.String getSubnetwork() { @@ -393,9 +403,9 @@ public java.lang.String getSubnetwork() { } /** - * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If - * your instance has multiple network interfaces, then the network and subnetwork fields only - * refer to the network and subnet used by your primary interface (nic0). + * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance + * group belong. If your instance has multiple network interfaces, then the network and subnetwork + * fields only refer to the network and subnet used by your primary interface (nic0). * @param subnetwork subnetwork or {@code null} for none */ public InstanceGroup setSubnetwork(java.lang.String subnetwork) { @@ -404,7 +414,8 @@ public InstanceGroup setSubnetwork(java.lang.String subnetwork) { } /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal + * resources). * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -412,7 +423,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal + * resources). * @param zone zone or {@code null} for none */ public InstanceGroup setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java index 5d0836701f5..e5e5e311a40 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java @@ -30,7 +30,7 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,46 +44,46 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupAggregatedList for - * aggregated lists of instance groups. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List unreachables; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -91,7 +91,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public InstanceGroupAggregatedList setId(java.lang.String id) { @@ -117,8 +117,8 @@ public InstanceGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +193,7 @@ public InstanceGroupAggregatedList setUnreachables(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group - * lists. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for + * instance group lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group - * lists. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for + * instance group lists. * @param kind kind or {@code null} for none */ public InstanceGroupList setKind(java.lang.String kind) { @@ -135,10 +135,10 @@ public InstanceGroupList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public InstanceGroupList setNextPageToken(java.lang.String nextPageToken) { @@ -158,7 +158,7 @@ public InstanceGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstanceGroupList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java index deba7a5314c..7872e5f3712 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -66,15 +66,16 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String baseInstanceName; /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 + * text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] The list of instance actions and the number of instances in this managed instance - * group that are scheduled for each of those actions. + * Output only. [Output Only] The list of instance actions and the number of instances in this + * managed instance group that are scheduled for each of those actions. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,7 +108,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String fingerprint; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -122,7 +124,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy; /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,8 +148,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String instanceTemplate; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for + * managed instance groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -177,8 +179,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.util.List namedPorts; /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * Output only. [Output Only] The URL of theregion where the managed instance group resides (for + * regional resources). * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -192,21 +194,22 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerResourcePolicies resourcePolicies; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [Output Only] The URL for this managed instance group. The server defines this + * URL. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -227,7 +230,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private StatefulPolicy statefulPolicy; /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -250,6 +253,13 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener @com.google.api.client.util.Key private java.lang.Integer targetSize; + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerTargetSizePolicy targetSizePolicy; + /** * The target number of stopped instances for this managed instance group. This number changes * when you: - Stop instance using the stopInstances method or start instances using @@ -291,8 +301,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.util.List versions; /** - * [Output Only] The URL of azone where the managed instance group is located (for zonal - * resources). + * Output only. [Output Only] The URL of azone where the managed instance group is located (for + * zonal resources). * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -366,7 +376,8 @@ public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceNam } /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 + * text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -374,7 +385,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 + * text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimestamp) { @@ -383,8 +395,8 @@ public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimest } /** - * [Output Only] The list of instance actions and the number of instances in this managed instance - * group that are scheduled for each of those actions. + * Output only. [Output Only] The list of instance actions and the number of instances in this + * managed instance group that are scheduled for each of those actions. * @return value or {@code null} for none */ public InstanceGroupManagerActionsSummary getCurrentActions() { @@ -392,8 +404,8 @@ public InstanceGroupManagerActionsSummary getCurrentActions() { } /** - * [Output Only] The list of instance actions and the number of instances in this managed instance - * group that are scheduled for each of those actions. + * Output only. [Output Only] The list of instance actions and the number of instances in this + * managed instance group that are scheduled for each of those actions. * @param currentActions currentActions or {@code null} for none */ public InstanceGroupManager setCurrentActions(InstanceGroupManagerActionsSummary currentActions) { @@ -499,7 +511,8 @@ public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -507,7 +520,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public InstanceGroupManager setId(java.math.BigInteger id) { @@ -535,7 +549,7 @@ public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerIns } /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * @return value or {@code null} for none */ public java.lang.String getInstanceGroup() { @@ -543,7 +557,7 @@ public java.lang.String getInstanceGroup() { } /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * @param instanceGroup instanceGroup or {@code null} for none */ public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { @@ -592,8 +606,8 @@ public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplat } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for + * managed instance groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -601,8 +615,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for + * managed instance groups. * @param kind kind or {@code null} for none */ public InstanceGroupManager setKind(java.lang.String kind) { @@ -666,8 +680,8 @@ public InstanceGroupManager setNamedPorts(java.util.List namedPorts) } /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * Output only. [Output Only] The URL of theregion where the managed instance group resides (for + * regional resources). * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -675,8 +689,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * Output only. [Output Only] The URL of theregion where the managed instance group resides (for + * regional resources). * @param region region or {@code null} for none */ public InstanceGroupManager setRegion(java.lang.String region) { @@ -702,7 +716,7 @@ public InstanceGroupManager setResourcePolicies(InstanceGroupManagerResourcePoli } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -710,7 +724,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -719,7 +733,7 @@ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -727,7 +741,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -736,7 +750,8 @@ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [Output Only] The URL for this managed instance group. The server defines this + * URL. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -744,7 +759,8 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [Output Only] The URL for this managed instance group. The server defines this + * URL. * @param selfLink selfLink or {@code null} for none */ public InstanceGroupManager setSelfLink(java.lang.String selfLink) { @@ -787,7 +803,7 @@ public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy) { } /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * @return value or {@code null} for none */ public InstanceGroupManagerStatus getStatus() { @@ -795,7 +811,7 @@ public InstanceGroupManagerStatus getStatus() { } /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * @param status status or {@code null} for none */ public InstanceGroupManager setStatus(InstanceGroupManagerStatus status) { @@ -843,6 +859,23 @@ public InstanceGroupManager setTargetSize(java.lang.Integer targetSize) { return this; } + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * @return value or {@code null} for none + */ + public InstanceGroupManagerTargetSizePolicy getTargetSizePolicy() { + return targetSizePolicy; + } + + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * @param targetSizePolicy targetSizePolicy or {@code null} for none + */ + public InstanceGroupManager setTargetSizePolicy(InstanceGroupManagerTargetSizePolicy targetSizePolicy) { + this.targetSizePolicy = targetSizePolicy; + return this; + } + /** * The target number of stopped instances for this managed instance group. This number changes * when you: - Stop instance using the stopInstances method or start instances using @@ -936,8 +969,8 @@ public InstanceGroupManager setVersions(java.util.List items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for - * an aggregated list of managed instance groups. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupManagerAggregatedList for an aggregated list of managed instance + * groups. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List unreachables; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -91,7 +92,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public InstanceGroupManagerAggregatedList setId(java.lang.String id) { @@ -117,8 +118,9 @@ public InstanceGroupManagerAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +196,7 @@ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List it } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. + * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList + * for a list of managed instance groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. + * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList + * for a list of managed instance groups. * @param kind kind or {@code null} for none */ public InstanceGroupManagerList setKind(java.lang.String kind) { @@ -135,10 +135,10 @@ public InstanceGroupManagerList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) { @@ -158,7 +158,7 @@ public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupManagerList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupManagerList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java index cf3ba87f674..074f45e07fe 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java @@ -33,7 +33,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,15 +48,16 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.String description; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupManagerResizeRequest for resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,6 +70,14 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie @com.google.api.client.util.Key private java.lang.String name; + /** + * Output only. [Output Only] The URL of aregion where the resize request is located. Populated + * only for regional resize requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + /** * Requested run duration for instances that will be created by this request. At the end of the * run duration instance will be deleted. @@ -85,43 +95,44 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer resizeBy; /** - * [Output Only] The URL for this resize request. The server defines this URL. + * Output only. [Output Only] The URL for this resize request. The server defines this URL. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLinkWithId; /** - * [Output only] Current state of the request. + * Output only. [Output only] Current state of the request. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * [Output only] Status of the request. + * Output only. [Output only] Status of the request. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerResizeRequestStatus status; /** - * [Output Only] The URL of azone where the resize request is located. Populated only for zonal - * resize requests. + * Output only. [Output Only] The URL of azone where the resize request is located. Populated only + * for zonal resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -129,7 +140,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstanceGroupManagerResizeRequest setCreationTimestamp(java.lang.String creationTimestamp) { @@ -155,7 +167,8 @@ public InstanceGroupManagerResizeRequest setDescription(java.lang.String descrip } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -163,7 +176,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public InstanceGroupManagerResizeRequest setId(java.math.BigInteger id) { @@ -172,8 +186,8 @@ public InstanceGroupManagerResizeRequest setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupManagerResizeRequest for resize requests. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -181,8 +195,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupManagerResizeRequest for resize requests. * @param kind kind or {@code null} for none */ public InstanceGroupManagerResizeRequest setKind(java.lang.String kind) { @@ -207,6 +221,25 @@ public InstanceGroupManagerResizeRequest setName(java.lang.String name) { return this; } + /** + * Output only. [Output Only] The URL of aregion where the resize request is located. Populated + * only for regional resize requests. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The URL of aregion where the resize request is located. Populated + * only for regional resize requests. + * @param region region or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setRegion(java.lang.String region) { + this.region = region; + return this; + } + /** * Requested run duration for instances that will be created by this request. At the end of the * run duration instance will be deleted. @@ -246,7 +279,7 @@ public InstanceGroupManagerResizeRequest setResizeBy(java.lang.Integer resizeBy) } /** - * [Output Only] The URL for this resize request. The server defines this URL. + * Output only. [Output Only] The URL for this resize request. The server defines this URL. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -254,7 +287,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this resize request. The server defines this URL. + * Output only. [Output Only] The URL for this resize request. The server defines this URL. * @param selfLink selfLink or {@code null} for none */ public InstanceGroupManagerResizeRequest setSelfLink(java.lang.String selfLink) { @@ -263,7 +296,7 @@ public InstanceGroupManagerResizeRequest setSelfLink(java.lang.String selfLink) } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -271,7 +304,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public InstanceGroupManagerResizeRequest setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -280,7 +313,7 @@ public InstanceGroupManagerResizeRequest setSelfLinkWithId(java.lang.String self } /** - * [Output only] Current state of the request. + * Output only. [Output only] Current state of the request. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -288,7 +321,7 @@ public java.lang.String getState() { } /** - * [Output only] Current state of the request. + * Output only. [Output only] Current state of the request. * @param state state or {@code null} for none */ public InstanceGroupManagerResizeRequest setState(java.lang.String state) { @@ -297,7 +330,7 @@ public InstanceGroupManagerResizeRequest setState(java.lang.String state) { } /** - * [Output only] Status of the request. + * Output only. [Output only] Status of the request. * @return value or {@code null} for none */ public InstanceGroupManagerResizeRequestStatus getStatus() { @@ -305,7 +338,7 @@ public InstanceGroupManagerResizeRequestStatus getStatus() { } /** - * [Output only] Status of the request. + * Output only. [Output only] Status of the request. * @param status status or {@code null} for none */ public InstanceGroupManagerResizeRequest setStatus(InstanceGroupManagerResizeRequestStatus status) { @@ -314,8 +347,8 @@ public InstanceGroupManagerResizeRequest setStatus(InstanceGroupManagerResizeReq } /** - * [Output Only] The URL of azone where the resize request is located. Populated only for zonal - * resize requests. + * Output only. [Output Only] The URL of azone where the resize request is located. Populated only + * for zonal resize requests. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -323,8 +356,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of azone where the resize request is located. Populated only for zonal - * resize requests. + * Output only. [Output Only] The URL of azone where the resize request is located. Populated only + * for zonal resize requests. * @param zone zone or {@code null} for none */ public InstanceGroupManagerResizeRequest setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java index 230151816f0..6d400827cdf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java @@ -30,32 +30,32 @@ public final class InstanceGroupManagerResizeRequestStatus extends com.google.api.client.json.GenericJson { /** - * [Output only] Fatal errors encountered during the queueing or provisioning phases of the - * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt - * errors, this field is final and errors are never removed from here, as the ResizeRequest is not - * going to retry. + * Output only. [Output only] Fatal errors encountered during the queueing or provisioning phases + * of the ResizeRequest that caused the transition to the FAILED state. Contrary to the + * last_attempt errors, this field is final and errors are never removed from here, as the + * ResizeRequest is not going to retry. * The value may be {@code null}. */ @com.google.api.client.util.Key private Error error; /** - * [Output only] Information about the last attempt to fulfill the request. The value is temporary - * since the ResizeRequest can retry, as long as it's still active and the last attempt value can - * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, - * the value may be stale and no longer show an active problem. The value is cleared when - * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED - * the error describing it will be storred in the "error" field only. + * Output only. [Output only] Information about the last attempt to fulfill the request. The value + * is temporary since the ResizeRequest can retry, as long as it's still active and the last + * attempt value can either be cleared or replaced with a different error. Since ResizeRequest + * retries infrequently, the value may be stale and no longer show an active problem. The value is + * cleared when ResizeRequest transitions to the final state (becomes inactive). If the final + * state is FAILED the error describing it will be storred in the "error" field only. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerResizeRequestStatusLastAttempt lastAttempt; /** - * [Output only] Fatal errors encountered during the queueing or provisioning phases of the - * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt - * errors, this field is final and errors are never removed from here, as the ResizeRequest is not - * going to retry. + * Output only. [Output only] Fatal errors encountered during the queueing or provisioning phases + * of the ResizeRequest that caused the transition to the FAILED state. Contrary to the + * last_attempt errors, this field is final and errors are never removed from here, as the + * ResizeRequest is not going to retry. * @return value or {@code null} for none */ public Error getError() { @@ -63,10 +63,10 @@ public Error getError() { } /** - * [Output only] Fatal errors encountered during the queueing or provisioning phases of the - * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt - * errors, this field is final and errors are never removed from here, as the ResizeRequest is not - * going to retry. + * Output only. [Output only] Fatal errors encountered during the queueing or provisioning phases + * of the ResizeRequest that caused the transition to the FAILED state. Contrary to the + * last_attempt errors, this field is final and errors are never removed from here, as the + * ResizeRequest is not going to retry. * @param error error or {@code null} for none */ public InstanceGroupManagerResizeRequestStatus setError(Error error) { @@ -75,12 +75,12 @@ public InstanceGroupManagerResizeRequestStatus setError(Error error) { } /** - * [Output only] Information about the last attempt to fulfill the request. The value is temporary - * since the ResizeRequest can retry, as long as it's still active and the last attempt value can - * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, - * the value may be stale and no longer show an active problem. The value is cleared when - * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED - * the error describing it will be storred in the "error" field only. + * Output only. [Output only] Information about the last attempt to fulfill the request. The value + * is temporary since the ResizeRequest can retry, as long as it's still active and the last + * attempt value can either be cleared or replaced with a different error. Since ResizeRequest + * retries infrequently, the value may be stale and no longer show an active problem. The value is + * cleared when ResizeRequest transitions to the final state (becomes inactive). If the final + * state is FAILED the error describing it will be storred in the "error" field only. * @return value or {@code null} for none */ public InstanceGroupManagerResizeRequestStatusLastAttempt getLastAttempt() { @@ -88,12 +88,12 @@ public InstanceGroupManagerResizeRequestStatusLastAttempt getLastAttempt() { } /** - * [Output only] Information about the last attempt to fulfill the request. The value is temporary - * since the ResizeRequest can retry, as long as it's still active and the last attempt value can - * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, - * the value may be stale and no longer show an active problem. The value is cleared when - * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED - * the error describing it will be storred in the "error" field only. + * Output only. [Output only] Information about the last attempt to fulfill the request. The value + * is temporary since the ResizeRequest can retry, as long as it's still active and the last + * attempt value can either be cleared or replaced with a different error. Since ResizeRequest + * retries infrequently, the value may be stale and no longer show an active problem. The value is + * cleared when ResizeRequest transitions to the final state (becomes inactive). If the final + * state is FAILED the error describing it will be storred in the "error" field only. * @param lastAttempt lastAttempt or {@code null} for none */ public InstanceGroupManagerResizeRequestStatus setLastAttempt(InstanceGroupManagerResizeRequestStatusLastAttempt lastAttempt) { @@ -112,8 +112,8 @@ public InstanceGroupManagerResizeRequestStatus clone() { } /** - * [Output only] Fatal errors encountered during the queueing or provisioning phases of the - * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt + * Output only. [Output only] Fatal errors encountered during the queueing or provisioning phases of + * the ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt * errors, this field is final and errors are never removed from here, as the ResizeRequest is not * going to retry. */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java index 74a21cc4e71..24cc8fa6425 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java @@ -30,14 +30,14 @@ public final class InstanceGroupManagerResizeRequestStatusLastAttempt extends com.google.api.client.json.GenericJson { /** - * Errors that prevented the ResizeRequest to be fulfilled. + * Output only. Errors that prevented the ResizeRequest to be fulfilled. * The value may be {@code null}. */ @com.google.api.client.util.Key private Error error; /** - * Errors that prevented the ResizeRequest to be fulfilled. + * Output only. Errors that prevented the ResizeRequest to be fulfilled. * @return value or {@code null} for none */ public Error getError() { @@ -45,7 +45,7 @@ public Error getError() { } /** - * Errors that prevented the ResizeRequest to be fulfilled. + * Output only. Errors that prevented the ResizeRequest to be fulfilled. * @param error error or {@code null} for none */ public InstanceGroupManagerResizeRequestStatusLastAttempt setError(Error error) { @@ -64,7 +64,7 @@ public InstanceGroupManagerResizeRequestStatusLastAttempt clone() { } /** - * Errors that prevented the ResizeRequest to be fulfilled. + * Output only. Errors that prevented the ResizeRequest to be fulfilled. */ public static final class Error extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java index 8aa630d2907..b43e47ffb08 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java @@ -30,7 +30,7 @@ public final class InstanceGroupManagerResizeRequestsListResponse extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,39 +50,39 @@ public final class InstanceGroupManagerResizeRequestsListResponse extends com.go } /** - * [Output Only] Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for a - * list of resize requests. + * Output only. [Output Only] Type of the resource. + * Alwayscompute#instanceGroupManagerResizeRequestList for a list of resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public InstanceGroupManagerResizeRequestsListResponse setId(java.lang.String id) { @@ -116,8 +116,8 @@ public InstanceGroupManagerResizeRequestsListResponse setItems(java.util.List appliedAcceleratorTopologies; + + /** + * Output only. [Output Only] The URL of theAutoscaler that targets this instance group manager. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String autoscaler; /** - * [Output Only] A bit indicating whether the managed instance group is in a stable state. A - * stable state means that: none of the instances in the managed instance group is currently - * undergoing any type of change (for example, creation, restart, or deletion); no future changes - * are scheduled for instances in the managed instance group; and the managed instance group - * itself is not being modified. + * Output only. [Output Only] The status of bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation; + + /** + * Output only. [Output Only] The list of instance statuses and the number of instances in this + * managed instance group that have the status. Currently only shown for TPU MIGs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusInstanceStatusSummary currentInstanceStatuses; + + /** + * Output only. [Output Only] A bit indicating whether the managed instance group is in a stable + * state. A stable state means that: none of the instances in the managed instance group is + * currently undergoing any type of change (for example, creation, restart, or deletion); no + * future changes are scheduled for instances in the managed instance group; and the managed + * instance group itself is not being modified. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean isStable; /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerStatusStateful stateful; /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [Output Only] A status of consistency of Instances' versions with their target + * version specified by version field on Instance Group Manager. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerStatusVersionTarget versionTarget; /** - * [Output only] Status of all-instances configuration on the group. + * Output only. [Output only] Status of all-instances configuration on the group. * @return value or {@code null} for none */ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { @@ -78,7 +101,7 @@ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { } /** - * [Output only] Status of all-instances configuration on the group. + * Output only. [Output only] Status of all-instances configuration on the group. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig) { @@ -87,7 +110,26 @@ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStat } /** - * [Output Only] The URL of theAutoscaler that targets this instance group manager. + * Output only. [Output Only] The accelerator topology applied to this MIG. Currently only one + * accelerator topology is supported. + * @return value or {@code null} for none + */ + public java.util.List getAppliedAcceleratorTopologies() { + return appliedAcceleratorTopologies; + } + + /** + * Output only. [Output Only] The accelerator topology applied to this MIG. Currently only one + * accelerator topology is supported. + * @param appliedAcceleratorTopologies appliedAcceleratorTopologies or {@code null} for none + */ + public InstanceGroupManagerStatus setAppliedAcceleratorTopologies(java.util.List appliedAcceleratorTopologies) { + this.appliedAcceleratorTopologies = appliedAcceleratorTopologies; + return this; + } + + /** + * Output only. [Output Only] The URL of theAutoscaler that targets this instance group manager. * @return value or {@code null} for none */ public java.lang.String getAutoscaler() { @@ -95,7 +137,7 @@ public java.lang.String getAutoscaler() { } /** - * [Output Only] The URL of theAutoscaler that targets this instance group manager. + * Output only. [Output Only] The URL of theAutoscaler that targets this instance group manager. * @param autoscaler autoscaler or {@code null} for none */ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { @@ -104,11 +146,47 @@ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { } /** - * [Output Only] A bit indicating whether the managed instance group is in a stable state. A - * stable state means that: none of the instances in the managed instance group is currently - * undergoing any type of change (for example, creation, restart, or deletion); no future changes - * are scheduled for instances in the managed instance group; and the managed instance group - * itself is not being modified. + * Output only. [Output Only] The status of bulk instance operation. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { + return bulkInstanceOperation; + } + + /** + * Output only. [Output Only] The status of bulk instance operation. + * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none + */ + public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { + this.bulkInstanceOperation = bulkInstanceOperation; + return this; + } + + /** + * Output only. [Output Only] The list of instance statuses and the number of instances in this + * managed instance group that have the status. Currently only shown for TPU MIGs + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary getCurrentInstanceStatuses() { + return currentInstanceStatuses; + } + + /** + * Output only. [Output Only] The list of instance statuses and the number of instances in this + * managed instance group that have the status. Currently only shown for TPU MIGs + * @param currentInstanceStatuses currentInstanceStatuses or {@code null} for none + */ + public InstanceGroupManagerStatus setCurrentInstanceStatuses(InstanceGroupManagerStatusInstanceStatusSummary currentInstanceStatuses) { + this.currentInstanceStatuses = currentInstanceStatuses; + return this; + } + + /** + * Output only. [Output Only] A bit indicating whether the managed instance group is in a stable + * state. A stable state means that: none of the instances in the managed instance group is + * currently undergoing any type of change (for example, creation, restart, or deletion); no + * future changes are scheduled for instances in the managed instance group; and the managed + * instance group itself is not being modified. * @return value or {@code null} for none */ public java.lang.Boolean getIsStable() { @@ -116,11 +194,11 @@ public java.lang.Boolean getIsStable() { } /** - * [Output Only] A bit indicating whether the managed instance group is in a stable state. A - * stable state means that: none of the instances in the managed instance group is currently - * undergoing any type of change (for example, creation, restart, or deletion); no future changes - * are scheduled for instances in the managed instance group; and the managed instance group - * itself is not being modified. + * Output only. [Output Only] A bit indicating whether the managed instance group is in a stable + * state. A stable state means that: none of the instances in the managed instance group is + * currently undergoing any type of change (for example, creation, restart, or deletion); no + * future changes are scheduled for instances in the managed instance group; and the managed + * instance group itself is not being modified. * @param isStable isStable or {@code null} for none */ public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { @@ -129,7 +207,7 @@ public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { } /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStateful getStateful() { @@ -137,7 +215,7 @@ public InstanceGroupManagerStatusStateful getStateful() { } /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * @param stateful stateful or {@code null} for none */ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful stateful) { @@ -146,8 +224,8 @@ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful } /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [Output Only] A status of consistency of Instances' versions with their target + * version specified by version field on Instance Group Manager. * @return value or {@code null} for none */ public InstanceGroupManagerStatusVersionTarget getVersionTarget() { @@ -155,8 +233,8 @@ public InstanceGroupManagerStatusVersionTarget getVersionTarget() { } /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [Output Only] A status of consistency of Instances' versions with their target + * version specified by version field on Instance Group Manager. * @param versionTarget versionTarget or {@code null} for none */ public InstanceGroupManagerStatus setVersionTarget(InstanceGroupManagerStatusVersionTarget versionTarget) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java new file mode 100644 index 00000000000..26fa1838eb2 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstanceGroupManagerStatusAcceleratorTopology. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceGroupManagerStatusAcceleratorTopology extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc. The value is the + * same as configured in the WorkloadPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopology; + + /** + * Output only. [Output Only] The state of the accelerator topology. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] The result of the latest accelerator topology state check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails stateDetails; + + /** + * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc. The value is the + * same as configured in the WorkloadPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopology() { + return acceleratorTopology; + } + + /** + * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc. The value is the + * same as configured in the WorkloadPolicy. + * @param acceleratorTopology acceleratorTopology or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopology setAcceleratorTopology(java.lang.String acceleratorTopology) { + this.acceleratorTopology = acceleratorTopology; + return this; + } + + /** + * Output only. [Output Only] The state of the accelerator topology. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The state of the accelerator topology. + * @param state state or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopology setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] The result of the latest accelerator topology state check. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails getStateDetails() { + return stateDetails; + } + + /** + * Output only. [Output Only] The result of the latest accelerator topology state check. + * @param stateDetails stateDetails or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopology setStateDetails(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails stateDetails) { + this.stateDetails = stateDetails; + return this; + } + + @Override + public InstanceGroupManagerStatusAcceleratorTopology set(String fieldName, Object value) { + return (InstanceGroupManagerStatusAcceleratorTopology) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusAcceleratorTopology clone() { + return (InstanceGroupManagerStatusAcceleratorTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java new file mode 100644 index 00000000000..4846161c97c --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java @@ -0,0 +1,370 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Encountered errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. [Output Only] Timestamp is shown only if there is an error. The field has // + * RFC3339 // text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. [Output Only] Encountered errors. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. [Output Only] Encountered errors. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. [Output Only] Timestamp is shown only if there is an error. The field has // + * RFC3339 // text format. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. [Output Only] Timestamp is shown only if there is an error. The field has // + * RFC3339 // text format. + * @param timestamp timestamp or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails set(String fieldName, Object value) { + return (InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails clone() { + return (InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails) super.clone(); + } + + /** + * Output only. [Output Only] Encountered errors. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Model definition for + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Model definition for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * ErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java index e0e76dce377..3d76a225843 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagerStatusAllInstancesConfig extends com.google.api.client.json.GenericJson { /** - * [Output Only] Current all-instances configuration revision. This value is in RFC3339 text - * format. + * Output only. [Output Only] Current all-instances configuration revision. This value is in + * RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String currentRevision; /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [Output Only] A bit indicating whether this configuration has been applied to all + * managed instances in the group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean effective; /** - * [Output Only] Current all-instances configuration revision. This value is in RFC3339 text - * format. + * Output only. [Output Only] Current all-instances configuration revision. This value is in + * RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCurrentRevision() { @@ -55,8 +55,8 @@ public java.lang.String getCurrentRevision() { } /** - * [Output Only] Current all-instances configuration revision. This value is in RFC3339 text - * format. + * Output only. [Output Only] Current all-instances configuration revision. This value is in + * RFC3339 text format. * @param currentRevision currentRevision or {@code null} for none */ public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang.String currentRevision) { @@ -65,8 +65,8 @@ public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang } /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [Output Only] A bit indicating whether this configuration has been applied to all + * managed instances in the group. * @return value or {@code null} for none */ public java.lang.Boolean getEffective() { @@ -74,8 +74,8 @@ public java.lang.Boolean getEffective() { } /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [Output Only] A bit indicating whether this configuration has been applied to all + * managed instances in the group. * @param effective effective or {@code null} for none */ public InstanceGroupManagerStatusAllInstancesConfig setEffective(java.lang.Boolean effective) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java new file mode 100644 index 00000000000..365ad1b4b88 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Bulk instance operation is the creation of VMs in a MIG when the targetSizePolicy.mode is set to + * BULK. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceGroupManagerStatusBulkInstanceOperation extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Informs whether bulk instance operation is in progress. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean inProgress; + + /** + * Output only. [Output Only] Information from the last progress check of bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck; + + /** + * Output only. [Output Only] Informs whether bulk instance operation is in progress. + * @return value or {@code null} for none + */ + public java.lang.Boolean getInProgress() { + return inProgress; + } + + /** + * Output only. [Output Only] Informs whether bulk instance operation is in progress. + * @param inProgress inProgress or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.Boolean inProgress) { + this.inProgress = inProgress; + return this; + } + + /** + * Output only. [Output Only] Information from the last progress check of bulk instance operation. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { + return lastProgressCheck; + } + + /** + * Output only. [Output Only] Information from the last progress check of bulk instance operation. + * @param lastProgressCheck lastProgressCheck or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation setLastProgressCheck(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck) { + this.lastProgressCheck = lastProgressCheck; + return this; + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperation set(String fieldName, Object value) { + return (InstanceGroupManagerStatusBulkInstanceOperation) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperation clone() { + return (InstanceGroupManagerStatusBulkInstanceOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java new file mode 100644 index 00000000000..a807d179547 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -0,0 +1,368 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Errors encountered during bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. [Output Only] Timestamp of the last progress check of bulk instance operation. + * Timestamp is in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. [Output Only] Errors encountered during bulk instance operation. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. [Output Only] Errors encountered during bulk instance operation. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. [Output Only] Timestamp of the last progress check of bulk instance operation. + * Timestamp is in RFC3339 text format. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. [Output Only] Timestamp of the last progress check of bulk instance operation. + * Timestamp is in RFC3339 text format. + * @param timestamp timestamp or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck set(String fieldName, Object value) { + return (InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() { + return (InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) super.clone(); + } + + /** + * Output only. [Output Only] Errors encountered during bulk instance operation. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Model definition for InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Model definition for + * InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java new file mode 100644 index 00000000000..b83decbf8bf --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java @@ -0,0 +1,404 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The list of instance statuses and the number of instances in this managed instance group that + * have the status. For more information about how to interpret each status check the instance + * lifecycle documentation. Currently only shown for TPU MIGs. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceGroupManagerStatusInstanceStatusSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * DEPROVISIONING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer deprovisioning; + + /** + * Output only. [Output Only] The number of instances that have not been created yet or have been + * deleted. Includes only instances that would be shown in the listManagedInstances method and not + * all instances that have been deleted in the lifetime of the MIG. Does not include FlexStart + * instances that are waiting for the resources availability, they are considered as 'pending'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nonExistent; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PENDING status, that is FlexStart instances that are waiting for resources. Instances that do + * not exist because of the other reasons are counted as 'non_existent'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pending; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PENDING_STOP status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pendingStop; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PROVISIONING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer provisioning; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * REPAIRING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer repairing; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * RUNNING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer running; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STAGING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer staging; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STOPPED status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stopped; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STOPPING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stopping; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * SUSPENDED status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer suspended; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * SUSPENDING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer suspending; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * TERMINATED status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer terminated; + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * DEPROVISIONING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getDeprovisioning() { + return deprovisioning; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * DEPROVISIONING status. + * @param deprovisioning deprovisioning or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setDeprovisioning(java.lang.Integer deprovisioning) { + this.deprovisioning = deprovisioning; + return this; + } + + /** + * Output only. [Output Only] The number of instances that have not been created yet or have been + * deleted. Includes only instances that would be shown in the listManagedInstances method and not + * all instances that have been deleted in the lifetime of the MIG. Does not include FlexStart + * instances that are waiting for the resources availability, they are considered as 'pending'. + * @return value or {@code null} for none + */ + public java.lang.Integer getNonExistent() { + return nonExistent; + } + + /** + * Output only. [Output Only] The number of instances that have not been created yet or have been + * deleted. Includes only instances that would be shown in the listManagedInstances method and not + * all instances that have been deleted in the lifetime of the MIG. Does not include FlexStart + * instances that are waiting for the resources availability, they are considered as 'pending'. + * @param nonExistent nonExistent or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setNonExistent(java.lang.Integer nonExistent) { + this.nonExistent = nonExistent; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PENDING status, that is FlexStart instances that are waiting for resources. Instances that do + * not exist because of the other reasons are counted as 'non_existent'. + * @return value or {@code null} for none + */ + public java.lang.Integer getPending() { + return pending; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PENDING status, that is FlexStart instances that are waiting for resources. Instances that do + * not exist because of the other reasons are counted as 'non_existent'. + * @param pending pending or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setPending(java.lang.Integer pending) { + this.pending = pending; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PENDING_STOP status. + * @return value or {@code null} for none + */ + public java.lang.Integer getPendingStop() { + return pendingStop; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PENDING_STOP status. + * @param pendingStop pendingStop or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setPendingStop(java.lang.Integer pendingStop) { + this.pendingStop = pendingStop; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PROVISIONING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getProvisioning() { + return provisioning; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * PROVISIONING status. + * @param provisioning provisioning or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setProvisioning(java.lang.Integer provisioning) { + this.provisioning = provisioning; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * REPAIRING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getRepairing() { + return repairing; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * REPAIRING status. + * @param repairing repairing or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setRepairing(java.lang.Integer repairing) { + this.repairing = repairing; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * RUNNING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getRunning() { + return running; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * RUNNING status. + * @param running running or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setRunning(java.lang.Integer running) { + this.running = running; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STAGING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getStaging() { + return staging; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STAGING status. + * @param staging staging or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setStaging(java.lang.Integer staging) { + this.staging = staging; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STOPPED status. + * @return value or {@code null} for none + */ + public java.lang.Integer getStopped() { + return stopped; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STOPPED status. + * @param stopped stopped or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setStopped(java.lang.Integer stopped) { + this.stopped = stopped; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STOPPING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getStopping() { + return stopping; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * STOPPING status. + * @param stopping stopping or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setStopping(java.lang.Integer stopping) { + this.stopping = stopping; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * SUSPENDED status. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuspended() { + return suspended; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * SUSPENDED status. + * @param suspended suspended or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setSuspended(java.lang.Integer suspended) { + this.suspended = suspended; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * SUSPENDING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuspending() { + return suspending; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * SUSPENDING status. + * @param suspending suspending or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setSuspending(java.lang.Integer suspending) { + this.suspending = suspending; + return this; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * TERMINATED status. + * @return value or {@code null} for none + */ + public java.lang.Integer getTerminated() { + return terminated; + } + + /** + * Output only. [Output Only] The number of instances in the managed instance group that have + * TERMINATED status. + * @param terminated terminated or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setTerminated(java.lang.Integer terminated) { + this.terminated = terminated; + return this; + } + + @Override + public InstanceGroupManagerStatusInstanceStatusSummary set(String fieldName, Object value) { + return (InstanceGroupManagerStatusInstanceStatusSummary) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusInstanceStatusSummary clone() { + return (InstanceGroupManagerStatusInstanceStatusSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java index 999eaf3584b..65c9d24eff9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java @@ -30,29 +30,29 @@ public final class InstanceGroupManagerStatusStateful extends com.google.api.client.json.GenericJson { /** - * [Output Only] A bit indicating whether the managed instance group has stateful configuration, - * that is, if you have configured any items in a stateful policy or in per-instance configs. The - * group might report that it has no stateful configuration even when there is still some - * preserved state on a managed instance, for example, if you have deleted all PICs but not yet - * applied those deletions. + * Output only. [Output Only] A bit indicating whether the managed instance group has stateful + * configuration, that is, if you have configured any items in a stateful policy or in per- + * instance configs. The group might report that it has no stateful configuration even when there + * is still some preserved state on a managed instance, for example, if you have deleted all PICs + * but not yet applied those deletions. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean hasStatefulConfig; /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs; /** - * [Output Only] A bit indicating whether the managed instance group has stateful configuration, - * that is, if you have configured any items in a stateful policy or in per-instance configs. The - * group might report that it has no stateful configuration even when there is still some - * preserved state on a managed instance, for example, if you have deleted all PICs but not yet - * applied those deletions. + * Output only. [Output Only] A bit indicating whether the managed instance group has stateful + * configuration, that is, if you have configured any items in a stateful policy or in per- + * instance configs. The group might report that it has no stateful configuration even when there + * is still some preserved state on a managed instance, for example, if you have deleted all PICs + * but not yet applied those deletions. * @return value or {@code null} for none */ public java.lang.Boolean getHasStatefulConfig() { @@ -60,11 +60,11 @@ public java.lang.Boolean getHasStatefulConfig() { } /** - * [Output Only] A bit indicating whether the managed instance group has stateful configuration, - * that is, if you have configured any items in a stateful policy or in per-instance configs. The - * group might report that it has no stateful configuration even when there is still some - * preserved state on a managed instance, for example, if you have deleted all PICs but not yet - * applied those deletions. + * Output only. [Output Only] A bit indicating whether the managed instance group has stateful + * configuration, that is, if you have configured any items in a stateful policy or in per- + * instance configs. The group might report that it has no stateful configuration even when there + * is still some preserved state on a managed instance, for example, if you have deleted all PICs + * but not yet applied those deletions. * @param hasStatefulConfig hasStatefulConfig or {@code null} for none */ public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean hasStatefulConfig) { @@ -73,7 +73,7 @@ public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean } /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfigs() { @@ -81,7 +81,7 @@ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfig } /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * @param perInstanceConfigs perInstanceConfigs or {@code null} for none */ public InstanceGroupManagerStatusStateful setPerInstanceConfigs(InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java index cd4fcc7b0cd..0a11f261bbd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java @@ -30,16 +30,18 @@ public final class InstanceGroupManagerStatusStatefulPerInstanceConfigs extends com.google.api.client.json.GenericJson { /** - * A bit indicating if all of the group's per-instance configurations (listed in the output of a - * listPerInstanceConfigs API call) have status EFFECTIVE or there are no per-instance-configs. + * Output only. A bit indicating if all of the group's per-instance configurations (listed in the + * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- + * instance-configs. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean allEffective; /** - * A bit indicating if all of the group's per-instance configurations (listed in the output of a - * listPerInstanceConfigs API call) have status EFFECTIVE or there are no per-instance-configs. + * Output only. A bit indicating if all of the group's per-instance configurations (listed in the + * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- + * instance-configs. * @return value or {@code null} for none */ public java.lang.Boolean getAllEffective() { @@ -47,8 +49,9 @@ public java.lang.Boolean getAllEffective() { } /** - * A bit indicating if all of the group's per-instance configurations (listed in the output of a - * listPerInstanceConfigs API call) have status EFFECTIVE or there are no per-instance-configs. + * Output only. A bit indicating if all of the group's per-instance configurations (listed in the + * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- + * instance-configs. * @param allEffective allEffective or {@code null} for none */ public InstanceGroupManagerStatusStatefulPerInstanceConfigs setAllEffective(java.lang.Boolean allEffective) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java index daa48f86a9a..47ab8a1d668 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java @@ -30,18 +30,18 @@ public final class InstanceGroupManagerStatusVersionTarget extends com.google.api.client.json.GenericJson { /** - * [Output Only] A bit indicating whether version target has been reached in this managed instance - * group, i.e. all instances are in their target version. Instances' target version are specified - * byversion field on Instance Group Manager. + * Output only. [Output Only] A bit indicating whether version target has been reached in this + * managed instance group, i.e. all instances are in their target version. Instances' target + * version are specified byversion field on Instance Group Manager. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean isReached; /** - * [Output Only] A bit indicating whether version target has been reached in this managed instance - * group, i.e. all instances are in their target version. Instances' target version are specified - * byversion field on Instance Group Manager. + * Output only. [Output Only] A bit indicating whether version target has been reached in this + * managed instance group, i.e. all instances are in their target version. Instances' target + * version are specified byversion field on Instance Group Manager. * @return value or {@code null} for none */ public java.lang.Boolean getIsReached() { @@ -49,9 +49,9 @@ public java.lang.Boolean getIsReached() { } /** - * [Output Only] A bit indicating whether version target has been reached in this managed instance - * group, i.e. all instances are in their target version. Instances' target version are specified - * byversion field on Instance Group Manager. + * Output only. [Output Only] A bit indicating whether version target has been reached in this + * managed instance group, i.e. all instances are in their target version. Instances' target + * version are specified byversion field on Instance Group Manager. * @param isReached isReached or {@code null} for none */ public InstanceGroupManagerStatusVersionTarget setIsReached(java.lang.Boolean isReached) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java new file mode 100644 index 00000000000..df8d10c8af7 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstanceGroupManagerTargetSizePolicy. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceGroupManagerTargetSizePolicy extends com.google.api.client.json.GenericJson { + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * @param mode mode or {@code null} for none + */ + public InstanceGroupManagerTargetSizePolicy setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + @Override + public InstanceGroupManagerTargetSizePolicy set(String fieldName, Object value) { + return (InstanceGroupManagerTargetSizePolicy) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerTargetSizePolicy clone() { + return (InstanceGroupManagerTargetSizePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java index 350007eb424..f00dea2d9f0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [Output Only] The list of errors of the managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List items; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [Output Only] The list of errors of the managed instance group. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -55,7 +55,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [Output Only] The list of errors of the managed instance group. * @param items items or {@code null} for none */ public InstanceGroupManagersListErrorsResponse setItems(java.util.List items) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListErrorsResponse setItems(java.util.List managedInstances; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] The list of instances in the managed instance group. + * Output only. [Output Only] The list of instances in the managed instance group. * @return value or {@code null} for none */ public java.util.List getManagedInstances() { @@ -55,7 +55,7 @@ public java.util.List getManagedInstances() { } /** - * [Output Only] The list of instances in the managed instance group. + * Output only. [Output Only] The list of instances in the managed instance group. * @param managedInstances managedInstances or {@code null} for none */ public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(java.util.List managedInstances) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(jav } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -75,10 +75,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public InstanceGroupManagersListManagedInstancesResponse setNextPageToken(java.lang.String nextPageToken) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java index 6e5441c60d9..39f9310f8a1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java @@ -30,31 +30,31 @@ public final class InstanceGroupManagersListPerInstanceConfigsResp extends com.google.api.client.json.GenericJson { /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List items; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -62,7 +62,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List items) { @@ -71,10 +71,10 @@ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List

      getInstanceGroupManagers() { @@ -61,8 +61,8 @@ public java.util.List getInstanceGroupManagers() { } /** - * [Output Only] The list of managed instance groups that are contained in the specified project - * and zone. + * Output only. [Output Only] The list of managed instance groups that are contained in the + * specified project and zone. * @param instanceGroupManagers instanceGroupManagers or {@code null} for none */ public InstanceGroupManagersScopedList setInstanceGroupManagers(java.util.List instanceGroupManagers) { @@ -71,8 +71,8 @@ public InstanceGroupManagersScopedList setInstanceGroupManagers(java.util.List items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupsListInstances for the - * list of instances in the specified instance group. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupsListInstances for the list of instances in the specified instance + * group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -84,7 +85,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public InstanceGroupsListInstances setId(java.lang.String id) { @@ -110,8 +111,9 @@ public InstanceGroupsListInstances setItems(java.util.List getInstanceGroups() { @@ -59,7 +59,7 @@ public java.util.List getInstanceGroups() { } /** - * [Output Only] The list ofinstance groups that are contained in this scope. + * Output only. [Output Only] The list ofinstance groups that are contained in this scope. * @param instanceGroups instanceGroups or {@code null} for none */ public InstanceGroupsScopedList setInstanceGroups(java.util.List instanceGroups) { @@ -68,8 +68,8 @@ public InstanceGroupsScopedList setInstanceGroups(java.util.List } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list - * is empty. + * Output only. [Output Only] An informational warning that replaces the list of instance groups + * when the list is empty. * @return value or {@code null} for none */ public Warning getWarning() { @@ -77,8 +77,8 @@ public Warning getWarning() { } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list - * is empty. + * Output only. [Output Only] An informational warning that replaces the list of instance groups + * when the list is empty. * @param warning warning or {@code null} for none */ public InstanceGroupsScopedList setWarning(Warning warning) { @@ -97,8 +97,8 @@ public InstanceGroupsScopedList clone() { } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list is - * empty. + * Output only. [Output Only] An informational warning that replaces the list of instance groups + * when the list is empty. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceList.java index e04d46dd714..52708ff7c7d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceList.java @@ -50,7 +50,8 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public InstanceList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance + * resources. * @param kind kind or {@code null} for none */ public InstanceList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public InstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstanceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java index 77d1bf083d9..0a26dcf6469 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java @@ -44,8 +44,8 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of + * Instance referrers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +62,7 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,8 +110,8 @@ public InstanceListReferrers setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of + * Instance referrers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -119,8 +119,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of + * Instance referrers. * @param kind kind or {@code null} for none */ public InstanceListReferrers setKind(java.lang.String kind) { @@ -152,7 +152,7 @@ public InstanceListReferrers setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -160,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstanceListReferrers setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java index ffd6e4dfa37..7d14a73c218 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -30,29 +30,30 @@ public final class InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Contents of the error. + * Output only. [Output Only] Contents of the error. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceManagedByIgmErrorManagedInstanceError error; /** - * [Output Only] Details of the instance action that triggered this error. May be null, if the - * error was not caused by an action on an instance. This field is optional. + * Output only. [Output Only] Details of the instance action that triggered this error. May be + * null, if the error was not caused by an action on an instance. This field is optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails; /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String timestamp; /** - * [Output Only] Contents of the error. + * Output only. [Output Only] Contents of the error. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError getError() { @@ -60,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError getError() { } /** - * [Output Only] Contents of the error. + * Output only. [Output Only] Contents of the error. * @param error error or {@code null} for none */ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { @@ -69,8 +70,8 @@ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstan } /** - * [Output Only] Details of the instance action that triggered this error. May be null, if the - * error was not caused by an action on an instance. This field is optional. + * Output only. [Output Only] Details of the instance action that triggered this error. May be + * null, if the error was not caused by an action on an instance. This field is optional. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() { @@ -78,8 +79,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() } /** - * [Output Only] Details of the instance action that triggered this error. May be null, if the - * error was not caused by an action on an instance. This field is optional. + * Output only. [Output Only] Details of the instance action that triggered this error. May be + * null, if the error was not caused by an action on an instance. This field is optional. * @param instanceActionDetails instanceActionDetails or {@code null} for none */ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails) { @@ -88,7 +89,8 @@ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmEr } /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getTimestamp() { @@ -96,7 +98,8 @@ public java.lang.String getTimestamp() { } /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text + * format. * @param timestamp timestamp or {@code null} for none */ public InstanceManagedByIgmError setTimestamp(java.lang.String timestamp) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java index c0704e627c8..f92d0a732ed 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -30,33 +30,33 @@ public final class InstanceManagedByIgmErrorInstanceActionDetails extends com.google.api.client.json.GenericJson { /** - * [Output Only] Action that managed instance group was executing on the instance when the error - * occurred. Possible values: + * Output only. [Output Only] Action that managed instance group was executing on the instance + * when the error occurred. Possible values: * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String action; /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has + * not yet been created. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instance; /** - * [Output Only] Version this instance was created from, or was being created from, but the - * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager - * resource at the time this instance was being created. + * Output only. [Output Only] Version this instance was created from, or was being created from, + * but the creation failed. Corresponds to one of the versions that were set on the Instance Group + * Manager resource at the time this instance was being created. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceVersion version; /** - * [Output Only] Action that managed instance group was executing on the instance when the error - * occurred. Possible values: + * Output only. [Output Only] Action that managed instance group was executing on the instance + * when the error occurred. Possible values: * @return value or {@code null} for none */ public java.lang.String getAction() { @@ -64,8 +64,8 @@ public java.lang.String getAction() { } /** - * [Output Only] Action that managed instance group was executing on the instance when the error - * occurred. Possible values: + * Output only. [Output Only] Action that managed instance group was executing on the instance + * when the error occurred. Possible values: * @param action action or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String action) { @@ -74,8 +74,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String } /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has + * not yet been created. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -83,8 +83,8 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has + * not yet been created. * @param instance instance or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.String instance) { @@ -93,9 +93,9 @@ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.Stri } /** - * [Output Only] Version this instance was created from, or was being created from, but the - * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager - * resource at the time this instance was being created. + * Output only. [Output Only] Version this instance was created from, or was being created from, + * but the creation failed. Corresponds to one of the versions that were set on the Instance Group + * Manager resource at the time this instance was being created. * @return value or {@code null} for none */ public ManagedInstanceVersion getVersion() { @@ -103,9 +103,9 @@ public ManagedInstanceVersion getVersion() { } /** - * [Output Only] Version this instance was created from, or was being created from, but the - * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager - * resource at the time this instance was being created. + * Output only. [Output Only] Version this instance was created from, or was being created from, + * but the creation failed. Corresponds to one of the versions that were set on the Instance Group + * Manager resource at the time this instance was being created. * @param version version or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setVersion(ManagedInstanceVersion version) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java index 73b93956f78..3006dd39ef3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -30,21 +30,21 @@ public final class InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Error code. + * Output only. [Output Only] Error code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String code; /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String message; /** - * [Output Only] Error code. + * Output only. [Output Only] Error code. * @return value or {@code null} for none */ public java.lang.String getCode() { @@ -52,7 +52,7 @@ public java.lang.String getCode() { } /** - * [Output Only] Error code. + * Output only. [Output Only] Error code. * @param code code or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { @@ -61,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String co } /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * @return value or {@code null} for none */ public java.lang.String getMessage() { @@ -69,7 +69,7 @@ public java.lang.String getMessage() { } /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * @param message message or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceParams.java index 95781dfac53..63c2e3a2f6b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceParams.java @@ -37,9 +37,11 @@ public final class InstanceParams extends com.google.api.client.json.GenericJson private Duration requestValidForDuration; /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -63,9 +65,11 @@ public InstanceParams setRequestValidForDuration(Duration requestValidForDuratio } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -73,9 +77,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceProperties.java index 78375d5ce60..f470c4e17ce 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceProperties.java @@ -149,6 +149,14 @@ public final class InstanceProperties extends com.google.api.client.json.Generic @com.google.api.client.util.Key private NetworkPerformanceConfig networkPerformanceConfig; + /** + * Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to + * entries map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map partnerMetadata; + /** * The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as * default. Note that for MachineImage, this is not supported yet. @@ -166,9 +174,10 @@ public final class InstanceProperties extends com.google.api.client.json.Generic private ReservationAffinity reservationAffinity; /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -214,6 +223,12 @@ public final class InstanceProperties extends com.google.api.client.json.Generic @com.google.api.client.util.Key private Tags tags; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WorkloadIdentityConfig workloadIdentityConfig; + /** * Controls for advanced machine-related behavior features. Note that for MachineImage, this is * not supported yet. @@ -469,6 +484,25 @@ public InstanceProperties setNetworkPerformanceConfig(NetworkPerformanceConfig n return this; } + /** + * Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to + * entries map. + * @return value or {@code null} for none + */ + public java.util.Map getPartnerMetadata() { + return partnerMetadata; + } + + /** + * Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to + * entries map. + * @param partnerMetadata partnerMetadata or {@code null} for none + */ + public InstanceProperties setPartnerMetadata(java.util.Map partnerMetadata) { + this.partnerMetadata = partnerMetadata; + return this; + } + /** * The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as * default. Note that for MachineImage, this is not supported yet. @@ -508,9 +542,10 @@ public InstanceProperties setReservationAffinity(ReservationAffinity reservation } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -518,9 +553,10 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceProperties setResourceManagerTags(java.util.Map resourceManagerTags) { @@ -623,6 +659,21 @@ public InstanceProperties setTags(Tags tags) { return this; } + /** + * @return value or {@code null} for none + */ + public WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig; + } + + /** + * @param workloadIdentityConfig workloadIdentityConfig or {@code null} for none + */ + public InstanceProperties setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig) { + this.workloadIdentityConfig = workloadIdentityConfig; + return this; + } + @Override public InstanceProperties set(String fieldName, Object value) { return (InstanceProperties) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettings.java index 3fe5bc7a0bf..c8fde84cc91 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettings.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettings.java @@ -45,7 +45,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private java.lang.String fingerprint; /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance + * settings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,8 +60,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private InstanceSettingsMetadata metadata; /** - * [Output Only] URL of the zone where the resource resides You must specify this field as part of - * the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the resource resides You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,7 +137,8 @@ public InstanceSettings encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance + * settings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -144,7 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance + * settings. * @param kind kind or {@code null} for none */ public InstanceSettings setKind(java.lang.String kind) { @@ -170,8 +173,8 @@ public InstanceSettings setMetadata(InstanceSettingsMetadata metadata) { } /** - * [Output Only] URL of the zone where the resource resides You must specify this field as part of - * the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the resource resides You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -179,8 +182,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the zone where the resource resides You must specify this field as part of - * the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the resource resides You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * @param zone zone or {@code null} for none */ public InstanceSettings setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java index 41d708caacc..560dee51139 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java @@ -37,7 +37,7 @@ public final class InstanceSettingsMetadata extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public InstanceSettingsMetadata setItems(java.util.Map } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. * @param kind kind or {@code null} for none */ public InstanceSettingsMetadata setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java index dec45d10e8b..52a70c08037 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java @@ -44,7 +44,8 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,16 +59,16 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * Output only. [Output Only] A unique identifier for this instance template. The server defines + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for + * instance templates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,15 +93,15 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private InstanceProperties properties; /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * Output only. [Output Only] URL of the region where the instance template resides. Only + * applicable for regional resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] The URL for this instance template. The server defines this URL. + * Output only. [Output Only] The URL for this instance template. The server defines this URL. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -124,7 +125,8 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private SourceInstanceParams sourceInstanceParams; /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -132,7 +134,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text + * format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstanceTemplate setCreationTimestamp(java.lang.String creationTimestamp) { @@ -158,8 +161,8 @@ public InstanceTemplate setDescription(java.lang.String description) { } /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * Output only. [Output Only] A unique identifier for this instance template. The server defines + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -167,8 +170,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * Output only. [Output Only] A unique identifier for this instance template. The server defines + * this identifier. * @param id id or {@code null} for none */ public InstanceTemplate setId(java.math.BigInteger id) { @@ -177,8 +180,8 @@ public InstanceTemplate setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for + * instance templates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -186,8 +189,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for + * instance templates. * @param kind kind or {@code null} for none */ public InstanceTemplate setKind(java.lang.String kind) { @@ -238,8 +241,8 @@ public InstanceTemplate setProperties(InstanceProperties properties) { } /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * Output only. [Output Only] URL of the region where the instance template resides. Only + * applicable for regional resources. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -247,8 +250,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * Output only. [Output Only] URL of the region where the instance template resides. Only + * applicable for regional resources. * @param region region or {@code null} for none */ public InstanceTemplate setRegion(java.lang.String region) { @@ -257,7 +260,7 @@ public InstanceTemplate setRegion(java.lang.String region) { } /** - * [Output Only] The URL for this instance template. The server defines this URL. + * Output only. [Output Only] The URL for this instance template. The server defines this URL. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -265,7 +268,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this instance template. The server defines this URL. + * Output only. [Output Only] The URL for this instance template. The server defines this URL. * @param selfLink selfLink or {@code null} for none */ public InstanceTemplate setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java index a493fec52ef..df3fbf15617 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java @@ -44,7 +44,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public InstanceTemplateAggregatedList setItems(java.util.Map items) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for - * instance template lists. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceTemplatesListResponse for instance template lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for - * instance template lists. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceTemplatesListResponse for instance template lists. * @param kind kind or {@code null} for none */ public InstanceTemplateList setKind(java.lang.String kind) { @@ -158,7 +158,7 @@ public InstanceTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstanceTemplateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java index c697b45db10..0337c8ee34c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java @@ -30,28 +30,28 @@ public final class InstanceWithNamedPorts extends com.google.api.client.json.GenericJson { /** - * [Output Only] The URL of the instance. + * Output only. [Output Only] The URL of the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instance; /** - * [Output Only] The named ports that belong to this instance group. + * Output only. [Output Only] The named ports that belong to this instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List namedPorts; /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] The URL of the instance. + * Output only. [Output Only] The URL of the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -59,7 +59,7 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. + * Output only. [Output Only] The URL of the instance. * @param instance instance or {@code null} for none */ public InstanceWithNamedPorts setInstance(java.lang.String instance) { @@ -68,7 +68,7 @@ public InstanceWithNamedPorts setInstance(java.lang.String instance) { } /** - * [Output Only] The named ports that belong to this instance group. + * Output only. [Output Only] The named ports that belong to this instance group. * @return value or {@code null} for none */ public java.util.List getNamedPorts() { @@ -76,7 +76,7 @@ public java.util.List getNamedPorts() { } /** - * [Output Only] The named ports that belong to this instance group. + * Output only. [Output Only] The named ports that belong to this instance group. * @param namedPorts namedPorts or {@code null} for none */ public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts) { @@ -85,7 +85,7 @@ public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts } /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -93,7 +93,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * @param status status or {@code null} for none */ public InstanceWithNamedPorts setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index d82f3df25a9..4ef7f976b66 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] The packet mirroring rules that apply to the instance. + * Output only. [Output Only] The packet mirroring rules that apply to the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,14 +81,14 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String shortName; /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. * The value may be {@code null}. */ @@ -95,8 +96,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy private java.lang.String type; /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -104,8 +105,8 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. * @param displayName displayName or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { @@ -114,7 +115,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayN } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -122,7 +123,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -131,7 +132,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(jav } /** - * [Output Only] The packet mirroring rules that apply to the instance. + * Output only. [Output Only] The packet mirroring rules that apply to the instance. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -139,7 +140,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output Only] The packet mirroring rules that apply to the instance. + * Output only. [Output Only] The packet mirroring rules that apply to the instance. * @param packetMirroringRules packetMirroringRules or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { @@ -148,7 +149,8 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMi } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -156,7 +158,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * @param priority priority or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { @@ -186,7 +189,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(ja } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -194,7 +197,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @param shortName shortName or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { @@ -203,7 +206,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortNam } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. * @return value or {@code null} for none */ @@ -212,7 +215,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. * @param type type or {@code null} for none */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java index b126103d93c..fb571230d4e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java @@ -32,14 +32,15 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or + * X86_64. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String architecture; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,22 +54,23 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long diskSizeGb; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for + * InstantSnapshot resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,15 +109,24 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] URL of the region where the instant snapshot resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstantSnapshotParams params; + + /** + * Output only. [Output Only] URL of the region where the instant snapshot resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,21 +140,21 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,32 +175,33 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String sourceDisk; /** - * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be - * used to determine whether the InstantSnapshot was taken from the current or a previous instance - * of a given disk name. + * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This + * value may be used to determine whether the InstantSnapshot was taken from the current or a + * previous instance of a given disk name. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceDiskId; /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, + * FAILED, orREADY. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or + * X86_64. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -197,7 +209,8 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or + * X86_64. * @param architecture architecture or {@code null} for none */ public InstantSnapshot setArchitecture(java.lang.String architecture) { @@ -206,7 +219,7 @@ public InstantSnapshot setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -214,7 +227,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstantSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -240,7 +253,7 @@ public InstantSnapshot setDescription(java.lang.String description) { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -248,7 +261,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @param diskSizeGb diskSizeGb or {@code null} for none */ public InstantSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { @@ -257,7 +270,8 @@ public InstantSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -265,7 +279,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public InstantSnapshot setId(java.math.BigInteger id) { @@ -274,8 +289,8 @@ public InstantSnapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for + * InstantSnapshot resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -283,8 +298,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for + * InstantSnapshot resources. * @param kind kind or {@code null} for none */ public InstantSnapshot setKind(java.lang.String kind) { @@ -406,8 +421,28 @@ public InstantSnapshot setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the instant snapshot resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public InstantSnapshotParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public InstantSnapshot setParams(InstantSnapshotParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the instant snapshot resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -415,8 +450,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the instant snapshot resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the instant snapshot resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. * @param region region or {@code null} for none */ public InstantSnapshot setRegion(java.lang.String region) { @@ -425,7 +461,7 @@ public InstantSnapshot setRegion(java.lang.String region) { } /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * @return value or {@code null} for none */ public InstantSnapshotResourceStatus getResourceStatus() { @@ -433,7 +469,7 @@ public InstantSnapshotResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * @param resourceStatus resourceStatus or {@code null} for none */ public InstantSnapshot setResourceStatus(InstantSnapshotResourceStatus resourceStatus) { @@ -459,7 +495,7 @@ public InstantSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -467,7 +503,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -476,7 +512,7 @@ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -484,7 +520,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public InstantSnapshot setSelfLink(java.lang.String selfLink) { @@ -493,7 +529,7 @@ public InstantSnapshot setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -501,7 +537,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public InstantSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -541,9 +577,9 @@ public InstantSnapshot setSourceDisk(java.lang.String sourceDisk) { } /** - * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be - * used to determine whether the InstantSnapshot was taken from the current or a previous instance - * of a given disk name. + * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This + * value may be used to determine whether the InstantSnapshot was taken from the current or a + * previous instance of a given disk name. * @return value or {@code null} for none */ public java.lang.String getSourceDiskId() { @@ -551,9 +587,9 @@ public java.lang.String getSourceDiskId() { } /** - * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be - * used to determine whether the InstantSnapshot was taken from the current or a previous instance - * of a given disk name. + * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This + * value may be used to determine whether the InstantSnapshot was taken from the current or a + * previous instance of a given disk name. * @param sourceDiskId sourceDiskId or {@code null} for none */ public InstantSnapshot setSourceDiskId(java.lang.String sourceDiskId) { @@ -562,8 +598,8 @@ public InstantSnapshot setSourceDiskId(java.lang.String sourceDiskId) { } /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, + * FAILED, orREADY. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -571,8 +607,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, + * FAILED, orREADY. * @param status status or {@code null} for none */ public InstantSnapshot setStatus(java.lang.String status) { @@ -581,8 +617,8 @@ public InstantSnapshot setStatus(java.lang.String status) { } /** - * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -590,8 +626,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * @param zone zone or {@code null} for none */ public InstantSnapshot setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java index 142111e4ee5..a2dec556c4a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java @@ -44,8 +44,8 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for aggregated - * lists of instantSnapshots. + * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for + * aggregated lists of instantSnapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstantSnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstantSnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java index da8ce7d29fa..455da93a46a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java @@ -50,7 +50,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public InstantSnapshotList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public InstantSnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public InstantSnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstantSnapshotList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java new file mode 100644 index 00000000000..50d9f5655fe --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java @@ -0,0 +1,78 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Additional instant snapshot params. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstantSnapshotParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public InstantSnapshotParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public InstantSnapshotParams set(String fieldName, Object value) { + return (InstantSnapshotParams) super.set(fieldName, value); + } + + @Override + public InstantSnapshotParams clone() { + return (InstantSnapshotParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java index d7674b9f529..62e37b49163 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -70,14 +70,15 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.util.List availableFeatures; /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits + * in this LAG. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List circuitInfos; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,46 +100,47 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] A list of outages expected for this Interconnect. + * Output only. [Output Only] A list of outages expected for this Interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List expectedOutages; /** - * [Output Only] IP address configured on the Google side of the Interconnect link. This can be - * used only for ping tests. + * Output only. [Output Only] IP address configured on the Google side of the Interconnect link. + * This can be used only for ping tests. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String googleIpAddress; /** - * [Output Only] Google reference ID to be used when raising support tickets with Google or - * otherwise to debug backend connectivity issues. + * Output only. [Output Only] Google reference ID to be used when raising support tickets with + * Google or otherwise to debug backend connectivity issues. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String googleReferenceId; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this - * Interconnect. + * Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use + * this Interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List interconnectAttachments; /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is + * arbitrary and items are unique. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,7 +158,7 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String interconnectType; /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,9 +245,9 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String nocContactEmail; /** - * [Output Only] The current status of this Interconnect's functionality, which can take one of - * the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready - * to use. Attachments may be provisioned on this Interconnect. + * Output only. [Output Only] The current status of this Interconnect's functionality, which can + * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up + * and is ready to use. Attachments may be provisioned on this Interconnect. * * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing @@ -264,16 +266,16 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private InterconnectParams params; /** - * [Output Only] IP address configured on the customer side of the Interconnect link. The customer - * should configure this IP address during turnup when prompted by Google NOC. This can be used - * only for ping tests. + * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. + * The customer should configure this IP address during turnup when prompted by Google NOC. This + * can be used only for ping tests. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String peerIpAddress; /** - * [Output Only] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -308,42 +310,41 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.Integer requestedLinkCount; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] The current state of Interconnect functionality, which can take one of the - * following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. - * Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has - * not completed turnup. No attachments may be provisioned on this Interconnect. - - * UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may - * be provisioned or updated on this Interconnect. + * Output only. [Output Only] The current state of Interconnect functionality, which can take one + * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to + * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The + * Interconnect has not completed turnup. No attachments may be provisioned on this + * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + * No attachments may be provisioned or updated on this Interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String subzone; /** - * [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to use this - * Interconnect. The Interconnect cannot be deleted if this list is non-empty. + * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to + * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -436,7 +437,8 @@ public Interconnect setAvailableFeatures(java.util.List availa } /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits + * in this LAG. * @return value or {@code null} for none */ public java.util.List getCircuitInfos() { @@ -444,7 +446,8 @@ public java.util.List getCircuitInfos() { } /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits + * in this LAG. * @param circuitInfos circuitInfos or {@code null} for none */ public Interconnect setCircuitInfos(java.util.List circuitInfos) { @@ -453,7 +456,7 @@ public Interconnect setCircuitInfos(java.util.List circ } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -461,7 +464,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Interconnect setCreationTimestamp(java.lang.String creationTimestamp) { @@ -506,7 +509,7 @@ public Interconnect setDescription(java.lang.String description) { } /** - * [Output Only] A list of outages expected for this Interconnect. + * Output only. [Output Only] A list of outages expected for this Interconnect. * @return value or {@code null} for none */ public java.util.List getExpectedOutages() { @@ -514,7 +517,7 @@ public java.util.List getExpectedOutages() { } /** - * [Output Only] A list of outages expected for this Interconnect. + * Output only. [Output Only] A list of outages expected for this Interconnect. * @param expectedOutages expectedOutages or {@code null} for none */ public Interconnect setExpectedOutages(java.util.List expectedOutages) { @@ -523,8 +526,8 @@ public Interconnect setExpectedOutages(java.util.List getInterconnectAttachments() { @@ -587,8 +592,8 @@ public java.util.List getInterconnectAttachments() { } /** - * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this - * Interconnect. + * Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use + * this Interconnect. * @param interconnectAttachments interconnectAttachments or {@code null} for none */ public Interconnect setInterconnectAttachments(java.util.List interconnectAttachments) { @@ -597,8 +602,8 @@ public Interconnect setInterconnectAttachments(java.util.List } /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is + * arbitrary and items are unique. * @return value or {@code null} for none */ public java.util.List getInterconnectGroups() { @@ -606,8 +611,8 @@ public java.util.List getInterconnectGroups() { } /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is + * arbitrary and items are unique. * @param interconnectGroups interconnectGroups or {@code null} for none */ public Interconnect setInterconnectGroups(java.util.List interconnectGroups) { @@ -641,7 +646,7 @@ public Interconnect setInterconnectType(java.lang.String interconnectType) { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -649,7 +654,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * @param kind kind or {@code null} for none */ public Interconnect setKind(java.lang.String kind) { @@ -882,9 +887,9 @@ public Interconnect setNocContactEmail(java.lang.String nocContactEmail) { } /** - * [Output Only] The current status of this Interconnect's functionality, which can take one of - * the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready - * to use. Attachments may be provisioned on this Interconnect. + * Output only. [Output Only] The current status of this Interconnect's functionality, which can + * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up + * and is ready to use. Attachments may be provisioned on this Interconnect. * * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing @@ -896,9 +901,9 @@ public java.lang.String getOperationalStatus() { } /** - * [Output Only] The current status of this Interconnect's functionality, which can take one of - * the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready - * to use. Attachments may be provisioned on this Interconnect. + * Output only. [Output Only] The current status of this Interconnect's functionality, which can + * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up + * and is ready to use. Attachments may be provisioned on this Interconnect. * * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing @@ -930,9 +935,9 @@ public Interconnect setParams(InterconnectParams params) { } /** - * [Output Only] IP address configured on the customer side of the Interconnect link. The customer - * should configure this IP address during turnup when prompted by Google NOC. This can be used - * only for ping tests. + * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. + * The customer should configure this IP address during turnup when prompted by Google NOC. This + * can be used only for ping tests. * @return value or {@code null} for none */ public java.lang.String getPeerIpAddress() { @@ -940,9 +945,9 @@ public java.lang.String getPeerIpAddress() { } /** - * [Output Only] IP address configured on the customer side of the Interconnect link. The customer - * should configure this IP address during turnup when prompted by Google NOC. This can be used - * only for ping tests. + * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. + * The customer should configure this IP address during turnup when prompted by Google NOC. This + * can be used only for ping tests. * @param peerIpAddress peerIpAddress or {@code null} for none */ public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { @@ -951,7 +956,7 @@ public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { } /** - * [Output Only] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * @return value or {@code null} for none */ public java.lang.Integer getProvisionedLinkCount() { @@ -959,7 +964,7 @@ public java.lang.Integer getProvisionedLinkCount() { } /** - * [Output Only] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * @param provisionedLinkCount provisionedLinkCount or {@code null} for none */ public Interconnect setProvisionedLinkCount(java.lang.Integer provisionedLinkCount) { @@ -1033,7 +1038,7 @@ public Interconnect setRequestedLinkCount(java.lang.Integer requestedLinkCount) } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1041,7 +1046,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1050,7 +1055,7 @@ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1058,7 +1063,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Interconnect setSelfLink(java.lang.String selfLink) { @@ -1067,12 +1072,12 @@ public Interconnect setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The current state of Interconnect functionality, which can take one of the - * following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. - * Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has - * not completed turnup. No attachments may be provisioned on this Interconnect. - - * UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may - * be provisioned or updated on this Interconnect. + * Output only. [Output Only] The current state of Interconnect functionality, which can take one + * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to + * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The + * Interconnect has not completed turnup. No attachments may be provisioned on this + * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + * No attachments may be provisioned or updated on this Interconnect. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -1080,12 +1085,12 @@ public java.lang.String getState() { } /** - * [Output Only] The current state of Interconnect functionality, which can take one of the - * following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. - * Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has - * not completed turnup. No attachments may be provisioned on this Interconnect. - - * UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may - * be provisioned or updated on this Interconnect. + * Output only. [Output Only] The current state of Interconnect functionality, which can take one + * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to + * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The + * Interconnect has not completed turnup. No attachments may be provisioned on this + * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + * No attachments may be provisioned or updated on this Interconnect. * @param state state or {@code null} for none */ public Interconnect setState(java.lang.String state) { @@ -1094,8 +1099,7 @@ public Interconnect setState(java.lang.String state) { } /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * @return value or {@code null} for none */ public java.lang.String getSubzone() { @@ -1103,8 +1107,7 @@ public java.lang.String getSubzone() { } /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * @param subzone subzone or {@code null} for none */ public Interconnect setSubzone(java.lang.String subzone) { @@ -1113,8 +1116,8 @@ public Interconnect setSubzone(java.lang.String subzone) { } /** - * [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to use this - * Interconnect. The Interconnect cannot be deleted if this list is non-empty. + * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to + * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. * @return value or {@code null} for none */ public java.util.List getWireGroups() { @@ -1122,8 +1125,8 @@ public java.util.List getWireGroups() { } /** - * [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to use this - * Interconnect. The Interconnect cannot be deleted if this list is non-empty. + * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to + * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. * @param wireGroups wireGroups or {@code null} for none */ public Interconnect setWireGroups(java.util.List wireGroups) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index 38d6d6a026e..049a541c269 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -41,7 +41,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.Boolean adminEnabled; /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,12 +55,50 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 - * Gbit/s - BPS_100G: 100 Gbit/s + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String bandwidth; + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address + * must be the same. - Max prefix length is 31. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCloudRouterIpAddress; + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCloudRouterIpv6Address; + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCustomerRouterIpAddress; + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCustomerRouterIpv6Address; + /** * This field is not available. * The value may be {@code null}. @@ -81,16 +119,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List candidateSubnets; /** - * [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this - * interconnect attachment. + * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router + * Interface for this interconnect attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cloudRouterIpAddress; /** - * [Output Only] IPv6 address + prefix length to be configured on Cloud Router Interface for this - * interconnect attachment. + * Output only. [Output Only] IPv6 address + prefix length to be configured on Cloud Router + * Interface for this interconnect attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,31 +142,31 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String cloudRouterIpv6InterfaceId; /** - * [Output Only] Constraints for this attachment, if any. The attachment does not work if these - * constraints are not met. + * Output only. [Output Only] Constraints for this attachment, if any. The attachment does not + * work if these constraints are not met. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectAttachmentConfigurationConstraints configurationConstraints; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface - * for this interconnect attachment. + * Output only. [Output Only] IPv4 address + prefix length to be configured on the customer router + * subinterface for this interconnect attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String customerRouterIpAddress; /** - * [Output Only] IPv6 address + prefix length to be configured on the customer router subinterface - * for this interconnect attachment. + * Output only. [Output Only] IPv6 address + prefix length to be configured on the customer router + * subinterface for this interconnect attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,9 +180,9 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String customerRouterIpv6InterfaceId; /** - * [Output Only] Dataplane version for this InterconnectAttachment. This field is only present for - * Dataplane version 2 and higher. Absence of this field in the API output indicates that the - * Dataplane is version 1. + * Output only. [Output Only] Dataplane version for this InterconnectAttachment. This field is + * only present for Dataplane version 2 and higher. Absence of this field in the API output + * indicates that the Dataplane is version 1. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -186,15 +224,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String encryption; /** - * [Output Only] Google reference ID, to be used when raising support tickets with Google or - * otherwise to debug backend connectivity issues. [Deprecated] This field is not used. + * Output only. [Output Only] Google reference ID, to be used when raising support tickets with + * Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String googleReferenceId; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -224,8 +263,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List ipsecInternalAddresses; /** - * [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for interconnect - * attachments. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for + * interconnect attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -284,10 +323,10 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String name; /** - * [Output Only] The current status of whether or not this interconnect attachment is functional, - * which can take one of the following values: - OS_ACTIVE: The attachment has been turned - * up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, - * because turnup is not complete. + * Output only. [Output Only] The current status of whether or not this interconnect attachment is + * functional, which can take one of the following values: - OS_ACTIVE: The attachment has + * been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to + * use yet, because turnup is not complete. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -328,25 +367,25 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private InterconnectAttachmentPartnerMetadata partnerMetadata; /** - * [Output Only] Information specific to an InterconnectAttachment. This property is populated if - * the interconnect that this is attached to is of type DEDICATED. + * Output only. [Output Only] Information specific to an InterconnectAttachment. This property is + * populated if the interconnect that this is attached to is of type DEDICATED. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectAttachmentPrivateInfo privateInterconnectInfo; /** - * [Output Only] URL of the region where the regional interconnect attachment resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. + * Output only. [Output Only] URL of the region where the regional interconnect attachment + * resides. You must specify this field as part of the HTTP request URL. It is not settable as a + * field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this field - * contains the interconnect's remote location service provider. Example values: "Amazon Web + * Output only. [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this + * field contains the interconnect's remote location service provider. Example values: "Amazon Web * Services" "Microsoft Azure". * * The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is @@ -366,14 +405,14 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String router; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -391,19 +430,19 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String stackType; /** - * [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and - * UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect - * attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER - * are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take - * one of the following values: - ACTIVE: The attachment has been turned up and is ready to - * use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not - * complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been - * configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the - * process of provisioning after a PARTNER_PROVIDER attachment was created that references - * it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a - * customer to activate it. - DEFUNCT: The attachment was deleted externally and is no - * longer functional. This could be because the associated Interconnect was removed, or because - * the other side of a Partner attachment was deleted. + * Output only. [Output Only] The current state of this attachment's functionality. Enum values + * ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER + * interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and + * PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This + * state can take one of the following values: - ACTIVE: The attachment has been turned up + * and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup + * is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet + * been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in + * the process of provisioning after a PARTNER_PROVIDER attachment was created that + * references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is + * waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally + * and is no longer functional. This could be because the associated Interconnect was removed, + * or because the other side of a Partner attachment was deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -462,7 +501,7 @@ public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * @return value or {@code null} for none */ public java.lang.String getAttachmentGroup() { @@ -470,7 +509,7 @@ public java.lang.String getAttachmentGroup() { } /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * @param attachmentGroup attachmentGroup or {@code null} for none */ public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGroup) { @@ -486,7 +525,7 @@ public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGrou * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 - * Gbit/s - BPS_100G: 100 Gbit/s + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * @return value or {@code null} for none */ public java.lang.String getBandwidth() { @@ -501,7 +540,7 @@ public java.lang.String getBandwidth() { * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 - * Gbit/s - BPS_100G: 100 Gbit/s + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * @param bandwidth bandwidth or {@code null} for none */ public InterconnectAttachment setBandwidth(java.lang.String bandwidth) { @@ -509,6 +548,94 @@ public InterconnectAttachment setBandwidth(java.lang.String bandwidth) { return this; } + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address + * must be the same. - Max prefix length is 31. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCloudRouterIpAddress() { + return candidateCloudRouterIpAddress; + } + + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address + * must be the same. - Max prefix length is 31. + * @param candidateCloudRouterIpAddress candidateCloudRouterIpAddress or {@code null} for none + */ + public InterconnectAttachment setCandidateCloudRouterIpAddress(java.lang.String candidateCloudRouterIpAddress) { + this.candidateCloudRouterIpAddress = candidateCloudRouterIpAddress; + return this; + } + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCloudRouterIpv6Address() { + return candidateCloudRouterIpv6Address; + } + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. + * @param candidateCloudRouterIpv6Address candidateCloudRouterIpv6Address or {@code null} for none + */ + public InterconnectAttachment setCandidateCloudRouterIpv6Address(java.lang.String candidateCloudRouterIpv6Address) { + this.candidateCloudRouterIpv6Address = candidateCloudRouterIpv6Address; + return this; + } + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCustomerRouterIpAddress() { + return candidateCustomerRouterIpAddress; + } + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @param candidateCustomerRouterIpAddress candidateCustomerRouterIpAddress or {@code null} for none + */ + public InterconnectAttachment setCandidateCustomerRouterIpAddress(java.lang.String candidateCustomerRouterIpAddress) { + this.candidateCustomerRouterIpAddress = candidateCustomerRouterIpAddress; + return this; + } + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCustomerRouterIpv6Address() { + return candidateCustomerRouterIpv6Address; + } + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @param candidateCustomerRouterIpv6Address candidateCustomerRouterIpv6Address or {@code null} for none + */ + public InterconnectAttachment setCandidateCustomerRouterIpv6Address(java.lang.String candidateCustomerRouterIpv6Address) { + this.candidateCustomerRouterIpv6Address = candidateCustomerRouterIpv6Address; + return this; + } + /** * This field is not available. * @return value or {@code null} for none @@ -554,8 +681,8 @@ public InterconnectAttachment setCandidateSubnets(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList for - * aggregated lists of interconnect attachments. + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList + * for aggregated lists of interconnect attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class InterconnectAttachmentAggregatedList extends com.google.api.c private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InterconnectAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java index e646f684b49..1988be83c63 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java @@ -30,8 +30,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.google.api.client.json.GenericJson { /** - * [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP MD5 - * authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, + * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP + * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, * MD5_UNSUPPORTED. * * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP @@ -45,9 +45,10 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go private java.lang.String bgpMd5; /** - * [Output Only] List of ASN ranges that the remote location is known to support. Formatted as an - * array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: 123, max: 123}, - * {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the range 64512-65534. + * Output only. [Output Only] List of ASN ranges that the remote location is known to support. + * Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: + * 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the + * range 64512-65534. * * This field is only advisory. Although the API accepts other ranges, these are the ranges that * we recommend. @@ -57,8 +58,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go private java.util.List bgpPeerAsnRanges; /** - * [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP MD5 - * authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, + * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP + * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, * MD5_UNSUPPORTED. * * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP @@ -73,8 +74,8 @@ public java.lang.String getBgpMd5() { } /** - * [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP MD5 - * authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, + * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP + * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, * MD5_UNSUPPORTED. * * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP @@ -90,9 +91,10 @@ public InterconnectAttachmentConfigurationConstraints setBgpMd5(java.lang.String } /** - * [Output Only] List of ASN ranges that the remote location is known to support. Formatted as an - * array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: 123, max: 123}, - * {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the range 64512-65534. + * Output only. [Output Only] List of ASN ranges that the remote location is known to support. + * Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: + * 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the + * range 64512-65534. * * This field is only advisory. Although the API accepts other ranges, these are the ranges that * we recommend. @@ -103,9 +105,10 @@ public java.util.List metros; /** - * [Output Only] Regions used to explain this blocker in more detail. These are region names - * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) - * but does not apply to others. + * Output only. [Output Only] Regions used to explain this blocker in more detail. These are + * region names formatted like "us-central1". This will be set for some blockers (like + * INCOMPATIBLE_REGIONS) but does not apply to others. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List regions; /** - * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or - * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" + * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to + * others. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List zones; /** - * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more + * detail. * @return value or {@code null} for none */ public java.util.List getAttachments() { @@ -94,7 +97,8 @@ public java.util.List getAttachments() { } /** - * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more + * detail. * @param attachments attachments or {@code null} for none */ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setAttachments(java.util.List attachments) { @@ -118,8 +122,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. * @return value or {@code null} for none */ public java.lang.String getDocumentationLink() { @@ -127,8 +131,8 @@ public java.lang.String getDocumentationLink() { } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. * @param documentationLink documentationLink or {@code null} for none */ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setDocumentationLink(java.lang.String documentationLink) { @@ -137,8 +141,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. * @return value or {@code null} for none */ public java.lang.String getExplanation() { @@ -146,8 +150,8 @@ public java.lang.String getExplanation() { } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. * @param explanation explanation or {@code null} for none */ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setExplanation(java.lang.String explanation) { @@ -156,8 +160,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] Metros used to explain this blocker in more detail. These are three-letter - * lowercase strings like "iad". This will be set for some blockers (like + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". This will be set for some blockers (like * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. * @return value or {@code null} for none */ @@ -166,8 +170,8 @@ public java.util.List getMetros() { } /** - * [Output Only] Metros used to explain this blocker in more detail. These are three-letter - * lowercase strings like "iad". This will be set for some blockers (like + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". This will be set for some blockers (like * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. * @param metros metros or {@code null} for none */ @@ -177,9 +181,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] Regions used to explain this blocker in more detail. These are region names - * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) - * but does not apply to others. + * Output only. [Output Only] Regions used to explain this blocker in more detail. These are + * region names formatted like "us-central1". This will be set for some blockers (like + * INCOMPATIBLE_REGIONS) but does not apply to others. * @return value or {@code null} for none */ public java.util.List getRegions() { @@ -187,9 +191,9 @@ public java.util.List getRegions() { } /** - * [Output Only] Regions used to explain this blocker in more detail. These are region names - * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) - * but does not apply to others. + * Output only. [Output Only] Regions used to explain this blocker in more detail. These are + * region names formatted like "us-central1". This will be set for some blockers (like + * INCOMPATIBLE_REGIONS) but does not apply to others. * @param regions regions or {@code null} for none */ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setRegions(java.util.List regions) { @@ -198,8 +202,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or - * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" + * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to + * others. * @return value or {@code null} for none */ public java.util.List getZones() { @@ -207,8 +212,9 @@ public java.util.List getZones() { } /** - * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or - * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" + * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to + * others. * @param zones zones or {@code null} for none */ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setZones(java.util.List zones) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java index f267df5464a..ac31099ab68 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -36,7 +36,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegion extends com private java.util.List metros; /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,7 @@ public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.Lis } /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -66,7 +66,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * @param region region or {@code null} for none */ public InterconnectAttachmentGroupLogicalStructureRegion setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java index bba3ca5148d..45ba8bbc924 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -36,8 +36,8 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetro extend private java.util.List facilities; /** - * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the - * first component of the location of an Interconnect. + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of an Interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,8 +59,8 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java } /** - * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the - * first component of the location of an Interconnect. + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of an Interconnect. * @return value or {@code null} for none */ public java.lang.String getMetro() { @@ -68,8 +68,8 @@ public java.lang.String getMetro() { } /** - * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the - * first component of the location of an Interconnect. + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of an Interconnect. * @param metro metro or {@code null} for none */ public InterconnectAttachmentGroupLogicalStructureRegionMetro setMetro(java.lang.String metro) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java index 41cf84fc4f2..c0d019c94e5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -30,7 +30,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilit private java.util.List zones; /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * @return value or {@code null} for none */ public java.lang.String getFacility() { @@ -51,7 +51,7 @@ public java.lang.String getFacility() { } /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * @param facility facility or {@code null} for none */ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setFacility(java.lang.String facility) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java index aa732b0c6b9..51dea9c5bf9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -31,23 +31,23 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone extends com.google.api.client.json.GenericJson { /** - * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in - * the given facility and metro. Every Attachment in the AG has such an entry. + * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on + * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List attachments; /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** - * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in - * the given facility and metro. Every Attachment in the AG has such an entry. + * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on + * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. * @return value or {@code null} for none */ public java.util.List getAttachments() { @@ -55,8 +55,8 @@ public java.util.List getAttachments() { } /** - * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in - * the given facility and metro. Every Attachment in the AG has such an entry. + * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on + * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. * @param attachments attachments or {@code null} for none */ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAttachments(java.util.List attachments) { @@ -65,7 +65,7 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAtt } /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -73,7 +73,7 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". * @param zone zone or {@code null} for none */ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java index 79f57e9c00f..887526bd499 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -79,7 +79,8 @@ public final class InterconnectAttachmentGroupsListResponse extends com.google.a private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,8 @@ public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String sel } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java index f1ab8505df3..5789be05d78 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -42,7 +42,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupConfigured configured; /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupIntent intent; /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +92,7 @@ public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectA } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -100,7 +100,7 @@ public java.lang.String getGroupStatus() { } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -124,7 +124,7 @@ public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttac } /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * @return value or {@code null} for none */ public InterconnectAttachmentGroupConfigured getOperational() { @@ -132,7 +132,7 @@ public InterconnectAttachmentGroupConfigured getOperational() { } /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * @param operational operational or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setOperational(InterconnectAttachmentGroupConfigured operational) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java index 6bf525bd03e..3122c881cc7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -30,39 +30,39 @@ public final class InterconnectAttachmentGroupsOperationalStatusAttachmentStatus extends com.google.api.client.json.GenericJson { /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * Output only. Whether this Attachment is enabled. This becomes false when the customer drains + * their Attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean adminEnabled; /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String attachment; /** - * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if - * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the - * analysis that generates operational.availabilitySLA. + * Output only. Whether this Attachment is participating in the redundant configuration. This will + * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are + * excluded from the analysis that generates operational.availabilitySLA. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String isActive; /** - * Whether this Attachment is active, and if so, whether BGP is up. + * Output only. Whether this Attachment is active, and if so, whether BGP is up. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * Output only. Whether this Attachment is enabled. This becomes false when the customer drains + * their Attachment. * @return value or {@code null} for none */ public java.lang.Boolean getAdminEnabled() { @@ -70,8 +70,8 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * Output only. Whether this Attachment is enabled. This becomes false when the customer drains + * their Attachment. * @param adminEnabled adminEnabled or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEnabled(java.lang.Boolean adminEnabled) { @@ -80,7 +80,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEna } /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * @return value or {@code null} for none */ public java.lang.String getAttachment() { @@ -88,7 +88,7 @@ public java.lang.String getAttachment() { } /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * @param attachment attachment or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { @@ -97,9 +97,9 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachme } /** - * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if - * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the - * analysis that generates operational.availabilitySLA. + * Output only. Whether this Attachment is participating in the redundant configuration. This will + * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are + * excluded from the analysis that generates operational.availabilitySLA. * @return value or {@code null} for none */ public java.lang.String getIsActive() { @@ -107,9 +107,9 @@ public java.lang.String getIsActive() { } /** - * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if - * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the - * analysis that generates operational.availabilitySLA. + * Output only. Whether this Attachment is participating in the redundant configuration. This will + * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are + * excluded from the analysis that generates operational.availabilitySLA. * @param isActive isActive or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive(java.lang.String isActive) { @@ -118,7 +118,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive } /** - * Whether this Attachment is active, and if so, whether BGP is up. + * Output only. Whether this Attachment is active, and if so, whether BGP is up. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -126,7 +126,7 @@ public java.lang.String getStatus() { } /** - * Whether this Attachment is active, and if so, whether BGP is up. + * Output only. Whether this Attachment is active, and if so, whether BGP is up. * @param status status or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java index 136a013f418..d2a89e3a68e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java @@ -50,8 +50,8 @@ public final class InterconnectAttachmentList extends com.google.api.client.json } /** - * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists of - * interconnect attachments. + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists + * of interconnect attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class InterconnectAttachmentList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public InterconnectAttachmentList setItems(java.util.List interconnects; /** - * [Output Only] Type of the resource. Always compute#InterconnectGroup + * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public final class InterconnectGroup extends com.google.api.client.json.GenericJ private InterconnectGroupPhysicalStructure physicalStructure; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +139,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -188,8 +188,8 @@ public InterconnectGroup setEtag(java.lang.String etag) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -197,8 +197,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public InterconnectGroup setId(java.math.BigInteger id) { @@ -245,7 +245,7 @@ public InterconnectGroup setInterconnects(java.util.Map facilities; /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * Output only. [Output Only] Interconnects used to explain this blocker in more detail. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List interconnects; /** - * [Output Only] Metros used to explain this blocker in more detail. These are three-letter - * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic - * metros in this field. + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the + * problematic metros in this field. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List metros; /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are + * "zone1" and/or "zone2". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -100,8 +100,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. * @return value or {@code null} for none */ public java.lang.String getDocumentationLink() { @@ -109,8 +109,8 @@ public java.lang.String getDocumentationLink() { } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. * @param documentationLink documentationLink or {@code null} for none */ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setDocumentationLink(java.lang.String documentationLink) { @@ -119,8 +119,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. * @return value or {@code null} for none */ public java.lang.String getExplanation() { @@ -128,8 +128,8 @@ public java.lang.String getExplanation() { } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. * @param explanation explanation or {@code null} for none */ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setExplanation(java.lang.String explanation) { @@ -138,7 +138,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Facilities used to explain this blocker in more detail. Like + * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". * @return value or {@code null} for none */ @@ -147,7 +147,7 @@ public java.util.List getFacilities() { } /** - * [Output Only] Facilities used to explain this blocker in more detail. Like + * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". * @param facilities facilities or {@code null} for none */ @@ -157,7 +157,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * Output only. [Output Only] Interconnects used to explain this blocker in more detail. * @return value or {@code null} for none */ public java.util.List getInterconnects() { @@ -165,7 +165,7 @@ public java.util.List getInterconnects() { } /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * Output only. [Output Only] Interconnects used to explain this blocker in more detail. * @param interconnects interconnects or {@code null} for none */ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setInterconnects(java.util.List interconnects) { @@ -174,9 +174,9 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Metros used to explain this blocker in more detail. These are three-letter - * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic - * metros in this field. + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the + * problematic metros in this field. * @return value or {@code null} for none */ public java.util.List getMetros() { @@ -184,9 +184,9 @@ public java.util.List getMetros() { } /** - * [Output Only] Metros used to explain this blocker in more detail. These are three-letter - * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic - * metros in this field. + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the + * problematic metros in this field. * @param metros metros or {@code null} for none */ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setMetros(java.util.List metros) { @@ -195,8 +195,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are + * "zone1" and/or "zone2". * @return value or {@code null} for none */ public java.util.List getZones() { @@ -204,8 +204,8 @@ public java.util.List getZones() { } /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are + * "zone1" and/or "zone2". * @param zones zones or {@code null} for none */ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setZones(java.util.List zones) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java index 1c4b44ca7c0..39179adb193 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -36,8 +36,8 @@ public final class InterconnectGroupPhysicalStructureMetros extends com.google.a private java.util.List facilities; /** - * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the - * first component of the location of Interconnects underneath this. + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of Interconnects underneath this. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,8 +59,8 @@ public InterconnectGroupPhysicalStructureMetros setFacilities(java.util.List zones; /** - * [Output Only] The ID of this facility, as a numeric string like "5467". This is the third - * component of the location of Interconnects in this facility. + * Output only. [Output Only] The ID of this facility, as a numeric string like "5467". This is + * the third component of the location of Interconnects in this facility. * @return value or {@code null} for none */ public java.lang.String getFacility() { @@ -53,8 +53,8 @@ public java.lang.String getFacility() { } /** - * [Output Only] The ID of this facility, as a numeric string like "5467". This is the third - * component of the location of Interconnects in this facility. + * Output only. [Output Only] The ID of this facility, as a numeric string like "5467". This is + * the third component of the location of Interconnects in this facility. * @param facility facility or {@code null} for none */ public InterconnectGroupPhysicalStructureMetrosFacilities setFacility(java.lang.String facility) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java index df961f862ac..a71726bdb33 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -30,24 +30,24 @@ public final class InterconnectGroupPhysicalStructureMetrosFacilitiesZones extends com.google.api.client.json.GenericJson { /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, + * facility, and zone. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List interconnects; /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second + * component of the location of Interconnects in this facility. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, + * facility, and zone. * @return value or {@code null} for none */ public java.util.List getInterconnects() { @@ -55,8 +55,8 @@ public java.util.List getInterconnects() { } /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, + * facility, and zone. * @param interconnects interconnects or {@code null} for none */ public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects(java.util.List interconnects) { @@ -65,8 +65,8 @@ public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects( } /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second + * component of the location of Interconnects in this facility. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -74,8 +74,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second + * component of the location of Interconnects in this facility. * @param zone zone or {@code null} for none */ public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java index 076722dc0ce..bf7e43b98dc 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -79,7 +79,8 @@ public final class InterconnectGroupsListResponse extends com.google.api.client. private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,8 @@ public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java index 80d27d471e5..f042bf10e06 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -30,21 +30,21 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectGroupConfigured configured; /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String groupStatus; /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,14 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.cl private java.util.List interconnectStatuses; /** - * The operational state of the group, including only active Interconnects. + * Output only. The operational state of the group, including only active Interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectGroupConfigured operational; /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupConfigured getConfigured() { @@ -72,7 +72,7 @@ public InterconnectGroupConfigured getConfigured() { } /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * @param configured configured or {@code null} for none */ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { @@ -81,7 +81,7 @@ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfig } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -89,7 +89,7 @@ public java.lang.String getGroupStatus() { } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -98,7 +98,7 @@ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String group } /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupIntent getIntent() { @@ -106,7 +106,7 @@ public InterconnectGroupIntent getIntent() { } /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * @param intent intent or {@code null} for none */ public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { @@ -130,7 +130,7 @@ public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.Lis } /** - * The operational state of the group, including only active Interconnects. + * Output only. The operational state of the group, including only active Interconnects. * @return value or {@code null} for none */ public InterconnectGroupConfigured getOperational() { @@ -138,7 +138,7 @@ public InterconnectGroupConfigured getOperational() { } /** - * The operational state of the group, including only active Interconnects. + * Output only. The operational state of the group, including only active Interconnects. * @param operational operational or {@code null} for none */ public InterconnectGroupsOperationalStatus setOperational(InterconnectGroupConfigured operational) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java index 49fd3a7746a..4dc45ceabc1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -30,35 +30,36 @@ public final class InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean adminEnabled; /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics + * method. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectDiagnostics diagnostics; /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String interconnect; /** - * Whether this interconnect is participating in the redundant configuration. + * Output only. Whether this interconnect is participating in the redundant configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String isActive; /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * @return value or {@code null} for none */ public java.lang.Boolean getAdminEnabled() { @@ -66,7 +67,7 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * @param adminEnabled adminEnabled or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { @@ -75,7 +76,8 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(jav } /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics + * method. * @return value or {@code null} for none */ public InterconnectDiagnostics getDiagnostics() { @@ -83,7 +85,8 @@ public InterconnectDiagnostics getDiagnostics() { } /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics + * method. * @param diagnostics diagnostics or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(InterconnectDiagnostics diagnostics) { @@ -92,7 +95,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(Inte } /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * @return value or {@code null} for none */ public java.lang.String getInterconnect() { @@ -100,7 +103,7 @@ public java.lang.String getInterconnect() { } /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * @param interconnect interconnect or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { @@ -109,7 +112,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(jav } /** - * Whether this interconnect is participating in the redundant configuration. + * Output only. Whether this interconnect is participating in the redundant configuration. * @return value or {@code null} for none */ public java.lang.String getIsActive() { @@ -117,7 +120,7 @@ public java.lang.String getIsActive() { } /** - * Whether this interconnect is participating in the redundant configuration. + * Output only. Whether this interconnect is participating in the redundant configuration. * @param isActive isActive or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setIsActive(java.lang.String isActive) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectList.java index a1b7c05ded9..1e714fff188 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectList.java @@ -50,7 +50,8 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of + * interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public InterconnectList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of + * interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of + * interconnects. * @param kind kind or {@code null} for none */ public InterconnectList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public InterconnectList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InterconnectList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java index 0beb6df3604..879497c0276 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java @@ -33,8 +33,8 @@ public final class InterconnectLocation extends com.google.api.client.json.GenericJson { /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,7 +83,7 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String continent; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,75 +99,78 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.util.List crossSiteInterconnectInfos; /** - * [Output Only] An optional description of the resource. + * Output only. [Output Only] An optional description of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String facilityProvider; /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String facilityProviderFacilityId; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#interconnectLocation for interconnect - * locations. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectLocation for + * interconnect locations. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String peeringdbFacilityId; /** - * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters - * pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + * Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe + * parameters pertaining to the relation between this InterconnectLocation and various Google + * Cloud regions. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List regionInfos; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] URLs of the other locations that can pair up with this location to support - * Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% peer - * locations of each other. + * Output only. [Output Only] URLs of the other locations that can pair up with this location to + * support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% + * peer locations of each other. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -184,15 +187,15 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean supportsPzs; /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. * @return value or {@code null} for none */ public java.lang.String getAddress() { @@ -200,8 +203,8 @@ public java.lang.String getAddress() { } /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. * @param address address or {@code null} for none */ public InterconnectLocation setAddress(java.lang.String address) { @@ -309,7 +312,7 @@ public InterconnectLocation setContinent(java.lang.String continent) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -317,7 +320,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -347,7 +350,7 @@ public InterconnectLocation setCrossSiteInterconnectInfos(java.util.List getRegionInfos() { @@ -479,8 +487,9 @@ public java.util.List getRegionInfos() { } /** - * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters - * pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + * Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe + * parameters pertaining to the relation between this InterconnectLocation and various Google + * Cloud regions. * @param regionInfos regionInfos or {@code null} for none */ public InterconnectLocation setRegionInfos(java.util.List regionInfos) { @@ -489,7 +498,7 @@ public InterconnectLocation setRegionInfos(java.util.List getSingleRegionProductionCriticalPeerLocations() { @@ -516,9 +525,9 @@ public java.util.List getSingleRegionProductionCriticalPeerLoc } /** - * [Output Only] URLs of the other locations that can pair up with this location to support - * Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% peer - * locations of each other. + * Output only. [Output Only] URLs of the other locations that can pair up with this location to + * support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% + * peer locations of each other. * @param singleRegionProductionCriticalPeerLocations singleRegionProductionCriticalPeerLocations or {@code null} for none */ public InterconnectLocation setSingleRegionProductionCriticalPeerLocations(java.util.List singleRegionProductionCriticalPeerLocations) { @@ -550,7 +559,7 @@ public InterconnectLocation setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -558,7 +567,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public InterconnectLocation setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java index d7e887fbb8a..c323d785c69 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java @@ -31,16 +31,18 @@ public final class InterconnectLocationCrossSiteInterconnectInfo extends com.google.api.client.json.GenericJson { /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * Output only. The remote location for Cross-Site Interconnect wires. This specifies an + * InterconnectLocation city (metropolitan area designator), which itself may match multiple + * InterconnectLocations. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String city; /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * Output only. The remote location for Cross-Site Interconnect wires. This specifies an + * InterconnectLocation city (metropolitan area designator), which itself may match multiple + * InterconnectLocations. * @return value or {@code null} for none */ public java.lang.String getCity() { @@ -48,8 +50,9 @@ public java.lang.String getCity() { } /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * Output only. The remote location for Cross-Site Interconnect wires. This specifies an + * InterconnectLocation city (metropolitan area designator), which itself may match multiple + * InterconnectLocations. * @param city city or {@code null} for none */ public InterconnectLocationCrossSiteInterconnectInfo setCity(java.lang.String city) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java index c708d024142..051f5900f98 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java @@ -50,8 +50,8 @@ public final class InterconnectLocationList extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists + * of interconnect locations. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class InterconnectLocationList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public InterconnectLocationList setItems(java.util.List it } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists + * of interconnect locations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists + * of interconnect locations. * @param kind kind or {@code null} for none */ public InterconnectLocationList setKind(java.lang.String kind) { @@ -158,7 +158,7 @@ public InterconnectLocationList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InterconnectLocationList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java index 76fa0dedf9f..1e35db8faf6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java @@ -31,38 +31,38 @@ public final class InterconnectLocationRegionInfo extends com.google.api.client.json.GenericJson { /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM + * in this region. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long expectedRttMs; /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for + * interconnects that are in this location. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean l2ForwardingEnabled; /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String locationPresence; /** - * URL for the region of this location. + * Output only. URL for the region of this location. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM + * in this region. * @return value or {@code null} for none */ public java.lang.Long getExpectedRttMs() { @@ -70,8 +70,8 @@ public java.lang.Long getExpectedRttMs() { } /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM + * in this region. * @param expectedRttMs expectedRttMs or {@code null} for none */ public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRttMs) { @@ -80,8 +80,8 @@ public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRt } /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for + * interconnects that are in this location. * @return value or {@code null} for none */ public java.lang.Boolean getL2ForwardingEnabled() { @@ -89,8 +89,8 @@ public java.lang.Boolean getL2ForwardingEnabled() { } /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for + * interconnects that are in this location. * @param l2ForwardingEnabled l2ForwardingEnabled or {@code null} for none */ public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l2ForwardingEnabled) { @@ -99,7 +99,7 @@ public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l } /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * @return value or {@code null} for none */ public java.lang.String getLocationPresence() { @@ -107,7 +107,7 @@ public java.lang.String getLocationPresence() { } /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * @param locationPresence locationPresence or {@code null} for none */ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locationPresence) { @@ -116,7 +116,7 @@ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locat } /** - * URL for the region of this location. + * Output only. URL for the region of this location. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -124,7 +124,7 @@ public java.lang.String getRegion() { } /** - * URL for the region of this location. + * Output only. URL for the region of this location. * @param region region or {@code null} for none */ public InterconnectLocationRegionInfo setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java index cb4c1b771a8..b39fa5417ea 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java @@ -33,161 +33,163 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json.GenericJson { /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String address; /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * Output only. [Output Only] Subset of fields from InterconnectAttachment's + * |configurationConstraints| field that apply to all attachments for this remote location. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectAttachmentConfigurationConstraints attachmentConfigurationConstraints; /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * Output only. [Output Only] Metropolitan area designator that indicates which city an + * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String city; /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect + * and associated InterconnectAttachments. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectRemoteLocationConstraints constraints; /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * Output only. [Output Only] Continent for this location, which can take one of the following + * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String continent; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] An optional description of the resource. + * Output only. [Output Only] An optional description of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String facilityProvider; /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String facilityProviderFacilityId; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for + * interconnect remote locations. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take + * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lacp; /** - * [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. + * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxLagSize100Gbps; /** - * [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. + * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxLagSize10Gbps; /** - * [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. + * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxLagSize400Gbps; /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String peeringdbFacilityId; /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List permittedConnections; /** - * [Output Only] Indicates the service provider present at the remote location. Example values: - * "Amazon Web Services", "Microsoft Azure". + * Output only. [Output Only] Indicates the service provider present at the remote location. + * Example values: "Amazon Web Services", "Microsoft Azure". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String remoteService; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] The status of this InterconnectRemoteLocation, which can take one of the - * following values: - CLOSED: The InterconnectRemoteLocation is closed and is unavailable - * for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The + * Output only. [Output Only] The status of this InterconnectRemoteLocation, which can take one of + * the following values: - CLOSED: The InterconnectRemoteLocation is closed and is + * unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The * InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. * The value may be {@code null}. */ @@ -195,8 +197,8 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json private java.lang.String status; /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. * @return value or {@code null} for none */ public java.lang.String getAddress() { @@ -204,8 +206,8 @@ public java.lang.String getAddress() { } /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. * @param address address or {@code null} for none */ public InterconnectRemoteLocation setAddress(java.lang.String address) { @@ -214,8 +216,8 @@ public InterconnectRemoteLocation setAddress(java.lang.String address) { } /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * Output only. [Output Only] Subset of fields from InterconnectAttachment's + * |configurationConstraints| field that apply to all attachments for this remote location. * @return value or {@code null} for none */ public InterconnectAttachmentConfigurationConstraints getAttachmentConfigurationConstraints() { @@ -223,8 +225,8 @@ public InterconnectAttachmentConfigurationConstraints getAttachmentConfiguration } /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * Output only. [Output Only] Subset of fields from InterconnectAttachment's + * |configurationConstraints| field that apply to all attachments for this remote location. * @param attachmentConfigurationConstraints attachmentConfigurationConstraints or {@code null} for none */ public InterconnectRemoteLocation setAttachmentConfigurationConstraints(InterconnectAttachmentConfigurationConstraints attachmentConfigurationConstraints) { @@ -233,8 +235,8 @@ public InterconnectRemoteLocation setAttachmentConfigurationConstraints(Intercon } /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * Output only. [Output Only] Metropolitan area designator that indicates which city an + * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". * @return value or {@code null} for none */ public java.lang.String getCity() { @@ -242,8 +244,8 @@ public java.lang.String getCity() { } /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * Output only. [Output Only] Metropolitan area designator that indicates which city an + * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". * @param city city or {@code null} for none */ public InterconnectRemoteLocation setCity(java.lang.String city) { @@ -252,8 +254,8 @@ public InterconnectRemoteLocation setCity(java.lang.String city) { } /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect + * and associated InterconnectAttachments. * @return value or {@code null} for none */ public InterconnectRemoteLocationConstraints getConstraints() { @@ -261,8 +263,8 @@ public InterconnectRemoteLocationConstraints getConstraints() { } /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect + * and associated InterconnectAttachments. * @param constraints constraints or {@code null} for none */ public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConstraints constraints) { @@ -271,8 +273,8 @@ public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConst } /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * Output only. [Output Only] Continent for this location, which can take one of the following + * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA * @return value or {@code null} for none */ public java.lang.String getContinent() { @@ -280,8 +282,8 @@ public java.lang.String getContinent() { } /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * Output only. [Output Only] Continent for this location, which can take one of the following + * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA * @param continent continent or {@code null} for none */ public InterconnectRemoteLocation setContinent(java.lang.String continent) { @@ -290,7 +292,7 @@ public InterconnectRemoteLocation setContinent(java.lang.String continent) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -298,7 +300,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -307,7 +309,7 @@ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creation } /** - * [Output Only] An optional description of the resource. + * Output only. [Output Only] An optional description of the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -315,7 +317,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional description of the resource. + * Output only. [Output Only] An optional description of the resource. * @param description description or {@code null} for none */ public InterconnectRemoteLocation setDescription(java.lang.String description) { @@ -324,7 +326,7 @@ public InterconnectRemoteLocation setDescription(java.lang.String description) { } /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). * @return value or {@code null} for none */ public java.lang.String getFacilityProvider() { @@ -332,7 +334,7 @@ public java.lang.String getFacilityProvider() { } /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). * @param facilityProvider facilityProvider or {@code null} for none */ public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityProvider) { @@ -341,7 +343,8 @@ public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityP } /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). * @return value or {@code null} for none */ public java.lang.String getFacilityProviderFacilityId() { @@ -349,7 +352,8 @@ public java.lang.String getFacilityProviderFacilityId() { } /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). * @param facilityProviderFacilityId facilityProviderFacilityId or {@code null} for none */ public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String facilityProviderFacilityId) { @@ -358,7 +362,8 @@ public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -366,7 +371,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public InterconnectRemoteLocation setId(java.math.BigInteger id) { @@ -375,8 +381,8 @@ public InterconnectRemoteLocation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for + * interconnect remote locations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -384,8 +390,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for + * interconnect remote locations. * @param kind kind or {@code null} for none */ public InterconnectRemoteLocation setKind(java.lang.String kind) { @@ -394,8 +400,8 @@ public InterconnectRemoteLocation setKind(java.lang.String kind) { } /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take + * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED * @return value or {@code null} for none */ public java.lang.String getLacp() { @@ -403,8 +409,8 @@ public java.lang.String getLacp() { } /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take + * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED * @param lacp lacp or {@code null} for none */ public InterconnectRemoteLocation setLacp(java.lang.String lacp) { @@ -413,8 +419,8 @@ public InterconnectRemoteLocation setLacp(java.lang.String lacp) { } /** - * [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. + * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. * @return value or {@code null} for none */ public java.lang.Integer getMaxLagSize100Gbps() { @@ -422,8 +428,8 @@ public java.lang.Integer getMaxLagSize100Gbps() { } /** - * [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. + * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. * @param maxLagSize100Gbps maxLagSize100Gbps or {@code null} for none */ public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagSize100Gbps) { @@ -432,8 +438,8 @@ public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagS } /** - * [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. + * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. * @return value or {@code null} for none */ public java.lang.Integer getMaxLagSize10Gbps() { @@ -441,8 +447,8 @@ public java.lang.Integer getMaxLagSize10Gbps() { } /** - * [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. + * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. * @param maxLagSize10Gbps maxLagSize10Gbps or {@code null} for none */ public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSize10Gbps) { @@ -451,8 +457,8 @@ public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSi } /** - * [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. + * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. * @return value or {@code null} for none */ public java.lang.Integer getMaxLagSize400Gbps() { @@ -460,8 +466,8 @@ public java.lang.Integer getMaxLagSize400Gbps() { } /** - * [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation group (LAG). - * When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. + * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. * @param maxLagSize400Gbps maxLagSize400Gbps or {@code null} for none */ public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagSize400Gbps) { @@ -470,7 +476,7 @@ public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagS } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -478,7 +484,7 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @param name name or {@code null} for none */ public InterconnectRemoteLocation setName(java.lang.String name) { @@ -487,8 +493,8 @@ public InterconnectRemoteLocation setName(java.lang.String name) { } /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). * @return value or {@code null} for none */ public java.lang.String getPeeringdbFacilityId() { @@ -496,8 +502,8 @@ public java.lang.String getPeeringdbFacilityId() { } /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). * @param peeringdbFacilityId peeringdbFacilityId or {@code null} for none */ public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peeringdbFacilityId) { @@ -506,7 +512,7 @@ public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peerin } /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * @return value or {@code null} for none */ public java.util.List getPermittedConnections() { @@ -514,7 +520,7 @@ public java.util.List getPermitt } /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * @param permittedConnections permittedConnections or {@code null} for none */ public InterconnectRemoteLocation setPermittedConnections(java.util.List permittedConnections) { @@ -523,8 +529,8 @@ public InterconnectRemoteLocation setPermittedConnections(java.util.List incompatibleLicenses; /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,6 +129,14 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean osLicense; + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LicenseParams params; + /** * If true, this license can be removed from a disk's set of licenses, with no replacement license * needed. @@ -154,14 +162,14 @@ public final class License extends com.google.api.client.json.GenericJson { private LicenseResourceRequirements resourceRequirements; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -183,7 +191,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.lang.Boolean transferable; /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,7 +251,7 @@ public License setChargesUseFee(java.lang.Boolean chargesUseFee) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -251,7 +259,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public License setCreationTimestamp(java.lang.String creationTimestamp) { @@ -315,7 +323,7 @@ public License setIncompatibleLicenses(java.util.List incompat } /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -323,7 +331,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * @param kind kind or {@code null} for none */ public License setKind(java.lang.String kind) { @@ -420,6 +428,25 @@ public License setOsLicense(java.lang.Boolean osLicense) { return this; } + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public LicenseParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public License setParams(LicenseParams params) { + this.params = params; + return this; + } + /** * If true, this license can be removed from a disk's set of licenses, with no replacement license * needed. @@ -478,7 +505,7 @@ public License setResourceRequirements(LicenseResourceRequirements resourceRequi } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -486,7 +513,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public License setSelfLink(java.lang.String selfLink) { @@ -495,7 +522,7 @@ public License setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -503,7 +530,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public License setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -548,7 +575,7 @@ public License setTransferable(java.lang.Boolean transferable) { } /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getUpdateTimestamp() { @@ -556,7 +583,7 @@ public java.lang.String getUpdateTimestamp() { } /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * @param updateTimestamp updateTimestamp or {@code null} for none */ public License setUpdateTimestamp(java.lang.String updateTimestamp) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCode.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCode.java index 08b70f3341d..2464bb39832 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCode.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCode.java @@ -33,28 +33,29 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,37 +69,37 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.util.List licenseAlias; /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a + * valid 64 bit integer. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Current state of this License Code. + * Output only. [Output Only] Current state of this License Code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * [Output Only] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * Output only. [Output Only] If true, the license will remain attached when creating images or + * snapshots from disks. Otherwise, the license is not transferred. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean transferable; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { @@ -115,7 +116,7 @@ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -123,7 +124,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCode setDescription(java.lang.String description) { @@ -132,7 +133,8 @@ public LicenseCode setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -140,7 +142,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public LicenseCode setId(java.math.BigInteger id) { @@ -149,7 +152,7 @@ public LicenseCode setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -157,7 +160,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * @param kind kind or {@code null} for none */ public LicenseCode setKind(java.lang.String kind) { @@ -183,8 +186,8 @@ public LicenseCode setLicenseAlias(java.util.List licen } /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a + * valid 64 bit integer. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -192,8 +195,8 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a + * valid 64 bit integer. * @param name name or {@code null} for none */ public LicenseCode setName(java.lang.String name) { @@ -202,7 +205,7 @@ public LicenseCode setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -210,7 +213,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public LicenseCode setSelfLink(java.lang.String selfLink) { @@ -219,7 +222,7 @@ public LicenseCode setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Current state of this License Code. + * Output only. [Output Only] Current state of this License Code. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -227,7 +230,7 @@ public java.lang.String getState() { } /** - * [Output Only] Current state of this License Code. + * Output only. [Output Only] Current state of this License Code. * @param state state or {@code null} for none */ public LicenseCode setState(java.lang.String state) { @@ -236,8 +239,8 @@ public LicenseCode setState(java.lang.String state) { } /** - * [Output Only] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * Output only. [Output Only] If true, the license will remain attached when creating images or + * snapshots from disks. Otherwise, the license is not transferred. * @return value or {@code null} for none */ public java.lang.Boolean getTransferable() { @@ -245,8 +248,8 @@ public java.lang.Boolean getTransferable() { } /** - * [Output Only] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * Output only. [Output Only] If true, the license will remain attached when creating images or + * snapshots from disks. Otherwise, the license is not transferred. * @param transferable transferable or {@code null} for none */ public LicenseCode setTransferable(java.lang.Boolean transferable) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java index 96398e3c26d..cfe3ccb4c83 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java @@ -30,21 +30,21 @@ public final class LicenseCodeLicenseAlias extends com.google.api.client.json.GenericJson { /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** - * [Output Only] URL of license corresponding to this License Code. + * Output only. [Output Only] URL of license corresponding to this License Code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -52,7 +52,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCodeLicenseAlias setDescription(java.lang.String description) { @@ -61,7 +61,7 @@ public LicenseCodeLicenseAlias setDescription(java.lang.String description) { } /** - * [Output Only] URL of license corresponding to this License Code. + * Output only. [Output Only] URL of license corresponding to this License Code. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -69,7 +69,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] URL of license corresponding to this License Code. + * Output only. [Output Only] URL of license corresponding to this License Code. * @param selfLink selfLink or {@code null} for none */ public LicenseCodeLicenseAlias setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseParams.java new file mode 100644 index 00000000000..cfa3866f110 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseParams.java @@ -0,0 +1,78 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Additional license params. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LicenseParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public LicenseParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public LicenseParams set(String fieldName, Object value) { + return (LicenseParams) super.set(fieldName, value); + } + + @Override + public LicenseParams clone() { + return (LicenseParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java index cee8ece927f..1c5fc4d949c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java @@ -60,7 +60,7 @@ public final class LicensesListResponse extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public LicensesListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -139,7 +139,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public LicensesListResponse setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicy.java index afd21b38b7c..7c437efa39b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicy.java @@ -32,7 +32,12 @@ public final class LocationPolicy extends com.google.api.client.json.GenericJson /** * Location configurations mapped by location name. Currently only zone names are supported and - * must be represented as valid internal URLs, such as zones/us-central1-a. + * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert + * operation doesn't create instances in an AI zone, even if an AI zone is available in the + * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine + * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. + * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To + * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,9 +50,22 @@ public final class LocationPolicy extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String targetShape; + /** + * The bulkInsert operation applies any preferences set in the locations field to the specific + * zones listed in the zones field if the same zones are specified in both fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + /** * Location configurations mapped by location name. Currently only zone names are supported and - * must be represented as valid internal URLs, such as zones/us-central1-a. + * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert + * operation doesn't create instances in an AI zone, even if an AI zone is available in the + * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine + * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. + * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To + * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. * @return value or {@code null} for none */ public java.util.Map getLocations() { @@ -56,7 +74,12 @@ public java.util.Map getLocations() { /** * Location configurations mapped by location name. Currently only zone names are supported and - * must be represented as valid internal URLs, such as zones/us-central1-a. + * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert + * operation doesn't create instances in an AI zone, even if an AI zone is available in the + * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine + * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. + * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To + * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. * @param locations locations or {@code null} for none */ public LocationPolicy setLocations(java.util.Map locations) { @@ -81,6 +104,25 @@ public LocationPolicy setTargetShape(java.lang.String targetShape) { return this; } + /** + * The bulkInsert operation applies any preferences set in the locations field to the specific + * zones listed in the zones field if the same zones are specified in both fields. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * The bulkInsert operation applies any preferences set in the locations field to the specific + * zones listed in the zones field if the same zones are specified in both fields. + * @param zones zones or {@code null} for none + */ + public LocationPolicy setZones(java.util.List zones) { + this.zones = zones; + return this; + } + @Override public LocationPolicy set(String fieldName, Object value) { return (LocationPolicy) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java new file mode 100644 index 00000000000..df5e3278cbf --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for LocationPolicyZoneConfiguration. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LocationPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { + + /** + * The URL of the zone. The zone must exist in the region where the request is called. Zones must + * be represented as valid partial URLs, such as zones/us-central1-a. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The URL of the zone. The zone must exist in the region where the request is called. Zones must + * be represented as valid partial URLs, such as zones/us-central1-a. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The URL of the zone. The zone must exist in the region where the request is called. Zones must + * be represented as valid partial URLs, such as zones/us-central1-a. + * @param zone zone or {@code null} for none + */ + public LocationPolicyZoneConfiguration setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public LocationPolicyZoneConfiguration set(String fieldName, Object value) { + return (LocationPolicyZoneConfiguration) super.set(fieldName, value); + } + + @Override + public LocationPolicyZoneConfiguration clone() { + return (LocationPolicyZoneConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImage.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImage.java index dfce27ca41c..8b4e7fd0cd4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImage.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImage.java @@ -34,7 +34,7 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,7 +56,8 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * Output only. [Output Only] A unique identifier for this machine image. The server defines this + * identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -70,7 +71,8 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private InstanceProperties instanceProperties; /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine + * image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,6 +125,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * Input only. [Input Only] Additional parameters that are passed in the request, but are not + * persisted in the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private MachineImageParams params; + /** * Output only. Reserved for future use. * The value may be {@code null}. @@ -131,21 +141,22 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** - * An array of Machine Image specific properties for disks attached to the source instance + * Output only. An array of Machine Image specific properties for disks attached to the source + * instance * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List savedDisks; /** - * [Output Only] The URL for this machine image. The server defines this URL. + * Output only. [Output Only] The URL for this machine image. The server defines this URL. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -170,16 +181,16 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.String sourceInstance; /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source + * instance related properties. New properties will not be added to this field. * The value may be {@code null}. */ @com.google.api.client.util.Key private SourceInstanceProperties sourceInstanceProperties; /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * Output only. [Output Only] The status of the machine image. One of the following + * values:INVALID, CREATING, READY,DELETING, and UPLOADING. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -193,14 +204,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * [Output Only] Total size of the storage used by the machine image. + * Output only. [Output Only] Total size of the storage used by the machine image. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long totalStorageBytes; /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -208,7 +219,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public MachineImage setCreationTimestamp(java.lang.String creationTimestamp) { @@ -253,7 +264,8 @@ public MachineImage setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * Output only. [Output Only] A unique identifier for this machine image. The server defines this + * identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -261,7 +273,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * Output only. [Output Only] A unique identifier for this machine image. The server defines this + * identifier. * @param id id or {@code null} for none */ public MachineImage setId(java.math.BigInteger id) { @@ -287,7 +300,8 @@ public MachineImage setInstanceProperties(InstanceProperties instanceProperties) } /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine + * image. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -295,7 +309,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine + * image. * @param kind kind or {@code null} for none */ public MachineImage setKind(java.lang.String kind) { @@ -447,6 +462,25 @@ public MachineImage setName(java.lang.String name) { return this; } + /** + * Input only. [Input Only] Additional parameters that are passed in the request, but are not + * persisted in the resource. + * @return value or {@code null} for none + */ + public MachineImageParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional parameters that are passed in the request, but are not + * persisted in the resource. + * @param params params or {@code null} for none + */ + public MachineImage setParams(MachineImageParams params) { + this.params = params; + return this; + } + /** * Output only. Reserved for future use. * @return value or {@code null} for none @@ -465,7 +499,7 @@ public MachineImage setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -473,7 +507,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -482,7 +516,8 @@ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * An array of Machine Image specific properties for disks attached to the source instance + * Output only. An array of Machine Image specific properties for disks attached to the source + * instance * @return value or {@code null} for none */ public java.util.List getSavedDisks() { @@ -490,7 +525,8 @@ public java.util.List getSavedDisks() { } /** - * An array of Machine Image specific properties for disks attached to the source instance + * Output only. An array of Machine Image specific properties for disks attached to the source + * instance * @param savedDisks savedDisks or {@code null} for none */ public MachineImage setSavedDisks(java.util.List savedDisks) { @@ -499,7 +535,7 @@ public MachineImage setSavedDisks(java.util.List savedDisks) { } /** - * [Output Only] The URL for this machine image. The server defines this URL. + * Output only. [Output Only] The URL for this machine image. The server defines this URL. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -507,7 +543,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this machine image. The server defines this URL. + * Output only. [Output Only] The URL for this machine image. The server defines this URL. * @param selfLink selfLink or {@code null} for none */ public MachineImage setSelfLink(java.lang.String selfLink) { @@ -558,8 +594,8 @@ public MachineImage setSourceInstance(java.lang.String sourceInstance) { } /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source + * instance related properties. New properties will not be added to this field. * @return value or {@code null} for none */ public SourceInstanceProperties getSourceInstanceProperties() { @@ -567,8 +603,8 @@ public SourceInstanceProperties getSourceInstanceProperties() { } /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source + * instance related properties. New properties will not be added to this field. * @param sourceInstanceProperties sourceInstanceProperties or {@code null} for none */ public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceInstanceProperties) { @@ -577,8 +613,8 @@ public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceI } /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * Output only. [Output Only] The status of the machine image. One of the following + * values:INVALID, CREATING, READY,DELETING, and UPLOADING. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -586,8 +622,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * Output only. [Output Only] The status of the machine image. One of the following + * values:INVALID, CREATING, READY,DELETING, and UPLOADING. * @param status status or {@code null} for none */ public MachineImage setStatus(java.lang.String status) { @@ -613,7 +649,7 @@ public MachineImage setStorageLocations(java.util.List storage } /** - * [Output Only] Total size of the storage used by the machine image. + * Output only. [Output Only] Total size of the storage used by the machine image. * @return value or {@code null} for none */ public java.lang.Long getTotalStorageBytes() { @@ -621,7 +657,7 @@ public java.lang.Long getTotalStorageBytes() { } /** - * [Output Only] Total size of the storage used by the machine image. + * Output only. [Output Only] Total size of the storage used by the machine image. * @param totalStorageBytes totalStorageBytes or {@code null} for none */ public MachineImage setTotalStorageBytes(java.lang.Long totalStorageBytes) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageList.java index 68648fbbe07..2447569de0b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageList.java @@ -50,8 +50,8 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse + * for machine image lists. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public MachineImageList setItems(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse + * for machine image lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse + * for machine image lists. * @param kind kind or {@code null} for none */ public MachineImageList setKind(java.lang.String kind) { @@ -158,7 +158,7 @@ public MachineImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public MachineImageList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java new file mode 100644 index 00000000000..1a76348a584 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java @@ -0,0 +1,78 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Machine Image parameters + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MachineImageParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public MachineImageParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public MachineImageParams set(String fieldName, Object value) { + return (MachineImageParams) super.set(fieldName, value); + } + + @Override + public MachineImageParams clone() { + return (MachineImageParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java index 55e870822c7..2644394df67 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java @@ -52,6 +52,13 @@ public final class MachineType extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String architecture; + /** + * [Output Only] The configuration of bundled local SSD for the machine type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BundledLocalSsds bundledLocalSsds; + /** * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. @@ -104,7 +111,8 @@ public final class MachineType extends com.google.api.client.json.GenericJson { private java.lang.Boolean isSharedCpu; /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine + * types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -186,6 +194,23 @@ public MachineType setArchitecture(java.lang.String architecture) { return this; } + /** + * [Output Only] The configuration of bundled local SSD for the machine type. + * @return value or {@code null} for none + */ + public BundledLocalSsds getBundledLocalSsds() { + return bundledLocalSsds; + } + + /** + * [Output Only] The configuration of bundled local SSD for the machine type. + * @param bundledLocalSsds bundledLocalSsds or {@code null} for none + */ + public MachineType setBundledLocalSsds(BundledLocalSsds bundledLocalSsds) { + this.bundledLocalSsds = bundledLocalSsds; + return this; + } + /** * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none @@ -310,7 +335,8 @@ public MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu) { } /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine + * types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -318,7 +344,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine + * types. * @param kind kind or {@code null} for none */ public MachineType setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java index 35ac3fa24d1..8ca50f855de 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for aggregated lists of - * machine types. + * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for + * aggregated lists of machine types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public MachineTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public MachineTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeList.java index 1292b1205e6..a94434edc45 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeList.java @@ -50,7 +50,8 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of + * machine types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public MachineTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of + * machine types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of + * machine types. * @param kind kind or {@code null} for none */ public MachineTypeList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public MachineTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public MachineTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstance.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstance.java index 7be10a0a84d..f7ba1cf77f6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstance.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstance.java @@ -30,87 +30,90 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJson { /** - * [Output Only] The current action that the managed instance group has scheduled for the - * instance. Possible values: - NONE The instance is running, and the managed instance - * group does not have any scheduled actions for this instance. - CREATING The managed instance - * group is creating this instance. If the group fails to create this instance, it will try - * again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is - * attempting to create this instance only once. If the group fails to create this instance, it - * does not try again and the group'stargetSize value is decreased instead. - RECREATING The - * managed instance group is recreating this instance. - DELETING The managed instance group - * is permanently deleting this instance. - ABANDONING The managed instance group is - * abandoning this instance. The instance will be removed from the instance group and from - * any target pools that are associated with this group. - RESTARTING The managed instance - * group is restarting the instance. - REFRESHING The managed instance group is applying - * configuration changes to the instance without stopping it. For example, the group can update - * the target pool list for an instance without stopping that instance. - VERIFYING The - * managed instance group has created the instance and it is in the process of being verified. + * Output only. [Output Only] The current action that the managed instance group has scheduled for + * the instance. Possible values: - NONE The instance is running, and the managed + * instance group does not have any scheduled actions for this instance. - CREATING The managed + * instance group is creating this instance. If the group fails to create this instance, it + * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance + * group is attempting to create this instance only once. If the group fails to create this + * instance, it does not try again and the group'stargetSize value is decreased instead. - + * RECREATING The managed instance group is recreating this instance. - DELETING The managed + * instance group is permanently deleting this instance. - ABANDONING The managed instance + * group is abandoning this instance. The instance will be removed from the instance group + * and from any target pools that are associated with this group. - RESTARTING The managed + * instance group is restarting the instance. - REFRESHING The managed instance group is + * applying configuration changes to the instance without stopping it. For example, the + * group can update the target pool list for an instance without stopping that instance. - + * VERIFYING The managed instance group has created the instance and it is in the process of + * being verified. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String currentAction; /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * Output only. [Output only] The unique identifier for this resource. This field is empty when + * instance does not exist. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has + * not yet been created. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instance; /** - * [Output Only] Health state of the instance per health-check. + * Output only. [Output Only] Health state of the instance per health-check. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List instanceHealth; /** - * [Output Only] The status of the instance. This field is empty when the instance does not exist. + * Output only. [Output Only] The status of the instance. This field is empty when the instance + * does not exist. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instanceStatus; /** - * [Output Only] Information about the last attempt to create or delete the instance. + * Output only. [Output Only] Information about the last attempt to create or delete the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceLastAttempt lastAttempt; /** - * [Output Only] The name of the instance. The name always exists even if the instance has not yet - * been created. + * Output only. [Output Only] The name of the instance. The name always exists even if the + * instance has not yet been created. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] Preserved state applied from per-instance config for this instance. + * Output only. [Output Only] Preserved state applied from per-instance config for this instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private PreservedState preservedStateFromConfig; /** - * [Output Only] Preserved state generated based on stateful policy for this instance. + * Output only. [Output Only] Preserved state generated based on stateful policy for this + * instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private PreservedState preservedStateFromPolicy; /** - * [Output Only] Instance properties selected for this instance resulting from + * Output only. [Output Only] Instance properties selected for this instance resulting from * InstanceFlexibilityPolicy. * The value may be {@code null}. */ @@ -118,28 +121,29 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy; /** - * [Output Only] Intended version of this instance. + * Output only. [Output Only] Intended version of this instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceVersion version; /** - * [Output Only] The current action that the managed instance group has scheduled for the - * instance. Possible values: - NONE The instance is running, and the managed instance - * group does not have any scheduled actions for this instance. - CREATING The managed instance - * group is creating this instance. If the group fails to create this instance, it will try - * again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is - * attempting to create this instance only once. If the group fails to create this instance, it - * does not try again and the group'stargetSize value is decreased instead. - RECREATING The - * managed instance group is recreating this instance. - DELETING The managed instance group - * is permanently deleting this instance. - ABANDONING The managed instance group is - * abandoning this instance. The instance will be removed from the instance group and from - * any target pools that are associated with this group. - RESTARTING The managed instance - * group is restarting the instance. - REFRESHING The managed instance group is applying - * configuration changes to the instance without stopping it. For example, the group can update - * the target pool list for an instance without stopping that instance. - VERIFYING The - * managed instance group has created the instance and it is in the process of being verified. + * Output only. [Output Only] The current action that the managed instance group has scheduled for + * the instance. Possible values: - NONE The instance is running, and the managed + * instance group does not have any scheduled actions for this instance. - CREATING The managed + * instance group is creating this instance. If the group fails to create this instance, it + * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance + * group is attempting to create this instance only once. If the group fails to create this + * instance, it does not try again and the group'stargetSize value is decreased instead. - + * RECREATING The managed instance group is recreating this instance. - DELETING The managed + * instance group is permanently deleting this instance. - ABANDONING The managed instance + * group is abandoning this instance. The instance will be removed from the instance group + * and from any target pools that are associated with this group. - RESTARTING The managed + * instance group is restarting the instance. - REFRESHING The managed instance group is + * applying configuration changes to the instance without stopping it. For example, the + * group can update the target pool list for an instance without stopping that instance. - + * VERIFYING The managed instance group has created the instance and it is in the process of + * being verified. * @return value or {@code null} for none */ public java.lang.String getCurrentAction() { @@ -147,21 +151,22 @@ public java.lang.String getCurrentAction() { } /** - * [Output Only] The current action that the managed instance group has scheduled for the - * instance. Possible values: - NONE The instance is running, and the managed instance - * group does not have any scheduled actions for this instance. - CREATING The managed instance - * group is creating this instance. If the group fails to create this instance, it will try - * again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is - * attempting to create this instance only once. If the group fails to create this instance, it - * does not try again and the group'stargetSize value is decreased instead. - RECREATING The - * managed instance group is recreating this instance. - DELETING The managed instance group - * is permanently deleting this instance. - ABANDONING The managed instance group is - * abandoning this instance. The instance will be removed from the instance group and from - * any target pools that are associated with this group. - RESTARTING The managed instance - * group is restarting the instance. - REFRESHING The managed instance group is applying - * configuration changes to the instance without stopping it. For example, the group can update - * the target pool list for an instance without stopping that instance. - VERIFYING The - * managed instance group has created the instance and it is in the process of being verified. + * Output only. [Output Only] The current action that the managed instance group has scheduled for + * the instance. Possible values: - NONE The instance is running, and the managed + * instance group does not have any scheduled actions for this instance. - CREATING The managed + * instance group is creating this instance. If the group fails to create this instance, it + * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance + * group is attempting to create this instance only once. If the group fails to create this + * instance, it does not try again and the group'stargetSize value is decreased instead. - + * RECREATING The managed instance group is recreating this instance. - DELETING The managed + * instance group is permanently deleting this instance. - ABANDONING The managed instance + * group is abandoning this instance. The instance will be removed from the instance group + * and from any target pools that are associated with this group. - RESTARTING The managed + * instance group is restarting the instance. - REFRESHING The managed instance group is + * applying configuration changes to the instance without stopping it. For example, the + * group can update the target pool list for an instance without stopping that instance. - + * VERIFYING The managed instance group has created the instance and it is in the process of + * being verified. * @param currentAction currentAction or {@code null} for none */ public ManagedInstance setCurrentAction(java.lang.String currentAction) { @@ -170,8 +175,8 @@ public ManagedInstance setCurrentAction(java.lang.String currentAction) { } /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * Output only. [Output only] The unique identifier for this resource. This field is empty when + * instance does not exist. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -179,8 +184,8 @@ public java.math.BigInteger getId() { } /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * Output only. [Output only] The unique identifier for this resource. This field is empty when + * instance does not exist. * @param id id or {@code null} for none */ public ManagedInstance setId(java.math.BigInteger id) { @@ -189,8 +194,8 @@ public ManagedInstance setId(java.math.BigInteger id) { } /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has + * not yet been created. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -198,8 +203,8 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has + * not yet been created. * @param instance instance or {@code null} for none */ public ManagedInstance setInstance(java.lang.String instance) { @@ -208,7 +213,7 @@ public ManagedInstance setInstance(java.lang.String instance) { } /** - * [Output Only] Health state of the instance per health-check. + * Output only. [Output Only] Health state of the instance per health-check. * @return value or {@code null} for none */ public java.util.List getInstanceHealth() { @@ -216,7 +221,7 @@ public java.util.List getInstanceHealth() { } /** - * [Output Only] Health state of the instance per health-check. + * Output only. [Output Only] Health state of the instance per health-check. * @param instanceHealth instanceHealth or {@code null} for none */ public ManagedInstance setInstanceHealth(java.util.List instanceHealth) { @@ -225,7 +230,8 @@ public ManagedInstance setInstanceHealth(java.util.List items) { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -157,7 +157,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. * @param kind kind or {@code null} for none */ public Metadata setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfo.java index b880a69e7e6..ad71f5d0e5a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfo.java @@ -30,21 +30,21 @@ public final class NatIpInfo extends com.google.api.client.json.GenericJson { /** - * A list of all NAT IPs assigned to this NAT config. + * Output only. A list of all NAT IPs assigned to this NAT config. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List natIpInfoMappings; /** - * Name of the NAT config which the NAT IP belongs to. + * Output only. Name of the NAT config which the NAT IP belongs to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String natName; /** - * A list of all NAT IPs assigned to this NAT config. + * Output only. A list of all NAT IPs assigned to this NAT config. * @return value or {@code null} for none */ public java.util.List getNatIpInfoMappings() { @@ -52,7 +52,7 @@ public java.util.List getNatIpInfoMappings() { } /** - * A list of all NAT IPs assigned to this NAT config. + * Output only. A list of all NAT IPs assigned to this NAT config. * @param natIpInfoMappings natIpInfoMappings or {@code null} for none */ public NatIpInfo setNatIpInfoMappings(java.util.List natIpInfoMappings) { @@ -61,7 +61,7 @@ public NatIpInfo setNatIpInfoMappings(java.util.List } /** - * Name of the NAT config which the NAT IP belongs to. + * Output only. Name of the NAT config which the NAT IP belongs to. * @return value or {@code null} for none */ public java.lang.String getNatName() { @@ -69,7 +69,7 @@ public java.lang.String getNatName() { } /** - * Name of the NAT config which the NAT IP belongs to. + * Output only. Name of the NAT config which the NAT IP belongs to. * @param natName natName or {@code null} for none */ public NatIpInfo setNatName(java.lang.String natName) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java index 223a66411ab..9ca1eff4dd7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java @@ -30,28 +30,28 @@ public final class NatIpInfoNatIpInfoMapping extends com.google.api.client.json.GenericJson { /** - * Specifies whether NAT IP is auto or manual. + * Output only. Specifies whether NAT IP is auto or manual. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String mode; /** - * NAT IP address. For example: 203.0.113.11. + * Output only. NAT IP address. For example: 203.0.113.11. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String natIp; /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String usage; /** - * Specifies whether NAT IP is auto or manual. + * Output only. Specifies whether NAT IP is auto or manual. * @return value or {@code null} for none */ public java.lang.String getMode() { @@ -59,7 +59,7 @@ public java.lang.String getMode() { } /** - * Specifies whether NAT IP is auto or manual. + * Output only. Specifies whether NAT IP is auto or manual. * @param mode mode or {@code null} for none */ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { @@ -68,7 +68,7 @@ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { } /** - * NAT IP address. For example: 203.0.113.11. + * Output only. NAT IP address. For example: 203.0.113.11. * @return value or {@code null} for none */ public java.lang.String getNatIp() { @@ -76,7 +76,7 @@ public java.lang.String getNatIp() { } /** - * NAT IP address. For example: 203.0.113.11. + * Output only. NAT IP address. For example: 203.0.113.11. * @param natIp natIp or {@code null} for none */ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { @@ -85,7 +85,7 @@ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { } /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. * @return value or {@code null} for none */ public java.lang.String getUsage() { @@ -93,7 +93,7 @@ public java.lang.String getUsage() { } /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. * @param usage usage or {@code null} for none */ public NatIpInfoNatIpInfoMapping setUsage(java.lang.String usage) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java index fd5195b4cd3..b381067197e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java @@ -57,7 +57,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean autoCreateSubnetworks; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,7 +79,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableUlaInternalIpv6; /** - * [Output Only] URL of the firewall policy the network is associated with. + * Output only. [Output Only] URL of the firewall policy the network is associated with. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -94,7 +94,8 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIPv4; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -112,7 +113,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String internalIpv6Range; /** - * [Output Only] Type of the resource. Always compute#network for networks. + * Output only. [Output Only] Type of the resource. Always compute#network for networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -165,7 +166,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private NetworkParams params; /** - * [Output Only] A list of network peerings for the resource. + * Output only. [Output Only] A list of network peerings for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -187,7 +188,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -255,7 +256,7 @@ public Network setAutoCreateSubnetworks(java.lang.Boolean autoCreateSubnetworks) } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -263,7 +264,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Network setCreationTimestamp(java.lang.String creationTimestamp) { @@ -308,7 +309,7 @@ public Network setEnableUlaInternalIpv6(java.lang.Boolean enableUlaInternalIpv6) } /** - * [Output Only] URL of the firewall policy the network is associated with. + * Output only. [Output Only] URL of the firewall policy the network is associated with. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicy() { @@ -316,7 +317,7 @@ public java.lang.String getFirewallPolicy() { } /** - * [Output Only] URL of the firewall policy the network is associated with. + * Output only. [Output Only] URL of the firewall policy the network is associated with. * @param firewallPolicy firewallPolicy or {@code null} for none */ public Network setFirewallPolicy(java.lang.String firewallPolicy) { @@ -344,7 +345,8 @@ public Network setGatewayIPv4(java.lang.String gatewayIPv4) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -352,7 +354,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Network setId(java.math.BigInteger id) { @@ -386,7 +389,7 @@ public Network setInternalIpv6Range(java.lang.String internalIpv6Range) { } /** - * [Output Only] Type of the resource. Always compute#network for networks. + * Output only. [Output Only] Type of the resource. Always compute#network for networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -394,7 +397,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#network for networks. + * Output only. [Output Only] Type of the resource. Always compute#network for networks. * @param kind kind or {@code null} for none */ public Network setKind(java.lang.String kind) { @@ -510,7 +513,7 @@ public Network setParams(NetworkParams params) { } /** - * [Output Only] A list of network peerings for the resource. + * Output only. [Output Only] A list of network peerings for the resource. * @return value or {@code null} for none */ public java.util.List getPeerings() { @@ -518,7 +521,7 @@ public java.util.List getPeerings() { } /** - * [Output Only] A list of network peerings for the resource. + * Output only. [Output Only] A list of network peerings for the resource. * @param peerings peerings or {@code null} for none */ public Network setPeerings(java.util.List peerings) { @@ -563,7 +566,7 @@ public Network setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -571,7 +574,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Network setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java index eecbab8e189..5320d7e3f2c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java @@ -30,8 +30,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJson { /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * Output only. [Output Only] An array of connections for all the producers connected to this + * network attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String connectionPreference; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,15 +66,15 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,10 +92,10 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String name; /** - * [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is - * inferred by fetching the network of the first subnetwork associated. Because it is required - * that all the subnetworks must be from the same network, it is assured that the Network - * Attachment belongs to the same network as all the subnetworks. + * Output only. [Output Only] The URL of the network which the Network Attachment belongs to. + * Practically it is inferred by fetching the network of the first subnetwork associated. Because + * it is required that all the subnetworks must be from the same network, it is assured that the + * Network Attachment belongs to the same network as all the subnetworks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -118,23 +118,23 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List producerRejectLists; /** - * [Output Only] URL of the region where the network attachment resides. This field applies only - * to the region resource. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. + * Output only. [Output Only] URL of the region where the network attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,8 +149,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List subnetworks; /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * Output only. [Output Only] An array of connections for all the producers connected to this + * network attachment. * @return value or {@code null} for none */ public java.util.List getConnectionEndpoints() { @@ -158,8 +158,8 @@ public java.util.List getConnectionEndpoints } /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * Output only. [Output Only] An array of connections for all the producers connected to this + * network attachment. * @param connectionEndpoints connectionEndpoints or {@code null} for none */ public NetworkAttachment setConnectionEndpoints(java.util.List connectionEndpoints) { @@ -183,7 +183,7 @@ public NetworkAttachment setConnectionPreference(java.lang.String connectionPref } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -191,7 +191,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,8 +266,8 @@ public NetworkAttachment encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -275,8 +275,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public NetworkAttachment setId(java.math.BigInteger id) { @@ -285,7 +285,7 @@ public NetworkAttachment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -293,7 +293,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * @param kind kind or {@code null} for none */ public NetworkAttachment setKind(java.lang.String kind) { @@ -327,10 +327,10 @@ public NetworkAttachment setName(java.lang.String name) { } /** - * [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is - * inferred by fetching the network of the first subnetwork associated. Because it is required - * that all the subnetworks must be from the same network, it is assured that the Network - * Attachment belongs to the same network as all the subnetworks. + * Output only. [Output Only] The URL of the network which the Network Attachment belongs to. + * Practically it is inferred by fetching the network of the first subnetwork associated. Because + * it is required that all the subnetworks must be from the same network, it is assured that the + * Network Attachment belongs to the same network as all the subnetworks. * @return value or {@code null} for none */ public java.lang.String getNetwork() { @@ -338,10 +338,10 @@ public java.lang.String getNetwork() { } /** - * [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is - * inferred by fetching the network of the first subnetwork associated. Because it is required - * that all the subnetworks must be from the same network, it is assured that the Network - * Attachment belongs to the same network as all the subnetworks. + * Output only. [Output Only] The URL of the network which the Network Attachment belongs to. + * Practically it is inferred by fetching the network of the first subnetwork associated. Because + * it is required that all the subnetworks must be from the same network, it is assured that the + * Network Attachment belongs to the same network as all the subnetworks. * @param network network or {@code null} for none */ public NetworkAttachment setNetwork(java.lang.String network) { @@ -388,9 +388,9 @@ public NetworkAttachment setProducerRejectLists(java.util.List } /** - * [Output Only] URL of the region where the network attachment resides. This field applies only - * to the region resource. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. + * Output only. [Output Only] URL of the region where the network attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -398,9 +398,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the network attachment resides. This field applies only - * to the region resource. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. + * Output only. [Output Only] URL of the region where the network attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. * @param region region or {@code null} for none */ public NetworkAttachment setRegion(java.lang.String region) { @@ -409,7 +409,7 @@ public NetworkAttachment setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -417,7 +417,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkAttachment setSelfLink(java.lang.String selfLink) { @@ -426,7 +426,7 @@ public NetworkAttachment setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -434,7 +434,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkAttachment setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java index 817d984f250..6fb5a85ddbf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java @@ -75,7 +75,8 @@ public final class NetworkAttachmentConnectedEndpoint extends com.google.api.cli private java.lang.String subnetwork; /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was + * allocated from. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -190,7 +191,8 @@ public NetworkAttachmentConnectedEndpoint setSubnetwork(java.lang.String subnetw } /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was + * allocated from. * @return value or {@code null} for none */ public java.lang.String getSubnetworkCidrRange() { @@ -198,7 +200,8 @@ public java.lang.String getSubnetworkCidrRange() { } /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was + * allocated from. * @param subnetworkCidrRange subnetworkCidrRange or {@code null} for none */ public NetworkAttachmentConnectedEndpoint setSubnetworkCidrRange(java.lang.String subnetworkCidrRange) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java index 719c606976c..013691466fe 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java @@ -30,7 +30,7 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,14 +56,15 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * The value may be {@code null}. */ @@ -82,8 +83,8 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String name; /** - * [Output Only] URL of the region where the resource resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,21 +99,21 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String securityPolicy; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLinkWithId; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -120,7 +121,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEdgeSecurityService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -211,7 +212,8 @@ public NetworkEdgeSecurityService encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -219,7 +221,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public NetworkEdgeSecurityService setId(java.math.BigInteger id) { @@ -228,7 +231,7 @@ public NetworkEdgeSecurityService setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @return value or {@code null} for none */ @@ -237,7 +240,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @param kind kind or {@code null} for none */ @@ -272,8 +275,8 @@ public NetworkEdgeSecurityService setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the resource resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -281,8 +284,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the resource resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. * @param region region or {@code null} for none */ public NetworkEdgeSecurityService setRegion(java.lang.String region) { @@ -310,7 +313,7 @@ public NetworkEdgeSecurityService setSecurityPolicy(java.lang.String securityPol } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -318,7 +321,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { @@ -327,7 +330,7 @@ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -335,7 +338,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkEdgeSecurityService setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java index 1fa727e85f7..2817e613104 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java @@ -50,8 +50,9 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#networkEdgeSecurityServiceAggregatedList for - * lists of Network Edge Security Services. + * Output only. [Output Only] Type of resource. + * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security + * Services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +69,14 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,9 @@ public NetworkEdgeSecurityServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEdgeSecurityServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java index 8f5518ca15c..b2aae12353c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java @@ -23,6 +23,12 @@ * reachable, and where they are located. For more information about using NEGs for different use * cases, seeNetwork endpoint groups overview. * + * 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 + * *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json @@ -65,7 +71,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupCloudRun cloudRun; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,15 +95,16 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network + * endpoint group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,21 +156,21 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String pscTargetService; /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * Output only. [Output Only] The URL of theregion where the network endpoint group is located. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output only] Number of network endpoints in the network endpoint group. + * Output only. [Output only] Number of network endpoints in the network endpoint group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -177,7 +184,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String subnetwork; /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -258,7 +265,7 @@ public NetworkEndpointGroup setCloudRun(NetworkEndpointGroupCloudRun cloudRun) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -266,7 +273,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEndpointGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -315,7 +322,8 @@ public NetworkEndpointGroup setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -323,7 +331,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public NetworkEndpointGroup setId(java.math.BigInteger id) { @@ -332,8 +341,8 @@ public NetworkEndpointGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network + * endpoint group. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -341,8 +350,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network + * endpoint group. * @param kind kind or {@code null} for none */ public NetworkEndpointGroup setKind(java.lang.String kind) { @@ -456,7 +465,7 @@ public NetworkEndpointGroup setPscTargetService(java.lang.String pscTargetServic } /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * Output only. [Output Only] The URL of theregion where the network endpoint group is located. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -464,7 +473,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * Output only. [Output Only] The URL of theregion where the network endpoint group is located. * @param region region or {@code null} for none */ public NetworkEndpointGroup setRegion(java.lang.String region) { @@ -473,7 +482,7 @@ public NetworkEndpointGroup setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -481,7 +490,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { @@ -490,7 +499,7 @@ public NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output only] Number of network endpoints in the network endpoint group. + * Output only. [Output only] Number of network endpoints in the network endpoint group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -498,7 +507,7 @@ public java.lang.Integer getSize() { } /** - * [Output only] Number of network endpoints in the network endpoint group. + * Output only. [Output only] Number of network endpoints in the network endpoint group. * @param size size or {@code null} for none */ public NetworkEndpointGroup setSize(java.lang.Integer size) { @@ -524,7 +533,7 @@ public NetworkEndpointGroup setSubnetwork(java.lang.String subnetwork) { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -532,7 +541,7 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. * @param zone zone or {@code null} for none */ public NetworkEndpointGroup setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java index d257a2c16a2..a2c8acc31ba 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java @@ -44,8 +44,9 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.util.Map items; /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupAggregatedList for - * aggregated lists of network endpoint groups. + * Output only. [Output Only] The resource type, which is + * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint + * groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +63,14 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,9 @@ public NetworkEndpointGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEndpointGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java index a9e2537c619..8d6eaa31913 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java @@ -50,8 +50,8 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList + * for network endpoint group lists. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public NetworkEndpointGroupList setItems(java.util.List it } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList + * for network endpoint group lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList + * for network endpoint group lists. * @param kind kind or {@code null} for none */ public NetworkEndpointGroupList setKind(java.lang.String kind) { @@ -158,7 +158,7 @@ public NetworkEndpointGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public NetworkEndpointGroupList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java index 88ee04444bb..294c37e562a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java @@ -31,8 +31,8 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.json.GenericJson { /** - * [Output Only] Address allocated from given subnetwork for PSC. This IP address acts as a VIP - * for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. + * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address + * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,22 +47,22 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.jso private java.lang.Integer producerPort; /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger pscConnectionId; /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String pscConnectionStatus; /** - * [Output Only] Address allocated from given subnetwork for PSC. This IP address acts as a VIP - * for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. + * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address + * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. * @return value or {@code null} for none */ public java.lang.String getConsumerPscAddress() { @@ -70,8 +70,8 @@ public java.lang.String getConsumerPscAddress() { } /** - * [Output Only] Address allocated from given subnetwork for PSC. This IP address acts as a VIP - * for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. + * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address + * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. * @param consumerPscAddress consumerPscAddress or {@code null} for none */ public NetworkEndpointGroupPscData setConsumerPscAddress(java.lang.String consumerPscAddress) { @@ -99,7 +99,7 @@ public NetworkEndpointGroupPscData setProducerPort(java.lang.Integer producerPor } /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. * @return value or {@code null} for none */ public java.math.BigInteger getPscConnectionId() { @@ -107,7 +107,7 @@ public java.math.BigInteger getPscConnectionId() { } /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. * @param pscConnectionId pscConnectionId or {@code null} for none */ public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscConnectionId) { @@ -116,7 +116,7 @@ public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscCo } /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. * @return value or {@code null} for none */ public java.lang.String getPscConnectionStatus() { @@ -124,7 +124,7 @@ public java.lang.String getPscConnectionStatus() { } /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. * @param pscConnectionStatus pscConnectionStatus or {@code null} for none */ public NetworkEndpointGroupPscData setPscConnectionStatus(java.lang.String pscConnectionStatus) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java index cd49337f505..b1a4a35294e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java @@ -44,7 +44,7 @@ public final class NetworkEndpointGroupsListNetworkEndpoints extends com.google. private java.util.List items; /** - * [Output Only] The resource type, which is + * Output only. [Output Only] The resource type, which is * alwayscompute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in * the specified network endpoint group. * The value may be {@code null}. @@ -104,7 +104,7 @@ public NetworkEndpointGroupsListNetworkEndpoints setItems(java.util.List getNetworkEndpointGroups() { @@ -59,7 +59,7 @@ public java.util.List getNetworkEndpointGroups() { } /** - * [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. * @param networkEndpointGroups networkEndpointGroups or {@code null} for none */ public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List networkEndpointGroups) { @@ -68,8 +68,8 @@ public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List getHealths() { } /** - * [Output only] The health status of network endpoint. + * Output only. [Output only] The health status of network endpoint. * * Optional. Displayed only if the network endpoint has centralized health checking configured. * @param healths healths or {@code null} for none @@ -73,7 +73,7 @@ public NetworkEndpointWithHealthStatus setHealths(java.util.List getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkFirewallPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkInterface.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkInterface.java index 3349ccf440f..3ee1cfd716e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkInterface.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkInterface.java @@ -58,6 +58,14 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs com.google.api.client.util.Data.nullOf(AliasIpRange.class); } + /** + * Optional. If true, DNS resolution will be enabled over this interface. Only valid with + * network_attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableVpcScopedDns; + /** * Fingerprint hash of contents stored in this network interface. This field will be ignored when * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided @@ -99,8 +107,8 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs } /** - * [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the - * Internet. This field is always inherited from its subnetwork. + * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed + * from the Internet. This field is always inherited from its subnetwork. * * Valid only if stackType is IPV4_IPV6. * The value may be {@code null}. @@ -118,7 +126,8 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs private java.lang.String ipv6Address; /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network + * interfaces. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -258,6 +267,25 @@ public NetworkInterface setAliasIpRanges(java.util.List aliasIpRan return this; } + /** + * Optional. If true, DNS resolution will be enabled over this interface. Only valid with + * network_attachment. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableVpcScopedDns() { + return enableVpcScopedDns; + } + + /** + * Optional. If true, DNS resolution will be enabled over this interface. Only valid with + * network_attachment. + * @param enableVpcScopedDns enableVpcScopedDns or {@code null} for none + */ + public NetworkInterface setEnableVpcScopedDns(java.lang.Boolean enableVpcScopedDns) { + this.enableVpcScopedDns = enableVpcScopedDns; + return this; + } + /** * Fingerprint hash of contents stored in this network interface. This field will be ignored when * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided @@ -373,8 +401,8 @@ public NetworkInterface setIpv6AccessConfigs(java.util.List ipv6Ac } /** - * [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the - * Internet. This field is always inherited from its subnetwork. + * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed + * from the Internet. This field is always inherited from its subnetwork. * * Valid only if stackType is IPV4_IPV6. * @return value or {@code null} for none @@ -384,8 +412,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the - * Internet. This field is always inherited from its subnetwork. + * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed + * from the Internet. This field is always inherited from its subnetwork. * * Valid only if stackType is IPV4_IPV6. * @param ipv6AccessType ipv6AccessType or {@code null} for none @@ -417,7 +445,8 @@ public NetworkInterface setIpv6Address(java.lang.String ipv6Address) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network + * interfaces. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -425,7 +454,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network + * interfaces. * @param kind kind or {@code null} for none */ public NetworkInterface setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkList.java index 161aace29df..e4981ce773e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkList.java @@ -50,7 +50,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public NetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. * @param kind kind or {@code null} for none */ public NetworkList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public NetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public NetworkList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkPeering.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkPeering.java index 5619d58fdca..084c972666c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkPeering.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkPeering.java @@ -42,7 +42,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.Boolean autoCreateRoutes; /** - * [Output Only] The effective state of the peering connection as a whole. + * Output only. [Output Only] The effective state of the peering connection as a whole. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +110,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,15 +125,14 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String stackType; /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * [Output Only] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -171,7 +170,7 @@ public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { } /** - * [Output Only] The effective state of the peering connection as a whole. + * Output only. [Output Only] The effective state of the peering connection as a whole. * @return value or {@code null} for none */ public NetworkPeeringConnectionStatus getConnectionStatus() { @@ -179,7 +178,7 @@ public NetworkPeeringConnectionStatus getConnectionStatus() { } /** - * [Output Only] The effective state of the peering connection as a whole. + * Output only. [Output Only] The effective state of the peering connection as a whole. * @param connectionStatus connectionStatus or {@code null} for none */ public NetworkPeering setConnectionStatus(NetworkPeeringConnectionStatus connectionStatus) { @@ -331,7 +330,7 @@ public NetworkPeering setNetwork(java.lang.String network) { } /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. * @return value or {@code null} for none */ public java.lang.Integer getPeerMtu() { @@ -339,7 +338,7 @@ public java.lang.Integer getPeerMtu() { } /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. * @param peerMtu peerMtu or {@code null} for none */ public NetworkPeering setPeerMtu(java.lang.Integer peerMtu) { @@ -367,8 +366,7 @@ public NetworkPeering setStackType(java.lang.String stackType) { } /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -376,8 +374,7 @@ public java.lang.String getState() { } /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * @param state state or {@code null} for none */ public NetworkPeering setState(java.lang.String state) { @@ -386,7 +383,7 @@ public NetworkPeering setState(java.lang.String state) { } /** - * [Output Only] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * @return value or {@code null} for none */ public java.lang.String getStateDetails() { @@ -394,7 +391,7 @@ public java.lang.String getStateDetails() { } /** - * [Output Only] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * @param stateDetails stateDetails or {@code null} for none */ public NetworkPeering setStateDetails(java.lang.String stateDetails) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfile.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfile.java index 1eaec17410c..0e3cfd5fd64 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfile.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfile.java @@ -30,77 +30,79 @@ public final class NetworkProfile extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] An optional description of this resource. + * Output only. [Output Only] An optional description of this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * The value may be {@code null}. */ @com.google.api.client.util.Key private NetworkProfileNetworkFeatures features; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network + * profiles. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * The value may be {@code null}. */ @com.google.api.client.util.Key private NetworkProfileLocation location; /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * The value may be {@code null}. */ @com.google.api.client.util.Key private NetworkProfileProfileType profileType; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLinkWithId; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -108,7 +110,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { @@ -117,7 +119,7 @@ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] An optional description of this resource. + * Output only. [Output Only] An optional description of this resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -125,7 +127,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional description of this resource. + * Output only. [Output Only] An optional description of this resource. * @param description description or {@code null} for none */ public NetworkProfile setDescription(java.lang.String description) { @@ -134,7 +136,7 @@ public NetworkProfile setDescription(java.lang.String description) { } /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * @return value or {@code null} for none */ public NetworkProfileNetworkFeatures getFeatures() { @@ -142,7 +144,7 @@ public NetworkProfileNetworkFeatures getFeatures() { } /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * @param features features or {@code null} for none */ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { @@ -151,7 +153,8 @@ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -159,7 +162,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public NetworkProfile setId(java.math.BigInteger id) { @@ -168,7 +172,8 @@ public NetworkProfile setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network + * profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -176,7 +181,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network + * profiles. * @param kind kind or {@code null} for none */ public NetworkProfile setKind(java.lang.String kind) { @@ -185,7 +191,7 @@ public NetworkProfile setKind(java.lang.String kind) { } /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * @return value or {@code null} for none */ public NetworkProfileLocation getLocation() { @@ -193,7 +199,7 @@ public NetworkProfileLocation getLocation() { } /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * @param location location or {@code null} for none */ public NetworkProfile setLocation(NetworkProfileLocation location) { @@ -202,7 +208,7 @@ public NetworkProfile setLocation(NetworkProfileLocation location) { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -210,7 +216,7 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @param name name or {@code null} for none */ public NetworkProfile setName(java.lang.String name) { @@ -219,7 +225,7 @@ public NetworkProfile setName(java.lang.String name) { } /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * @return value or {@code null} for none */ public NetworkProfileProfileType getProfileType() { @@ -227,7 +233,7 @@ public NetworkProfileProfileType getProfileType() { } /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * @param profileType profileType or {@code null} for none */ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { @@ -236,7 +242,7 @@ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -244,7 +250,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkProfile setSelfLink(java.lang.String selfLink) { @@ -253,7 +259,7 @@ public NetworkProfile setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -261,7 +267,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkProfile setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java index 647785b46c6..243b31e663f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java @@ -36,6 +36,13 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @com.google.api.client.util.Key private java.util.List addressPurposes; + /** + * Specifies whether address creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowAddressCreation; + /** * Specifies whether alias IP ranges (and secondary address ranges) are allowed. * The value may be {@code null}. @@ -86,6 +93,13 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @com.google.api.client.util.Key private java.lang.String allowExternalIpAccess; + /** + * Specifies whether firewall policy can be attached to the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowFirewallPolicy; + /** * Specifies whether Cloud Interconnect creation is allowed. * The value may be {@code null}. @@ -114,6 +128,13 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @com.google.api.client.util.Key private java.lang.String allowMultiNicInSameNetwork; + /** + * Specifies whether multi-nic in the same subnetwork is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowMultiNicInSameSubnetwork; + /** * Specifies whether multicast is allowed. * The value may be {@code null}. @@ -177,6 +198,20 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @com.google.api.client.util.Key private java.lang.String allowSubInterfaces; + /** + * Specifies whether subnetwork creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowSubnetworkCreation; + + /** + * Specifies whether VPC firewall rules can be created under the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowVpcFirewallRules; + /** * Specifies whether VPC peering is allowed. * The value may be {@code null}. @@ -191,6 +226,12 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @com.google.api.client.util.Key private java.lang.String allowVpn; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewallPolicyTypes; + /** * If set, limits the interface types that the network supports. If empty, all interface types are * supported. @@ -206,6 +247,20 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @com.google.api.client.util.Key private java.lang.String multicast; + /** + * Specifies a predefined internal IPv6 range for the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String predefinedNetworkInternalIpv6Range; + + /** + * Predefined subnetwork ranges for the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List predefinedSubnetworkRanges; + /** * Specifies which subnetwork purposes are supported. * The value may be {@code null}. @@ -221,14 +276,14 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j private java.util.List subnetStackTypes; /** - * Specifies which subnetwork purposes are supported. + * Output only. Specifies which subnetwork purposes are supported. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List subnetworkPurposes; /** - * Specifies which subnetwork stack types are supported. + * Output only. Specifies which subnetwork stack types are supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -258,6 +313,23 @@ public NetworkProfileNetworkFeatures setAddressPurposes(java.util.List getFirewallPolicyTypes() { + return firewallPolicyTypes; + } + + /** + * @param firewallPolicyTypes firewallPolicyTypes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setFirewallPolicyTypes(java.util.List firewallPolicyTypes) { + this.firewallPolicyTypes = firewallPolicyTypes; + return this; + } + /** * If set, limits the interface types that the network supports. If empty, all interface types are * supported. @@ -670,6 +825,40 @@ public NetworkProfileNetworkFeatures setMulticast(java.lang.String multicast) { return this; } + /** + * Specifies a predefined internal IPv6 range for the network. + * @return value or {@code null} for none + */ + public java.lang.String getPredefinedNetworkInternalIpv6Range() { + return predefinedNetworkInternalIpv6Range; + } + + /** + * Specifies a predefined internal IPv6 range for the network. + * @param predefinedNetworkInternalIpv6Range predefinedNetworkInternalIpv6Range or {@code null} for none + */ + public NetworkProfileNetworkFeatures setPredefinedNetworkInternalIpv6Range(java.lang.String predefinedNetworkInternalIpv6Range) { + this.predefinedNetworkInternalIpv6Range = predefinedNetworkInternalIpv6Range; + return this; + } + + /** + * Predefined subnetwork ranges for the network. + * @return value or {@code null} for none + */ + public java.util.List getPredefinedSubnetworkRanges() { + return predefinedSubnetworkRanges; + } + + /** + * Predefined subnetwork ranges for the network. + * @param predefinedSubnetworkRanges predefinedSubnetworkRanges or {@code null} for none + */ + public NetworkProfileNetworkFeatures setPredefinedSubnetworkRanges(java.util.List predefinedSubnetworkRanges) { + this.predefinedSubnetworkRanges = predefinedSubnetworkRanges; + return this; + } + /** * Specifies which subnetwork purposes are supported. * @return value or {@code null} for none @@ -705,7 +894,7 @@ public NetworkProfileNetworkFeatures setSubnetStackTypes(java.util.List getSubnetworkPurposes() { @@ -713,7 +902,7 @@ public java.util.List getSubnetworkPurposes() { } /** - * Specifies which subnetwork purposes are supported. + * Output only. Specifies which subnetwork purposes are supported. * @param subnetworkPurposes subnetworkPurposes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List subnetworkPurposes) { @@ -722,7 +911,7 @@ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List getSubnetworkStackTypes() { @@ -730,7 +919,7 @@ public java.util.List getSubnetworkStackTypes() { } /** - * Specifies which subnetwork stack types are supported. + * Output only. Specifies which subnetwork stack types are supported. * @param subnetworkStackTypes subnetworkStackTypes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkStackTypes(java.util.List subnetworkStackTypes) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java new file mode 100644 index 00000000000..469b5f50bc5 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for NetworkProfileNetworkFeaturesPredefinedSubnetworkRange. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class NetworkProfileNetworkFeaturesPredefinedSubnetworkRange extends com.google.api.client.json.GenericJson { + + /** + * The IPv6 range of the predefined subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Range; + + /** + * The naming prefix of the predefined subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String namePrefix; + + /** + * The IPv6 range of the predefined subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Range() { + return ipv6Range; + } + + /** + * The IPv6 range of the predefined subnetwork. + * @param ipv6Range ipv6Range or {@code null} for none + */ + public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange setIpv6Range(java.lang.String ipv6Range) { + this.ipv6Range = ipv6Range; + return this; + } + + /** + * The naming prefix of the predefined subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getNamePrefix() { + return namePrefix; + } + + /** + * The naming prefix of the predefined subnetwork. + * @param namePrefix namePrefix or {@code null} for none + */ + public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange setNamePrefix(java.lang.String namePrefix) { + this.namePrefix = namePrefix; + return this; + } + + @Override + public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange set(String fieldName, Object value) { + return (NetworkProfileNetworkFeaturesPredefinedSubnetworkRange) super.set(fieldName, value); + } + + @Override + public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange clone() { + return (NetworkProfileNetworkFeaturesPredefinedSubnetworkRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java index b045ed464b2..d126fc2f0bb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java @@ -56,7 +56,8 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +74,15 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public NetworkProfilesListResponse setItems(java.util.List items } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * @param kind kind or {@code null} for none */ public NetworkProfilesListResponse setKind(java.lang.String kind) { @@ -183,7 +187,7 @@ public NetworkProfilesListResponse setNextPageToken(java.lang.String nextPageTok } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { @@ -200,7 +204,8 @@ public NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public NetworkProfilesListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java index 390f610176d..195b392152e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java @@ -56,14 +56,14 @@ public final class NetworkRoutingConfig extends com.google.api.client.json.Gener private java.lang.String bgpInterRegionCost; /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * Output only. [Output Only] Effective value of the bgp_always_compare_med field. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean effectiveBgpAlwaysCompareMed; /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,7 +137,7 @@ public NetworkRoutingConfig setBgpInterRegionCost(java.lang.String bgpInterRegio } /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * Output only. [Output Only] Effective value of the bgp_always_compare_med field. * @return value or {@code null} for none */ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { @@ -145,7 +145,7 @@ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { } /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * Output only. [Output Only] Effective value of the bgp_always_compare_med field. * @param effectiveBgpAlwaysCompareMed effectiveBgpAlwaysCompareMed or {@code null} for none */ public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean effectiveBgpAlwaysCompareMed) { @@ -154,7 +154,7 @@ public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean ef } /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. * @return value or {@code null} for none */ public java.lang.String getEffectiveBgpInterRegionCost() { @@ -162,7 +162,7 @@ public java.lang.String getEffectiveBgpInterRegionCost() { } /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. * @param effectiveBgpInterRegionCost effectiveBgpInterRegionCost or {@code null} for none */ public NetworkRoutingConfig setEffectiveBgpInterRegionCost(java.lang.String effectiveBgpInterRegionCost) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 87552222ac0..57b26100431 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] The packet mirroring rules that apply to the network. + * Output only. [Output Only] The packet mirroring rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,22 +79,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String shortName; /** - * [Output Only] The type of the firewall policy. + * Output only. [Output Only] The type of the firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -101,8 +102,8 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. * @param displayName displayName or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { @@ -111,7 +112,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayNa } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -119,7 +120,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -128,7 +129,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java } /** - * [Output Only] The packet mirroring rules that apply to the network. + * Output only. [Output Only] The packet mirroring rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -136,7 +137,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output Only] The packet mirroring rules that apply to the network. + * Output only. [Output Only] The packet mirroring rules that apply to the network. * @param packetMirroringRules packetMirroringRules or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { @@ -145,7 +146,8 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMir } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -153,7 +155,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * @param priority priority or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { @@ -179,7 +182,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(jav } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -187,7 +190,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @param shortName shortName or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { @@ -196,7 +199,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName } /** - * [Output Only] The type of the firewall policy. + * Output only. [Output Only] The type of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -204,7 +207,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. + * Output only. [Output Only] The type of the firewall policy. * @param type type or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroup.java index 88694064268..7b34e2e9405 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroup.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroup.java @@ -42,7 +42,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private NodeGroupAutoscalingPolicy autoscalingPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,15 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -126,7 +127,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String nodeTemplate; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -140,7 +141,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private ShareSettings shareSettings; /** - * [Output Only] The total number of nodes in the node group. + * Output only. [Output Only] The total number of nodes in the node group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -153,7 +154,8 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * Output only. [Output Only] The name of the zone where the node group resides, such as us- + * central1-a. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -177,7 +179,7 @@ public NodeGroup setAutoscalingPolicy(NodeGroupAutoscalingPolicy autoscalingPoli } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -185,7 +187,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -254,7 +256,8 @@ public NodeGroup encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -262,7 +265,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public NodeGroup setId(java.math.BigInteger id) { @@ -271,7 +275,7 @@ public NodeGroup setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -279,7 +283,7 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. * @param kind kind or {@code null} for none */ public NodeGroup setKind(java.lang.String kind) { @@ -406,7 +410,7 @@ public NodeGroup setNodeTemplate(java.lang.String nodeTemplate) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -414,7 +418,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeGroup setSelfLink(java.lang.String selfLink) { @@ -440,7 +444,7 @@ public NodeGroup setShareSettings(ShareSettings shareSettings) { } /** - * [Output Only] The total number of nodes in the node group. + * Output only. [Output Only] The total number of nodes in the node group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -448,7 +452,7 @@ public java.lang.Integer getSize() { } /** - * [Output Only] The total number of nodes in the node group. + * Output only. [Output Only] The total number of nodes in the node group. * @param size size or {@code null} for none */ public NodeGroup setSize(java.lang.Integer size) { @@ -472,7 +476,8 @@ public NodeGroup setStatus(java.lang.String status) { } /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * Output only. [Output Only] The name of the zone where the node group resides, such as us- + * central1-a. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -480,7 +485,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * Output only. [Output Only] The name of the zone where the node group resides, such as us- + * central1-a. * @param zone zone or {@code null} for none */ public NodeGroup setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java index 8cd8b43da57..edaad394eeb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for aggregated lists of - * node groups. + * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for + * aggregated lists of node groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupList.java index b9a428b708a..238b1f18114 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupList.java @@ -50,7 +50,8 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node + * groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeGroupList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node + * groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node + * groups. * @param kind kind or {@code null} for none */ public NodeGroupList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public NodeGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public NodeGroupList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java index 9abff4da59c..e316a46ff52 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java @@ -31,8 +31,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json.GenericJson { /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,8 +47,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json private java.lang.String startTime; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. * @return value or {@code null} for none */ public Duration getMaintenanceDuration() { @@ -56,8 +56,8 @@ public Duration getMaintenanceDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. * @param maintenanceDuration maintenanceDuration or {@code null} for none */ public NodeGroupMaintenanceWindow setMaintenanceDuration(Duration maintenanceDuration) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java index 93ab16ab3e6..b1af48a0a34 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java @@ -43,7 +43,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +104,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String nodeType; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,14 +131,14 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String status; /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceConsumptionInfo totalResources; /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,7 +162,7 @@ public NodeGroupNode setAccelerators(java.util.List accelerat } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumedResources() { @@ -170,7 +170,7 @@ public InstanceConsumptionInfo getConsumedResources() { } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * @param consumedResources consumedResources or {@code null} for none */ public NodeGroupNode setConsumedResources(InstanceConsumptionInfo consumedResources) { @@ -213,7 +213,7 @@ public NodeGroupNode setDisks(java.util.List disks) { } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * @return value or {@code null} for none */ public java.util.List getInstanceConsumptionData() { @@ -221,7 +221,7 @@ public java.util.List getInstanceConsumptionData() { } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * @param instanceConsumptionData instanceConsumptionData or {@code null} for none */ public NodeGroupNode setInstanceConsumptionData(java.util.List instanceConsumptionData) { @@ -281,7 +281,7 @@ public NodeGroupNode setNodeType(java.lang.String nodeType) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -289,7 +289,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public NodeGroupNode setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -347,7 +347,7 @@ public NodeGroupNode setStatus(java.lang.String status) { } /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * @return value or {@code null} for none */ public InstanceConsumptionInfo getTotalResources() { @@ -355,7 +355,7 @@ public InstanceConsumptionInfo getTotalResources() { } /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * @param totalResources totalResources or {@code null} for none */ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { @@ -364,7 +364,7 @@ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { } /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * @return value or {@code null} for none */ public UpcomingMaintenance getUpcomingMaintenance() { @@ -372,7 +372,7 @@ public UpcomingMaintenance getUpcomingMaintenance() { } /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * @param upcomingMaintenance upcomingMaintenance or {@code null} for none */ public NodeGroupNode setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java index b983f28193d..699a60fca23 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java @@ -30,7 +30,7 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,39 +50,39 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.Generi } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for + * the list of nodes in the specified node group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public NodeGroupsListNodes setId(java.lang.String id) { @@ -116,8 +116,8 @@ public NodeGroupsListNodes setItems(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for + * the list of nodes in the specified node group. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for + * the list of nodes in the specified node group. * @param kind kind or {@code null} for none */ public NodeGroupsListNodes setKind(java.lang.String kind) { @@ -135,10 +135,10 @@ public NodeGroupsListNodes setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public NodeGroupsListNodes setNextPageToken(java.lang.String nextPageToken) { @@ -158,7 +158,7 @@ public NodeGroupsListNodes setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public NodeGroupsListNodes setWarning(Warning warning) { @@ -202,7 +202,7 @@ public NodeGroupsListNodes clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplate.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplate.java index 390be988f05..49172d7c01c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplate.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplate.java @@ -52,7 +52,7 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private java.lang.String cpuOvercommitType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,14 +78,16 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node + * templates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -124,14 +126,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private NodeTemplateNodeTypeFlexibility nodeTypeFlexibility; /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * Output only. [Output Only] The name of the region where the node template resides, such as us- + * central1. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,15 +152,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private ServerBinding serverBinding; /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * Output only. [Output Only] The status of the node template. One of the following + * values:CREATING, READY, and DELETING. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +199,7 @@ public NodeTemplate setCpuOvercommitType(java.lang.String cpuOvercommitType) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -204,7 +207,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeTemplate setCreationTimestamp(java.lang.String creationTimestamp) { @@ -245,7 +248,8 @@ public NodeTemplate setDisks(java.util.List disks) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -253,7 +257,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public NodeTemplate setId(java.math.BigInteger id) { @@ -262,7 +267,8 @@ public NodeTemplate setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node + * templates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -270,7 +276,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node + * templates. * @param kind kind or {@code null} for none */ public NodeTemplate setKind(java.lang.String kind) { @@ -355,7 +362,8 @@ public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeT } /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * Output only. [Output Only] The name of the region where the node template resides, such as us- + * central1. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -363,7 +371,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * Output only. [Output Only] The name of the region where the node template resides, such as us- + * central1. * @param region region or {@code null} for none */ public NodeTemplate setRegion(java.lang.String region) { @@ -372,7 +381,7 @@ public NodeTemplate setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -380,7 +389,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeTemplate setSelfLink(java.lang.String selfLink) { @@ -414,8 +423,8 @@ public NodeTemplate setServerBinding(ServerBinding serverBinding) { } /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * Output only. [Output Only] The status of the node template. One of the following + * values:CREATING, READY, and DELETING. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -423,8 +432,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * Output only. [Output Only] The status of the node template. One of the following + * values:CREATING, READY, and DELETING. * @param status status or {@code null} for none */ public NodeTemplate setStatus(java.lang.String status) { @@ -433,7 +442,7 @@ public NodeTemplate setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -441,7 +450,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @param statusMessage statusMessage or {@code null} for none */ public NodeTemplate setStatusMessage(java.lang.String statusMessage) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java index 99eb552c0f4..8108caade4f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for aggregated lists of - * node templates. + * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for + * aggregated lists of node templates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTemplateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTemplateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java index 4dec3311cd1..975a9ec6bb3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java @@ -50,7 +50,8 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node + * templates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeTemplateList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node + * templates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node + * templates. * @param kind kind or {@code null} for none */ public NodeTemplateList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public NodeTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public NodeTemplateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeType.java index 0908c6c1e0a..f9f15a051ae 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeType.java @@ -77,7 +77,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,7 +91,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.Integer localSsdGb; /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * Output only. [Output Only] Maximum number of VMs that can be created for this node type. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,14 +112,15 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * Output only. [Output Only] The name of the zone where the node type resides, such as us- + * central1-a. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -228,7 +229,7 @@ public NodeType setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -236,7 +237,7 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. * @param kind kind or {@code null} for none */ public NodeType setKind(java.lang.String kind) { @@ -262,7 +263,7 @@ public NodeType setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * Output only. [Output Only] Maximum number of VMs that can be created for this node type. * @return value or {@code null} for none */ public java.lang.Integer getMaxVms() { @@ -270,7 +271,7 @@ public java.lang.Integer getMaxVms() { } /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * Output only. [Output Only] Maximum number of VMs that can be created for this node type. * @param maxVms maxVms or {@code null} for none */ public NodeType setMaxVms(java.lang.Integer maxVms) { @@ -313,7 +314,7 @@ public NodeType setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -321,7 +322,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeType setSelfLink(java.lang.String selfLink) { @@ -330,7 +331,8 @@ public NodeType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * Output only. [Output Only] The name of the zone where the node type resides, such as us- + * central1-a. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -338,7 +340,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * Output only. [Output Only] The name of the zone where the node type resides, such as us- + * central1-a. * @param zone zone or {@code null} for none */ public NodeType setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java index 2985c263e70..b5f8aa4ddf8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated lists of - * node types. + * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated + * lists of node types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeList.java index 499df967122..87afc1e14e8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeList.java @@ -50,7 +50,8 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node + * types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node + * types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node + * types. * @param kind kind or {@code null} for none */ public NodeTypeList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public NodeTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public NodeTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java index df4ed94b238..29423ff6380 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java @@ -35,7 +35,7 @@ public final class NotificationEndpoint extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,15 +56,16 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private NotificationEndpointGrpcSettings grpcSettings; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,23 +83,23 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private java.lang.String name; /** - * [Output Only] URL of the region where the notification endpoint resides. This field applies - * only to the regional resource. You must specify this field as part of the HTTP request URL. It - * is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the notification endpoint resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NotificationEndpoint setCreationTimestamp(java.lang.String creationTimestamp) { @@ -149,7 +150,8 @@ public NotificationEndpoint setGrpcSettings(NotificationEndpointGrpcSettings grp } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -157,7 +159,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public NotificationEndpoint setId(java.math.BigInteger id) { @@ -166,8 +169,8 @@ public NotificationEndpoint setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -175,8 +178,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. * @param kind kind or {@code null} for none */ public NotificationEndpoint setKind(java.lang.String kind) { @@ -210,9 +213,9 @@ public NotificationEndpoint setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the notification endpoint resides. This field applies - * only to the regional resource. You must specify this field as part of the HTTP request URL. It - * is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the notification endpoint resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -220,9 +223,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the notification endpoint resides. This field applies - * only to the regional resource. You must specify this field as part of the HTTP request URL. It - * is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the notification endpoint resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. * @param region region or {@code null} for none */ public NotificationEndpoint setRegion(java.lang.String region) { @@ -231,7 +234,7 @@ public NotificationEndpoint setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -239,7 +242,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NotificationEndpoint setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java new file mode 100644 index 00000000000..8a8ca6062f3 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java @@ -0,0 +1,401 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Contains a list of NotificationEndpointsScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class NotificationEndpointAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of NotificationEndpointsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public NotificationEndpointAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NotificationEndpointsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of NotificationEndpointsScopedList resources. + * @param items items or {@code null} for none + */ + public NotificationEndpointAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public NotificationEndpointAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NotificationEndpointAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public NotificationEndpointAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public NotificationEndpointAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public NotificationEndpointAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NotificationEndpointAggregatedList set(String fieldName, Object value) { + return (NotificationEndpointAggregatedList) super.set(fieldName, value); + } + + @Override + public NotificationEndpointAggregatedList clone() { + return (NotificationEndpointAggregatedList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for NotificationEndpointAggregatedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java index 092c5f23afb..1c0a447d4f3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java @@ -50,8 +50,8 @@ public final class NotificationEndpointList extends com.google.api.client.json.G } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public NotificationEndpointList setItems(java.util.List it } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. * @param kind kind or {@code null} for none */ public NotificationEndpointList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java new file mode 100644 index 00000000000..ee811630738 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for NotificationEndpointsScopedList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class NotificationEndpointsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of NotificationEndpoints contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + static { + // hack to force ProGuard to consider NotificationEndpoint used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(NotificationEndpoint.class); + } + + /** + * Informational warning which replaces the list of notification endpoints when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of NotificationEndpoints contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * A list of NotificationEndpoints contained in this scope. + * @param resources resources or {@code null} for none + */ + public NotificationEndpointsScopedList setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + /** + * Informational warning which replaces the list of notification endpoints when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of notification endpoints when the list is empty. + * @param warning warning or {@code null} for none + */ + public NotificationEndpointsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NotificationEndpointsScopedList set(String fieldName, Object value) { + return (NotificationEndpointsScopedList) super.set(fieldName, value); + } + + @Override + public NotificationEndpointsScopedList clone() { + return (NotificationEndpointsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of notification endpoints when the list is empty. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for NotificationEndpointsScopedListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Operation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Operation.java index d075d560ae9..2424082e44c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Operation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Operation.java @@ -84,6 +84,12 @@ public final class Operation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Error error; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetVersionOperationMetadata getVersionOperationMetadata; + /** * [Output Only] If the operation fails, this field contains the HTTP error message that was * returned, such as `NOT FOUND`. @@ -122,7 +128,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata; /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,8 +143,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * Output only. [Output Only] An ID that represents a group of operations, such as when a group of + * operations results from a `bulkInsert` API request. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -176,8 +183,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this + * field will contain information on all underlying zonal actions and their state. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -343,6 +350,21 @@ public Operation setError(Error error) { return this; } + /** + * @return value or {@code null} for none + */ + public GetVersionOperationMetadata getGetVersionOperationMetadata() { + return getVersionOperationMetadata; + } + + /** + * @param getVersionOperationMetadata getVersionOperationMetadata or {@code null} for none + */ + public Operation setGetVersionOperationMetadata(GetVersionOperationMetadata getVersionOperationMetadata) { + this.getVersionOperationMetadata = getVersionOperationMetadata; + return this; + } + /** * [Output Only] If the operation fails, this field contains the HTTP error message that was * returned, such as `NOT FOUND`. @@ -433,7 +455,8 @@ public Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOper } /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -441,7 +464,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation + * resources. * @param kind kind or {@code null} for none */ public Operation setKind(java.lang.String kind) { @@ -467,8 +491,8 @@ public Operation setName(java.lang.String name) { } /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * Output only. [Output Only] An ID that represents a group of operations, such as when a group of + * operations results from a `bulkInsert` API request. * @return value or {@code null} for none */ public java.lang.String getOperationGroupId() { @@ -476,8 +500,8 @@ public java.lang.String getOperationGroupId() { } /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * Output only. [Output Only] An ID that represents a group of operations, such as when a group of + * operations results from a `bulkInsert` API request. * @param operationGroupId operationGroupId or {@code null} for none */ public Operation setOperationGroupId(java.lang.String operationGroupId) { @@ -562,8 +586,8 @@ public Operation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this + * field will contain information on all underlying zonal actions and their state. * @return value or {@code null} for none */ public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOperationMetadata() { @@ -571,8 +595,8 @@ public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOp } /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this + * field will contain information on all underlying zonal actions and their state. * @param setCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata or {@code null} for none */ public Operation setSetCommonInstanceMetadataOperationMetadata(SetCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java index 923f1b730d8..0a42c170556 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java @@ -44,8 +44,8 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource. Always `compute#operationAggregatedList` for aggregated lists - * of operations. + * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for + * aggregated lists of operations. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,7 +69,7 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public OperationAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public OperationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationList.java index c7c27b93315..b993539d1db 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationList.java @@ -50,7 +50,8 @@ public final class OperationList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations + * resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public OperationList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations + * resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations + * resource. * @param kind kind or {@code null} for none */ public OperationList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java index 92f1e45bacd..5608b2e6ea6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class OrganizationSecurityPoliciesListAssociationsResponse extends private java.util.List associations; /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * The value may be {@code null}. @@ -63,7 +63,7 @@ public OrganizationSecurityPoliciesListAssociationsResponse setAssociations(java } /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @return value or {@code null} for none @@ -73,7 +73,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @param kind kind or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroring.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroring.java index 9482b4dce0d..b3eb96bcda6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroring.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroring.java @@ -43,7 +43,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringForwardingRuleInfo collectorIlb; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,16 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringFilter filter; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet + * mirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -134,7 +136,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +162,7 @@ public PacketMirroring setCollectorIlb(PacketMirroringForwardingRuleInfo collect } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -168,7 +170,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PacketMirroring setCreationTimestamp(java.lang.String creationTimestamp) { @@ -234,7 +236,8 @@ public PacketMirroring setFilter(PacketMirroringFilter filter) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -242,7 +245,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public PacketMirroring setId(java.math.BigInteger id) { @@ -251,7 +255,8 @@ public PacketMirroring setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet + * mirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -259,7 +264,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet + * mirrorings. * @param kind kind or {@code null} for none */ public PacketMirroring setKind(java.lang.String kind) { @@ -375,7 +381,7 @@ public PacketMirroring setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -383,7 +389,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public PacketMirroring setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java index 595728e2281..1037f9cab3d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java @@ -44,7 +44,7 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public PacketMirroringAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PacketMirroringAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java index ec03ec70a94..94108ee8069 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,7 +45,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.clie private java.lang.String url; /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -53,7 +53,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. * @param canonicalUrl canonicalUrl or {@code null} for none */ public PacketMirroringForwardingRuleInfo setCanonicalUrl(java.lang.String canonicalUrl) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java index c7915c3357f..3d7fba4d7f1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java @@ -50,7 +50,8 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public PacketMirroringList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * @param kind kind or {@code null} for none */ public PacketMirroringList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public PacketMirroringList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public PacketMirroringList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java index 6cb0e091a11..17b0f288da5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the instance; defined by the server. + * Output only. [Output Only] Unique identifier for the instance; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.g private java.lang.String url; /** - * [Output Only] Unique identifier for the instance; defined by the server. + * Output only. [Output Only] Unique identifier for the instance; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the instance; defined by the server. + * Output only. [Output Only] Unique identifier for the instance; defined by the server. * @param canonicalUrl canonicalUrl or {@code null} for none */ public PacketMirroringMirroredResourceInfoInstanceInfo setCanonicalUrl(java.lang.String canonicalUrl) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java index 4001f06eabd..afcc0dfdf19 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.goo private java.lang.String url; /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. * @param canonicalUrl canonicalUrl or {@code null} for none */ public PacketMirroringMirroredResourceInfoSubnetInfo setCanonicalUrl(java.lang.String canonicalUrl) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java index 254d520c669..aba6b27e954 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the network; defined by the server. + * Output only. [Output Only] Unique identifier for the network; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json private java.lang.String url; /** - * [Output Only] Unique identifier for the network; defined by the server. + * Output only. [Output Only] Unique identifier for the network; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the network; defined by the server. + * Output only. [Output Only] Unique identifier for the network; defined by the server. * @param canonicalUrl canonicalUrl or {@code null} for none */ public PacketMirroringNetworkInfo setCanonicalUrl(java.lang.String canonicalUrl) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PartnerMetadata.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PartnerMetadata.java new file mode 100644 index 00000000000..e9ac1339da5 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PartnerMetadata.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition of partner_metadata field. To be used in dedicated Partner Metadata methods and + * to be inlined in the Instance and InstanceTemplate resources. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PartnerMetadata extends com.google.api.client.json.GenericJson { + + /** + * Instance-level hash to be used for optimistic locking. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Partner Metadata assigned to the instance. A map from a subdomain to entries map. Subdomain + * name must be compliant withRFC1035 definition. The total size of all keys and values must be + * less than 2MB. Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's + * metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map partnerMetadata; + + /** + * Instance-level hash to be used for optimistic locking. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Instance-level hash to be used for optimistic locking. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Instance-level hash to be used for optimistic locking. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public PartnerMetadata setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Instance-level hash to be used for optimistic locking. + * @see #setFingerprint() + * + *

      + * The value is encoded Base64 or {@code null} for none. + *

      + * + * @since 1.14 + */ + public PartnerMetadata encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Partner Metadata assigned to the instance. A map from a subdomain to entries map. Subdomain + * name must be compliant withRFC1035 definition. The total size of all keys and values must be + * less than 2MB. Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's + * metadata. + * @return value or {@code null} for none + */ + public java.util.Map getPartnerMetadata() { + return partnerMetadata; + } + + /** + * Partner Metadata assigned to the instance. A map from a subdomain to entries map. Subdomain + * name must be compliant withRFC1035 definition. The total size of all keys and values must be + * less than 2MB. Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's + * metadata. + * @param partnerMetadata partnerMetadata or {@code null} for none + */ + public PartnerMetadata setPartnerMetadata(java.util.Map partnerMetadata) { + this.partnerMetadata = partnerMetadata; + return this; + } + + @Override + public PartnerMetadata set(String fieldName, Object value) { + return (PartnerMetadata) super.set(fieldName, value); + } + + @Override + public PartnerMetadata clone() { + return (PartnerMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PathMatcher.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PathMatcher.java index 9f3e11621fe..862d369b8cb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PathMatcher.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PathMatcher.java @@ -146,8 +146,11 @@ public final class PathMatcher extends com.google.api.client.json.GenericJson { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * matching is all that's required. A path rule can only include a wildcard character (*) after a + * forward slash character ("/"). + * + * The order by which path rules are specified does not matter. Matches are always done on the + * longest-path-first basis. * * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in * which those paths appear in this list. @@ -426,8 +429,11 @@ public PathMatcher setName(java.lang.String name) { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * matching is all that's required. A path rule can only include a wildcard character (*) after a + * forward slash character ("/"). + * + * The order by which path rules are specified does not matter. Matches are always done on the + * longest-path-first basis. * * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in * which those paths appear in this list. @@ -441,8 +447,11 @@ public java.util.List getPathRules() { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * matching is all that's required. A path rule can only include a wildcard character (*) after a + * forward slash character ("/"). + * + * The order by which path rules are specified does not matter. Matches are always done on the + * longest-path-first basis. * * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in * which those paths appear in this list. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeature.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeature.java index 65df1d11db3..67589c68ecf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeature.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeature.java @@ -37,28 +37,30 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private java.lang.String activationStatus; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview + * features. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,14 +81,14 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private PreviewFeatureRolloutOperation rolloutOperation; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +112,7 @@ public PreviewFeature setActivationStatus(java.lang.String activationStatus) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -118,7 +120,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { @@ -127,7 +129,7 @@ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -135,7 +137,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * @param description description or {@code null} for none */ public PreviewFeature setDescription(java.lang.String description) { @@ -144,7 +146,8 @@ public PreviewFeature setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -152,7 +155,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public PreviewFeature setId(java.math.BigInteger id) { @@ -161,7 +165,8 @@ public PreviewFeature setId(java.math.BigInteger id) { } /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview + * features. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -169,7 +174,8 @@ public java.lang.String getKind() { } /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview + * features. * @param kind kind or {@code null} for none */ public PreviewFeature setKind(java.lang.String kind) { @@ -212,7 +218,7 @@ public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rollout } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -220,7 +226,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public PreviewFeature setSelfLink(java.lang.String selfLink) { @@ -229,7 +235,7 @@ public PreviewFeature setSelfLink(java.lang.String selfLink) { } /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * @return value or {@code null} for none */ public PreviewFeatureStatus getStatus() { @@ -237,7 +243,7 @@ public PreviewFeatureStatus getStatus() { } /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * @param status status or {@code null} for none */ public PreviewFeature setStatus(PreviewFeatureStatus status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java index 7db8ee1c6d8..f099ab2a800 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java @@ -66,14 +66,15 @@ public final class PreviewFeatureList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public PreviewFeatureList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public PreviewFeatureList setSelfLink(java.lang.String selfLink) { @@ -176,7 +177,8 @@ public PreviewFeatureList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public PreviewFeatureList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java index af6b1bbc4e8..6b0cd6054f8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java @@ -30,14 +30,14 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** - * [Output Only] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,7 +50,7 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.Gener private PreviewFeatureStatusReleaseStatus releaseStatus; /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -58,7 +58,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * @param description description or {@code null} for none */ public PreviewFeatureStatus setDescription(java.lang.String description) { @@ -67,7 +67,7 @@ public PreviewFeatureStatus setDescription(java.lang.String description) { } /** - * [Output Only] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * @return value or {@code null} for none */ public java.lang.String getHelpLink() { @@ -75,7 +75,7 @@ public java.lang.String getHelpLink() { } /** - * [Output Only] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * @param helpLink helpLink or {@code null} for none */ public PreviewFeatureStatus setHelpLink(java.lang.String helpLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java index f26a5843a8a..bbefbcc3470 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java @@ -30,7 +30,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.clie private Date updateDate; /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * @return value or {@code null} for none */ public java.lang.String getStage() { @@ -52,7 +52,7 @@ public java.lang.String getStage() { } /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * @param stage stage or {@code null} for none */ public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Project.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Project.java index e8c3e10c499..a4a293de97f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Project.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Project.java @@ -33,8 +33,8 @@ public final class Project extends com.google.api.client.json.GenericJson { /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the + * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * The value may be {@code null}. @@ -97,7 +97,7 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#project for projects. + * Output only. [Output Only] Type of the resource. Always compute#project for projects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -134,7 +134,7 @@ public final class Project extends com.google.api.client.json.GenericJson { private UsageExportLocation usageExportLocation; /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,8 +149,8 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.lang.String xpnProjectStatus; /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the + * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @return value or {@code null} for none @@ -160,8 +160,8 @@ public java.lang.String getCloudArmorTier() { } /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the + * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @param cloudArmorTier cloudArmorTier or {@code null} for none @@ -301,7 +301,7 @@ public Project setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#project for projects. + * Output only. [Output Only] Type of the resource. Always compute#project for projects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -309,7 +309,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#project for projects. + * Output only. [Output Only] Type of the resource. Always compute#project for projects. * @param kind kind or {@code null} for none */ public Project setKind(java.lang.String kind) { @@ -390,7 +390,7 @@ public Project setUsageExportLocation(UsageExportLocation usageExportLocation) { } /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. * @return value or {@code null} for none */ public java.lang.String getVmDnsSetting() { @@ -398,7 +398,7 @@ public java.lang.String getVmDnsSetting() { } /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. * @param vmDnsSetting vmDnsSetting or {@code null} for none */ public Project setVmDnsSetting(java.lang.String vmDnsSetting) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java index b7574ceac6c..cd70d815772 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java @@ -30,18 +30,18 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of + * service resources (a.k.a service projects) * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,8 +55,8 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.Ge private java.util.List resources; /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of + * service resources (a.k.a service projects) * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -64,8 +64,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of + * service resources (a.k.a service projects) * @param kind kind or {@code null} for none */ public ProjectsGetXpnResources setKind(java.lang.String kind) { @@ -74,10 +74,10 @@ public ProjectsGetXpnResources setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -85,10 +85,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public ProjectsGetXpnResources setNextPageToken(java.lang.String nextPageToken) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java index 47997ccbda3..dffdfa4c908 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java @@ -32,14 +32,14 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.GenericJson { /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String byoipApiVersion; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,8 +72,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -94,8 +94,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String ipv6AccessType; /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,15 +125,15 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String pdpScope; /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * Output only. [Output Only] The list of public delegated prefixes that exist for this public + * advertised prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List publicDelegatedPrefixs; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +159,7 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String status; /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -167,7 +167,7 @@ public java.lang.String getByoipApiVersion() { } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -176,7 +176,7 @@ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersio } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -184,7 +184,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicAdvertisedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -292,8 +292,8 @@ public PublicAdvertisedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -301,8 +301,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public PublicAdvertisedPrefix setId(java.math.BigInteger id) { @@ -345,8 +345,8 @@ public PublicAdvertisedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) } /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -354,8 +354,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. * @param kind kind or {@code null} for none */ public PublicAdvertisedPrefix setKind(java.lang.String kind) { @@ -416,8 +416,8 @@ public PublicAdvertisedPrefix setPdpScope(java.lang.String pdpScope) { } /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * Output only. [Output Only] The list of public delegated prefixes that exist for this public + * advertised prefix. * @return value or {@code null} for none */ public java.util.List getPublicDelegatedPrefixs() { @@ -425,8 +425,8 @@ public java.util.List getPublicDele } /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * Output only. [Output Only] The list of public delegated prefixes that exist for this public + * advertised prefix. * @param publicDelegatedPrefixs publicDelegatedPrefixs or {@code null} for none */ public PublicAdvertisedPrefix setPublicDelegatedPrefixs(java.util.List publicDelegatedPrefixs) { @@ -435,7 +435,7 @@ public PublicAdvertisedPrefix setPublicDelegatedPrefixs(java.util.List publicDelegatedSubPrefixs; /** - * [Output Only] URL of the region where the public delegated prefix resides. This field applies - * only to the region resource. You must specify this field as part of the HTTP request URL. It is - * not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the public delegated prefix resides. This + * field applies only to the region resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -194,7 +202,7 @@ public PublicDelegatedPrefix setAllocatablePrefixLength(java.lang.Integer alloca } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -202,7 +210,7 @@ public java.lang.String getByoipApiVersion() { } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -211,7 +219,7 @@ public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -219,7 +227,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicDelegatedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -244,6 +252,25 @@ public PublicDelegatedPrefix setDescription(java.lang.String description) { return this; } + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEnhancedIpv4Allocation() { + return enableEnhancedIpv4Allocation; + } + + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * @param enableEnhancedIpv4Allocation enableEnhancedIpv4Allocation or {@code null} for none + */ + public PublicDelegatedPrefix setEnableEnhancedIpv4Allocation(java.lang.Boolean enableEnhancedIpv4Allocation) { + this.enableEnhancedIpv4Allocation = enableEnhancedIpv4Allocation; + return this; + } + /** * Fingerprint of this resource. A hash of the contents stored in this object. This field is used * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. @@ -310,8 +337,8 @@ public PublicDelegatedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -319,8 +346,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public PublicDelegatedPrefix setId(java.math.BigInteger id) { @@ -346,8 +373,8 @@ public PublicDelegatedPrefix setIpCidrRange(java.lang.String ipCidrRange) { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Prefixes. Inherited from - * parent prefix. + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. + * Inherited from parent prefix. * @return value or {@code null} for none */ public java.lang.String getIpv6AccessType() { @@ -355,8 +382,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Prefixes. Inherited from - * parent prefix. + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. + * Inherited from parent prefix. * @param ipv6AccessType ipv6AccessType or {@code null} for none */ public PublicDelegatedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) { @@ -382,8 +409,8 @@ public PublicDelegatedPrefix setIsLiveMigration(java.lang.Boolean isLiveMigratio } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public delegated - * prefixes. + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public + * delegated prefixes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -391,8 +418,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public delegated - * prefixes. + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public + * delegated prefixes. * @param kind kind or {@code null} for none */ public PublicDelegatedPrefix setKind(java.lang.String kind) { @@ -477,9 +504,9 @@ public PublicDelegatedPrefix setPublicDelegatedSubPrefixs(java.util.List items; /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixAggregatedList for - * aggregated lists of public delegated prefixes. + * Output only. [Output Only] Type of the resource. + * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated + * prefixes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,7 +70,7 @@ public final class PublicDelegatedPrefixAggregatedList extends com.google.api.cl private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,9 @@ public PublicDelegatedPrefixAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PublicDelegatedPrefixAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java index 661e1a7fb4a..c6896a733e8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java @@ -50,8 +50,8 @@ public final class PublicDelegatedPrefixList extends com.google.api.client.json. } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for + * public delegated prefixes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public PublicDelegatedPrefixList setItems(java.util.List } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for + * public delegated prefixes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for + * public delegated prefixes. * @param kind kind or {@code null} for none */ public PublicDelegatedPrefixList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java index 838df79a95e..db255ac525a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java @@ -50,6 +50,14 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo @com.google.api.client.util.Key private java.lang.String description; + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEnhancedIpv4Allocation; + /** * The IP address range, in CIDR format, represented by this sub public delegated prefix. * The value may be {@code null}. @@ -58,8 +66,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String ipCidrRange; /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. + * Inherited from parent prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,15 +95,15 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String name; /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If + * absent, the sub prefix is global. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,6 +160,25 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setDescription(java.lang.St return this; } + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEnhancedIpv4Allocation() { + return enableEnhancedIpv4Allocation; + } + + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * @param enableEnhancedIpv4Allocation enableEnhancedIpv4Allocation or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setEnableEnhancedIpv4Allocation(java.lang.Boolean enableEnhancedIpv4Allocation) { + this.enableEnhancedIpv4Allocation = enableEnhancedIpv4Allocation; + return this; + } + /** * The IP address range, in CIDR format, represented by this sub public delegated prefix. * @return value or {@code null} for none @@ -170,8 +197,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpCidrRange(java.lang.St } /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. + * Inherited from parent prefix. * @return value or {@code null} for none */ public java.lang.String getIpv6AccessType() { @@ -179,8 +206,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. + * Inherited from parent prefix. * @param ipv6AccessType ipv6AccessType or {@code null} for none */ public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpv6AccessType(java.lang.String ipv6AccessType) { @@ -240,8 +267,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setName(java.lang.String na } /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If + * absent, the sub prefix is global. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -249,8 +276,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If + * absent, the sub prefix is global. * @param region region or {@code null} for none */ public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String region) { @@ -259,7 +286,7 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String } /** - * [Output Only] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -267,7 +294,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * @param status status or {@code null} for none */ public PublicDelegatedPrefixPublicDelegatedSubPrefix setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reference.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reference.java index 924e8061310..db743f6ac38 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reference.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reference.java @@ -30,7 +30,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of the resource. Always compute#reference for references. + * Output only. [Output Only] Type of the resource. Always compute#reference for references. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,7 +59,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * [Output Only] Type of the resource. Always compute#reference for references. + * Output only. [Output Only] Type of the resource. Always compute#reference for references. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -67,7 +67,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#reference for references. + * Output only. [Output Only] Type of the resource. Always compute#reference for references. * @param kind kind or {@code null} for none */ public Reference setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Region.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Region.java index bccee9a8880..c244dcb05e6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Region.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Region.java @@ -61,7 +61,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#region for regions. + * Output only. [Output Only] Type of the resource. Always compute#region for regions. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,8 +75,8 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field + * is populated only if fetching of the `quotas` field fails. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +110,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -192,7 +192,7 @@ public Region setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#region for regions. + * Output only. [Output Only] Type of the resource. Always compute#region for regions. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -200,7 +200,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#region for regions. + * Output only. [Output Only] Type of the resource. Always compute#region for regions. * @param kind kind or {@code null} for none */ public Region setKind(java.lang.String kind) { @@ -226,8 +226,8 @@ public Region setName(java.lang.String name) { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field + * is populated only if fetching of the `quotas` field fails. * @return value or {@code null} for none */ public QuotaStatusWarning getQuotaStatusWarning() { @@ -235,8 +235,8 @@ public QuotaStatusWarning getQuotaStatusWarning() { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field + * is populated only if fetching of the `quotas` field fails. * @param quotaStatusWarning quotaStatusWarning or {@code null} for none */ public Region setQuotaStatusWarning(QuotaStatusWarning quotaStatusWarning) { @@ -296,7 +296,7 @@ public Region setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -304,7 +304,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Region setSupportsPzs(java.lang.Boolean supportsPzs) { @@ -340,8 +340,8 @@ public Region clone() { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field is + * populated only if fetching of the `quotas` field fails. */ public static final class QuotaStatusWarning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java index 2e556ab7d08..551ddfd2ac0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java @@ -50,7 +50,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RegionAutoscalerList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RegionAutoscalerList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RegionAutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RegionAutoscalerList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java index 75127baf46f..872032b6f03 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java @@ -50,7 +50,8 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk + * types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public RegionDiskTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk + * types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk + * types. * @param kind kind or {@code null} for none */ public RegionDiskTypeList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public RegionDiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RegionDiskTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java index 05b7ebc0b41..85740a56c46 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,38 +50,38 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.Ge } /** - * The resource type. + * Output only. The resource type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public RegionInstanceGroupList setId(java.lang.String id) { @@ -115,7 +115,7 @@ public RegionInstanceGroupList setItems(java.util.List items) { } /** - * The resource type. + * Output only. The resource type. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * The resource type. + * Output only. The resource type. * @param kind kind or {@code null} for none */ public RegionInstanceGroupList setKind(java.lang.String kind) { @@ -132,10 +132,10 @@ public RegionInstanceGroupList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -143,10 +143,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public RegionInstanceGroupList setNextPageToken(java.lang.String nextPageToken) { @@ -155,7 +155,7 @@ public RegionInstanceGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { @@ -172,7 +172,7 @@ public RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -180,7 +180,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupList setWarning(Warning warning) { @@ -199,7 +199,7 @@ public RegionInstanceGroupList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java index 92bdbe38b6c..5a070239603 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,39 +50,39 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client. } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups that exist in th regional scope. + * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList + * for a list of managed instance groups that exist in th regional scope. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public RegionInstanceGroupManagerList setId(java.lang.String id) { @@ -116,8 +116,8 @@ public RegionInstanceGroupManagerList setItems(java.util.List This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RegionInstanceGroupManagerResizeRequestsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of Resize Request resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider InstanceGroupManagerResizeRequest used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(InstanceGroupManagerResizeRequest.class); + } + + /** + * Output only. [Output Only] Type of the resource. + * Alwayscompute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * Output only. [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Resize Request resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Resize Request resources. + * @param items items or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. + * Alwayscompute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. + * Alwayscompute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests. + * @param kind kind or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionInstanceGroupManagerResizeRequestsListResponse set(String fieldName, Object value) { + return (RegionInstanceGroupManagerResizeRequestsListResponse) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagerResizeRequestsListResponse clone() { + return (RegionInstanceGroupManagerResizeRequestsListResponse) super.clone(); + } + + /** + * Output only. [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for RegionInstanceGroupManagerResizeRequestsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java index c5415e1b6a4..1743aba53b2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListErrorsResponse extends com.goo } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListErrorsResponse setItems(java.util.List getItems() { @@ -68,7 +68,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.List items) { @@ -77,10 +77,10 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.Lis } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -88,10 +88,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java.lang.String nextPageToken) { @@ -100,7 +100,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java. } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -108,7 +108,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setWarning(Warning warning) { @@ -127,7 +127,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java index acfc0c7acca..be961b62fc1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListInstancesResponse extends com. } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListInstancesResponse setManagedInstances(java } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -81,10 +81,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public RegionInstanceGroupManagersListInstancesResponse setNextPageToken(java.lang.String nextPageToken) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java index dac1f439e48..aefcae26d51 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,38 +50,38 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.clie } /** - * The resource type. + * Output only. The resource type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public RegionInstanceGroupsListInstances setId(java.lang.String id) { @@ -115,7 +115,7 @@ public RegionInstanceGroupsListInstances setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#regionList for lists of regions. + * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#regionList for lists of regions. + * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. * @param kind kind or {@code null} for none */ public RegionList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RegionList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RegionList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java index ee278d6de38..f55221c5cee 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java @@ -30,9 +30,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { /** - * [Output only] Effective firewalls from firewall policy. It applies to Regional Network Firewall - * Policies in the specified region, Global Network Firewall Policies and Hierachial Firewall - * Policies which are associated with the network. + * Output only. [Output only] Effective firewalls from firewall policy. It applies to Regional + * Network Firewall Policies in the specified region, Global Network Firewall Policies and + * Hierachial Firewall Policies which are associated with the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -52,9 +52,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse ex } /** - * [Output only] Effective firewalls from firewall policy. It applies to Regional Network Firewall - * Policies in the specified region, Global Network Firewall Policies and Hierachial Firewall - * Policies which are associated with the network. + * Output only. [Output only] Effective firewalls from firewall policy. It applies to Regional + * Network Firewall Policies in the specified region, Global Network Firewall Policies and + * Hierachial Firewall Policies which are associated with the network. * @return value or {@code null} for none */ public java.util.List getFirewallPolicys() { @@ -62,9 +62,9 @@ public java.util.List firewallPolicys) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index c87245ab60e..8ee047a1277 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -31,21 +31,21 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] The display name of the firewall policy. + * Output only. [Output Only] The display name of the firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output only] The packet mirroring rules that apply to the network. + * Output only. [Output only] The packet mirroring rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,14 +58,15 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer priority; /** - * [Output only] The rules that apply to the network. + * Output only. [Output only] The rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,7 +79,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. * The value may be {@code null}. */ @@ -86,7 +87,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff private java.lang.String type; /** - * [Output Only] The display name of the firewall policy. + * Output only. [Output Only] The display name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -94,7 +95,7 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] The display name of the firewall policy. + * Output only. [Output Only] The display name of the firewall policy. * @param displayName displayName or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { @@ -103,7 +104,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -111,7 +112,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -120,7 +121,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] The packet mirroring rules that apply to the network. + * Output only. [Output only] The packet mirroring rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -128,7 +129,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output only] The packet mirroring rules that apply to the network. + * Output only. [Output only] The packet mirroring rules that apply to the network. * @param packetMirroringRules packetMirroringRules or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { @@ -137,7 +138,8 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -145,7 +147,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. * @param priority priority or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { @@ -154,7 +157,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] The rules that apply to the network. + * Output only. [Output only] The rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getRules() { @@ -162,7 +165,7 @@ public java.util.List getRules() { } /** - * [Output only] The rules that apply to the network. + * Output only. [Output only] The rules that apply to the network. * @param rules rules or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { @@ -171,7 +174,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. * @return value or {@code null} for none */ @@ -180,7 +183,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. * @param type type or {@code null} for none */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java index a759f084f75..a3204d535ea 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -46,15 +46,21 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private AllocationAggregateReservation aggregateReservation; /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for + * reservations that are tied to a commitment. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String commitment; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String confidentialComputeType; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -90,6 +96,15 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String description; + /** + * Indicates the early access maintenance for the reservation. If this field is absent or set to + * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard + * notice applies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String earlyAccessMaintenance; + /** * Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix * hardware errors. @@ -99,22 +114,23 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableEmergentMaintenance; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for + * reservations that are tied to multiple commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,6 +147,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationParams params; + /** * Protection tier for the workload which specifies the workload expectations in the event of * infrastructure failures at data center (e.g. power and/or cooling failures). @@ -156,14 +180,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.util.Map resourcePolicies; /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private AllocationResourceStatus resourceStatus; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -177,7 +201,7 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String schedulingType; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -209,10 +233,10 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean specificReservationRequired; /** - * [Output Only] The status of the reservation. - CREATING: Reservation resources are - * being allocated. - READY: Reservation resources have been allocated, and the - * reservation is ready for use. - DELETING: Reservation deletion is in progress. - - * UPDATING: Reservation update is in progress. + * Output only. [Output Only] The status of the reservation. - CREATING: Reservation + * resources are being allocated. - READY: Reservation resources have been allocated, + * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. + * - UPDATING: Reservation update is in progress. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -261,8 +285,8 @@ public Reservation setAggregateReservation(AllocationAggregateReservation aggreg } /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for + * reservations that are tied to a commitment. * @return value or {@code null} for none */ public java.lang.String getCommitment() { @@ -270,8 +294,8 @@ public java.lang.String getCommitment() { } /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for + * reservations that are tied to a commitment. * @param commitment commitment or {@code null} for none */ public Reservation setCommitment(java.lang.String commitment) { @@ -280,7 +304,22 @@ public Reservation setCommitment(java.lang.String commitment) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getConfidentialComputeType() { + return confidentialComputeType; + } + + /** + * @param confidentialComputeType confidentialComputeType or {@code null} for none + */ + public Reservation setConfidentialComputeType(java.lang.String confidentialComputeType) { + this.confidentialComputeType = confidentialComputeType; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -288,7 +327,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -368,6 +407,27 @@ public Reservation setDescription(java.lang.String description) { return this; } + /** + * Indicates the early access maintenance for the reservation. If this field is absent or set to + * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard + * notice applies. + * @return value or {@code null} for none + */ + public java.lang.String getEarlyAccessMaintenance() { + return earlyAccessMaintenance; + } + + /** + * Indicates the early access maintenance for the reservation. If this field is absent or set to + * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard + * notice applies. + * @param earlyAccessMaintenance earlyAccessMaintenance or {@code null} for none + */ + public Reservation setEarlyAccessMaintenance(java.lang.String earlyAccessMaintenance) { + this.earlyAccessMaintenance = earlyAccessMaintenance; + return this; + } + /** * Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix * hardware errors. @@ -388,7 +448,8 @@ public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergent } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -396,7 +457,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Reservation setId(java.math.BigInteger id) { @@ -405,7 +467,7 @@ public Reservation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -413,7 +475,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. * @param kind kind or {@code null} for none */ public Reservation setKind(java.lang.String kind) { @@ -422,8 +484,8 @@ public Reservation setKind(java.lang.String kind) { } /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for + * reservations that are tied to multiple commitments. * @return value or {@code null} for none */ public java.util.List getLinkedCommitments() { @@ -431,8 +493,8 @@ public java.util.List getLinkedCommitments() { } /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for + * reservations that are tied to multiple commitments. * @param linkedCommitments linkedCommitments or {@code null} for none */ public Reservation setLinkedCommitments(java.util.List linkedCommitments) { @@ -465,6 +527,25 @@ public Reservation setName(java.lang.String name) { return this; } + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public ReservationParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public Reservation setParams(ReservationParams params) { + this.params = params; + return this; + } + /** * Protection tier for the workload which specifies the workload expectations in the event of * infrastructure failures at data center (e.g. power and/or cooling failures). @@ -523,7 +604,7 @@ public Reservation setResourcePolicies(java.util.Map r } /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * @return value or {@code null} for none */ public AllocationResourceStatus getResourceStatus() { @@ -531,7 +612,7 @@ public AllocationResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { @@ -540,7 +621,7 @@ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -548,7 +629,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -574,7 +655,7 @@ public Reservation setSchedulingType(java.lang.String schedulingType) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -582,7 +663,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public Reservation setSelfLink(java.lang.String selfLink) { @@ -650,10 +731,10 @@ public Reservation setSpecificReservationRequired(java.lang.Boolean specificRese } /** - * [Output Only] The status of the reservation. - CREATING: Reservation resources are - * being allocated. - READY: Reservation resources have been allocated, and the - * reservation is ready for use. - DELETING: Reservation deletion is in progress. - - * UPDATING: Reservation update is in progress. + * Output only. [Output Only] The status of the reservation. - CREATING: Reservation + * resources are being allocated. - READY: Reservation resources have been allocated, + * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. + * - UPDATING: Reservation update is in progress. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -661,10 +742,10 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the reservation. - CREATING: Reservation resources are - * being allocated. - READY: Reservation resources have been allocated, and the - * reservation is ready for use. - DELETING: Reservation deletion is in progress. - - * UPDATING: Reservation update is in progress. + * Output only. [Output Only] The status of the reservation. - CREATING: Reservation + * resources are being allocated. - READY: Reservation resources have been allocated, + * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. + * - UPDATING: Reservation update is in progress. * @param status status or {@code null} for none */ public Reservation setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java index b89fe21e167..481d5487015 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java @@ -44,7 +44,7 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ReservationAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ReservationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlock.java index c17a33b71d3..3cc78bd8634 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlock.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -30,50 +30,62 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJson { /** - * [Output Only] The number of resources that are allocated in this reservation block. + * Output only. [Output Only] The number of resources that are allocated in this reservation + * block. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer count; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * The value may be {@code null}. */ @com.google.api.client.util.Key private ReservationBlockHealthInfo healthInfo; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation block. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer inUseCount; /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer inUseHostCount; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation + * blocks. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] The name of this reservation block generated by Google Compute Engine. The name - * must be 1-63 characters long, and comply with RFC1035 @pattern + * Output only. [Output Only] The name of this reservation block generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? * The value may be {@code null}. */ @@ -81,64 +93,66 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * The value may be {@code null}. */ @com.google.api.client.util.Key private ReservationBlockPhysicalTopology physicalTopology; /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * The value may be {@code null}. */ @com.google.api.client.util.Key private GroupMaintenanceInfo reservationMaintenance; /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * Output only. [Output Only] The number of reservation subBlocks associated with this reservation + * block. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer reservationSubBlockCount; /** - * [Output Only] The number of in-use reservation subBlocks associated with this reservation - * block. If at least one VM is running on a subBlock, it is considered in-use. + * Output only. [Output Only] The number of in-use reservation subBlocks associated with this + * reservation block. If at least one VM is running on a subBlock, it is considered in-use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer reservationSubBlockInUseCount; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLinkWithId; /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] Zone in which the reservation block resides. + * Output only. [Output Only] Zone in which the reservation block resides. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** - * [Output Only] The number of resources that are allocated in this reservation block. + * Output only. [Output Only] The number of resources that are allocated in this reservation + * block. * @return value or {@code null} for none */ public java.lang.Integer getCount() { @@ -146,7 +160,8 @@ public java.lang.Integer getCount() { } /** - * [Output Only] The number of resources that are allocated in this reservation block. + * Output only. [Output Only] The number of resources that are allocated in this reservation + * block. * @param count count or {@code null} for none */ public ReservationBlock setCount(java.lang.Integer count) { @@ -155,7 +170,7 @@ public ReservationBlock setCount(java.lang.Integer count) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -163,7 +178,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -172,7 +187,7 @@ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) } /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * @return value or {@code null} for none */ public ReservationBlockHealthInfo getHealthInfo() { @@ -180,7 +195,7 @@ public ReservationBlockHealthInfo getHealthInfo() { } /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * @param healthInfo healthInfo or {@code null} for none */ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { @@ -189,7 +204,8 @@ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -197,7 +213,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public ReservationBlock setId(java.math.BigInteger id) { @@ -206,7 +223,8 @@ public ReservationBlock setId(java.math.BigInteger id) { } /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation block. * @return value or {@code null} for none */ public java.lang.Integer getInUseCount() { @@ -214,7 +232,8 @@ public java.lang.Integer getInUseCount() { } /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation block. * @param inUseCount inUseCount or {@code null} for none */ public ReservationBlock setInUseCount(java.lang.Integer inUseCount) { @@ -223,7 +242,27 @@ public ReservationBlock setInUseCount(java.lang.Integer inUseCount) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * @return value or {@code null} for none + */ + public java.lang.Integer getInUseHostCount() { + return inUseHostCount; + } + + /** + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * @param inUseHostCount inUseHostCount or {@code null} for none + */ + public ReservationBlock setInUseHostCount(java.lang.Integer inUseHostCount) { + this.inUseHostCount = inUseHostCount; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation + * blocks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -231,7 +270,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation + * blocks. * @param kind kind or {@code null} for none */ public ReservationBlock setKind(java.lang.String kind) { @@ -240,8 +280,8 @@ public ReservationBlock setKind(java.lang.String kind) { } /** - * [Output Only] The name of this reservation block generated by Google Compute Engine. The name - * must be 1-63 characters long, and comply with RFC1035 @pattern + * Output only. [Output Only] The name of this reservation block generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? * @return value or {@code null} for none */ @@ -250,8 +290,8 @@ public java.lang.String getName() { } /** - * [Output Only] The name of this reservation block generated by Google Compute Engine. The name - * must be 1-63 characters long, and comply with RFC1035 @pattern + * Output only. [Output Only] The name of this reservation block generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? * @param name name or {@code null} for none */ @@ -261,7 +301,7 @@ public ReservationBlock setName(java.lang.String name) { } /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopology getPhysicalTopology() { @@ -269,7 +309,7 @@ public ReservationBlockPhysicalTopology getPhysicalTopology() { } /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology physicalTopology) { @@ -278,7 +318,7 @@ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology phy } /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationMaintenance() { @@ -286,7 +326,7 @@ public GroupMaintenanceInfo getReservationMaintenance() { } /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * @param reservationMaintenance reservationMaintenance or {@code null} for none */ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { @@ -295,7 +335,8 @@ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservati } /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * Output only. [Output Only] The number of reservation subBlocks associated with this reservation + * block. * @return value or {@code null} for none */ public java.lang.Integer getReservationSubBlockCount() { @@ -303,7 +344,8 @@ public java.lang.Integer getReservationSubBlockCount() { } /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * Output only. [Output Only] The number of reservation subBlocks associated with this reservation + * block. * @param reservationSubBlockCount reservationSubBlockCount or {@code null} for none */ public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservationSubBlockCount) { @@ -312,8 +354,8 @@ public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservatio } /** - * [Output Only] The number of in-use reservation subBlocks associated with this reservation - * block. If at least one VM is running on a subBlock, it is considered in-use. + * Output only. [Output Only] The number of in-use reservation subBlocks associated with this + * reservation block. If at least one VM is running on a subBlock, it is considered in-use. * @return value or {@code null} for none */ public java.lang.Integer getReservationSubBlockInUseCount() { @@ -321,8 +363,8 @@ public java.lang.Integer getReservationSubBlockInUseCount() { } /** - * [Output Only] The number of in-use reservation subBlocks associated with this reservation - * block. If at least one VM is running on a subBlock, it is considered in-use. + * Output only. [Output Only] The number of in-use reservation subBlocks associated with this + * reservation block. If at least one VM is running on a subBlock, it is considered in-use. * @param reservationSubBlockInUseCount reservationSubBlockInUseCount or {@code null} for none */ public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reservationSubBlockInUseCount) { @@ -331,7 +373,7 @@ public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reser } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -339,7 +381,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ReservationBlock setSelfLink(java.lang.String selfLink) { @@ -348,7 +390,7 @@ public ReservationBlock setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -356,7 +398,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -365,7 +407,7 @@ public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -373,7 +415,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * @param status status or {@code null} for none */ public ReservationBlock setStatus(java.lang.String status) { @@ -382,7 +424,7 @@ public ReservationBlock setStatus(java.lang.String status) { } /** - * [Output Only] Zone in which the reservation block resides. + * Output only. [Output Only] Zone in which the reservation block resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -390,7 +432,7 @@ public java.lang.String getZone() { } /** - * [Output Only] Zone in which the reservation block resides. + * Output only. [Output Only] Zone in which the reservation block resides. * @param zone zone or {@code null} for none */ public ReservationBlock setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java index 53e85cffd67..b51a80d1123 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java @@ -44,7 +44,7 @@ public final class ReservationBlockPhysicalTopology extends com.google.api.clien private java.lang.String cluster; /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,7 @@ public ReservationBlockPhysicalTopology setCluster(java.lang.String cluster) { } /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * @return value or {@code null} for none */ public java.util.List getInstances() { @@ -93,7 +93,7 @@ public java.util.List getInstances() { } /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * @param instances instances or {@code null} for none */ public ReservationBlockPhysicalTopology setInstances(java.util.List instances) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java index bca68a5e4f5..74bbbacca30 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java @@ -37,7 +37,7 @@ public final class ReservationBlockPhysicalTopologyInstance extends com.google.a private java.math.BigInteger instanceId; /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public ReservationBlockPhysicalTopologyInstance setInstanceId(java.math.BigInteg } /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalHostTopology() { @@ -76,7 +76,7 @@ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalH } /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * @param physicalHostTopology physicalHostTopology or {@code null} for none */ public ReservationBlockPhysicalTopologyInstance setPhysicalHostTopology(ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationList.java index b036cd71a72..0bad0666237 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationList.java @@ -50,7 +50,8 @@ public final class ReservationList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof + * reservations * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class ReservationList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public ReservationList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof + * reservations * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof + * reservations * @param kind kind or {@code null} for none */ public ReservationList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public ReservationList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ReservationList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationParams.java new file mode 100644 index 00000000000..30f762638ba --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationParams.java @@ -0,0 +1,78 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Additional reservation params. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReservationParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public ReservationParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public ReservationParams set(String fieldName, Object value) { + return (ReservationParams) super.set(fieldName, value); + } + + @Override + public ReservationParams clone() { + return (ReservationParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlot.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlot.java new file mode 100644 index 00000000000..9429017cf3c --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlot.java @@ -0,0 +1,315 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a reservation slot resource. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReservationSlot extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] The unique identifier for this resource. This identifier is defined + * by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation + * slots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] The name of the reservation slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The physical topology of the reservation slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSlotPhysicalTopology physicalTopology; + + /** + * Output only. [Output Only] A server-defined fully-qualified URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] A server-defined URL for this resource with the resource ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Specify share settings to create a shared slot. Set to empty to inherit the share settings from + * a parent resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShareSettings shareSettings; + + /** + * Output only. [Output Only] The state of the reservation slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] The status of the reservation slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSlotStatus status; + + /** + * Output only. [Output Only] The zone in which the reservation slot resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ReservationSlot setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for this resource. This identifier is defined + * by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for this resource. This identifier is defined + * by the server. + * @param id id or {@code null} for none + */ + public ReservationSlot setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation + * slots. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation + * slots. + * @param kind kind or {@code null} for none + */ + public ReservationSlot setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] The name of the reservation slot. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of the reservation slot. + * @param name name or {@code null} for none + */ + public ReservationSlot setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The physical topology of the reservation slot. + * @return value or {@code null} for none + */ + public ReservationSlotPhysicalTopology getPhysicalTopology() { + return physicalTopology; + } + + /** + * Output only. [Output Only] The physical topology of the reservation slot. + * @param physicalTopology physicalTopology or {@code null} for none + */ + public ReservationSlot setPhysicalTopology(ReservationSlotPhysicalTopology physicalTopology) { + this.physicalTopology = physicalTopology; + return this; + } + + /** + * Output only. [Output Only] A server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] A server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReservationSlot setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] A server-defined URL for this resource with the resource ID. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] A server-defined URL for this resource with the resource ID. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public ReservationSlot setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Specify share settings to create a shared slot. Set to empty to inherit the share settings from + * a parent resource. + * @return value or {@code null} for none + */ + public ShareSettings getShareSettings() { + return shareSettings; + } + + /** + * Specify share settings to create a shared slot. Set to empty to inherit the share settings from + * a parent resource. + * @param shareSettings shareSettings or {@code null} for none + */ + public ReservationSlot setShareSettings(ShareSettings shareSettings) { + this.shareSettings = shareSettings; + return this; + } + + /** + * Output only. [Output Only] The state of the reservation slot. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The state of the reservation slot. + * @param state state or {@code null} for none + */ + public ReservationSlot setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] The status of the reservation slot. + * @return value or {@code null} for none + */ + public ReservationSlotStatus getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the reservation slot. + * @param status status or {@code null} for none + */ + public ReservationSlot setStatus(ReservationSlotStatus status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] The zone in which the reservation slot resides. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The zone in which the reservation slot resides. + * @param zone zone or {@code null} for none + */ + public ReservationSlot setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public ReservationSlot set(String fieldName, Object value) { + return (ReservationSlot) super.set(fieldName, value); + } + + @Override + public ReservationSlot clone() { + return (ReservationSlot) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java new file mode 100644 index 00000000000..a5343db9f74 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for ReservationSlotPhysicalTopology. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReservationSlotPhysicalTopology extends com.google.api.client.json.GenericJson { + + /** + * The unique identifier of the capacity block within the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String block; + + /** + * The cluster name of the reservation sub-block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cluster; + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subBlock; + + /** + * The unique identifier of the capacity block within the cluster. + * @return value or {@code null} for none + */ + public java.lang.String getBlock() { + return block; + } + + /** + * The unique identifier of the capacity block within the cluster. + * @param block block or {@code null} for none + */ + public ReservationSlotPhysicalTopology setBlock(java.lang.String block) { + this.block = block; + return this; + } + + /** + * The cluster name of the reservation sub-block. + * @return value or {@code null} for none + */ + public java.lang.String getCluster() { + return cluster; + } + + /** + * The cluster name of the reservation sub-block. + * @param cluster cluster or {@code null} for none + */ + public ReservationSlotPhysicalTopology setCluster(java.lang.String cluster) { + this.cluster = cluster; + return this; + } + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * @param host host or {@code null} for none + */ + public ReservationSlotPhysicalTopology setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * @return value or {@code null} for none + */ + public java.lang.String getSubBlock() { + return subBlock; + } + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * @param subBlock subBlock or {@code null} for none + */ + public ReservationSlotPhysicalTopology setSubBlock(java.lang.String subBlock) { + this.subBlock = subBlock; + return this; + } + + @Override + public ReservationSlotPhysicalTopology set(String fieldName, Object value) { + return (ReservationSlotPhysicalTopology) super.set(fieldName, value); + } + + @Override + public ReservationSlotPhysicalTopology clone() { + return (ReservationSlotPhysicalTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java new file mode 100644 index 00000000000..070a4f2ac91 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for ReservationSlotStatus. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReservationSlotStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The physical topology of the reservation sub-block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSlotPhysicalTopology physicalTopology; + + /** + * Output only. The RDMA IP address of the physical host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rdmaIpAddresses; + + /** + * Output only. The URIs of the instances currently running on this slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List runningInstances; + + /** + * Output only. [Output Only] The physical topology of the reservation sub-block. + * @return value or {@code null} for none + */ + public ReservationSlotPhysicalTopology getPhysicalTopology() { + return physicalTopology; + } + + /** + * Output only. [Output Only] The physical topology of the reservation sub-block. + * @param physicalTopology physicalTopology or {@code null} for none + */ + public ReservationSlotStatus setPhysicalTopology(ReservationSlotPhysicalTopology physicalTopology) { + this.physicalTopology = physicalTopology; + return this; + } + + /** + * Output only. The RDMA IP address of the physical host. + * @return value or {@code null} for none + */ + public java.util.List getRdmaIpAddresses() { + return rdmaIpAddresses; + } + + /** + * Output only. The RDMA IP address of the physical host. + * @param rdmaIpAddresses rdmaIpAddresses or {@code null} for none + */ + public ReservationSlotStatus setRdmaIpAddresses(java.util.List rdmaIpAddresses) { + this.rdmaIpAddresses = rdmaIpAddresses; + return this; + } + + /** + * Output only. The URIs of the instances currently running on this slot. + * @return value or {@code null} for none + */ + public java.util.List getRunningInstances() { + return runningInstances; + } + + /** + * Output only. The URIs of the instances currently running on this slot. + * @param runningInstances runningInstances or {@code null} for none + */ + public ReservationSlotStatus setRunningInstances(java.util.List runningInstances) { + this.runningInstances = runningInstances; + return this; + } + + @Override + public ReservationSlotStatus set(String fieldName, Object value) { + return (ReservationSlotStatus) super.set(fieldName, value); + } + + @Override + public ReservationSlotStatus clone() { + return (ReservationSlotStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java new file mode 100644 index 00000000000..b83cc08701f --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java @@ -0,0 +1,63 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for ReservationSlotsGetResponse. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReservationSlotsGetResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSlot resource; + + /** + * @return value or {@code null} for none + */ + public ReservationSlot getResource() { + return resource; + } + + /** + * @param resource resource or {@code null} for none + */ + public ReservationSlotsGetResponse setResource(ReservationSlot resource) { + this.resource = resource; + return this; + } + + @Override + public ReservationSlotsGetResponse set(String fieldName, Object value) { + return (ReservationSlotsGetResponse) super.set(fieldName, value); + } + + @Override + public ReservationSlotsGetResponse clone() { + return (ReservationSlotsGetResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java new file mode 100644 index 00000000000..f00c0534eda --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for ReservationSlotsGetVersionRequest. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReservationSlotsGetVersionRequest extends com.google.api.client.json.GenericJson { + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sbomSelections; + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @return value or {@code null} for none + */ + public java.util.List getSbomSelections() { + return sbomSelections; + } + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @param sbomSelections sbomSelections or {@code null} for none + */ + public ReservationSlotsGetVersionRequest setSbomSelections(java.util.List sbomSelections) { + this.sbomSelections = sbomSelections; + return this; + } + + @Override + public ReservationSlotsGetVersionRequest set(String fieldName, Object value) { + return (ReservationSlotsGetVersionRequest) super.set(fieldName, value); + } + + @Override + public ReservationSlotsGetVersionRequest clone() { + return (ReservationSlotsGetVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java new file mode 100644 index 00000000000..9a5b6a712ab --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java @@ -0,0 +1,383 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of reservation slots within a single reservation. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReservationSlotsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of reservation slot resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider ReservationSlot used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ReservationSlot.class); + } + + /** + * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * An informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * The unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * The unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public ReservationSlotsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of reservation slot resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of reservation slot resources. + * @param items items or {@code null} for none + */ + public ReservationSlotsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. + * @param kind kind or {@code null} for none + */ + public ReservationSlotsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ReservationSlotsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * The server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReservationSlotsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * An informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning message. + * @param warning warning or {@code null} for none + */ + public ReservationSlotsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReservationSlotsListResponse set(String fieldName, Object value) { + return (ReservationSlotsListResponse) super.set(fieldName, value); + } + + @Override + public ReservationSlotsListResponse clone() { + return (ReservationSlotsListResponse) super.clone(); + } + + /** + * An informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for ReservationSlotsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 098b775ca4f..7e39ffbcc94 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -30,58 +30,68 @@ public final class ReservationSubBlock extends com.google.api.client.json.GenericJson { /** - * [Output Only] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * The value may be {@code null}. */ @com.google.api.client.util.Key private AcceleratorTopologiesInfo acceleratorTopologiesInfo; /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer count; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * The value may be {@code null}. */ @com.google.api.client.util.Key private ReservationSubBlockHealthInfo healthInfo; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation subBlock. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer inUseCount; /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer inUseHostCount; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for + * reservation subBlocks. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] The name of this reservation subBlock generated by Google Compute Engine. The - * name must be 1-63 characters long, and comply with RFC1035 @pattern + * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? * The value may be {@code null}. */ @@ -89,49 +99,49 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi private java.lang.String name; /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * The value may be {@code null}. */ @com.google.api.client.util.Key private ReservationSubBlockPhysicalTopology physicalTopology; /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * The value may be {@code null}. */ @com.google.api.client.util.Key private GroupMaintenanceInfo reservationSubBlockMaintenance; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLinkWithId; /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] Zone in which the reservation subBlock resides. + * Output only. [Output Only] Zone in which the reservation subBlock resides. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** - * [Output Only] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * @return value or {@code null} for none */ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { @@ -139,7 +149,7 @@ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { } /** - * [Output Only] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * @param acceleratorTopologiesInfo acceleratorTopologiesInfo or {@code null} for none */ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInfo acceleratorTopologiesInfo) { @@ -148,7 +158,7 @@ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInf } /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. * @return value or {@code null} for none */ public java.lang.Integer getCount() { @@ -156,7 +166,7 @@ public java.lang.Integer getCount() { } /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. * @param count count or {@code null} for none */ public ReservationSubBlock setCount(java.lang.Integer count) { @@ -165,7 +175,7 @@ public ReservationSubBlock setCount(java.lang.Integer count) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -173,7 +183,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -182,7 +192,7 @@ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimesta } /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockHealthInfo getHealthInfo() { @@ -190,7 +200,7 @@ public ReservationSubBlockHealthInfo getHealthInfo() { } /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * @param healthInfo healthInfo or {@code null} for none */ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { @@ -199,7 +209,8 @@ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInf } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -207,7 +218,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public ReservationSubBlock setId(java.math.BigInteger id) { @@ -216,7 +228,8 @@ public ReservationSubBlock setId(java.math.BigInteger id) { } /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation subBlock. * @return value or {@code null} for none */ public java.lang.Integer getInUseCount() { @@ -224,7 +237,8 @@ public java.lang.Integer getInUseCount() { } /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation subBlock. * @param inUseCount inUseCount or {@code null} for none */ public ReservationSubBlock setInUseCount(java.lang.Integer inUseCount) { @@ -233,8 +247,27 @@ public ReservationSubBlock setInUseCount(java.lang.Integer inUseCount) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * @return value or {@code null} for none + */ + public java.lang.Integer getInUseHostCount() { + return inUseHostCount; + } + + /** + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * @param inUseHostCount inUseHostCount or {@code null} for none + */ + public ReservationSubBlock setInUseHostCount(java.lang.Integer inUseHostCount) { + this.inUseHostCount = inUseHostCount; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for + * reservation subBlocks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -242,8 +275,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for + * reservation subBlocks. * @param kind kind or {@code null} for none */ public ReservationSubBlock setKind(java.lang.String kind) { @@ -252,8 +285,8 @@ public ReservationSubBlock setKind(java.lang.String kind) { } /** - * [Output Only] The name of this reservation subBlock generated by Google Compute Engine. The - * name must be 1-63 characters long, and comply with RFC1035 @pattern + * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? * @return value or {@code null} for none */ @@ -262,8 +295,8 @@ public java.lang.String getName() { } /** - * [Output Only] The name of this reservation subBlock generated by Google Compute Engine. The - * name must be 1-63 characters long, and comply with RFC1035 @pattern + * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? * @param name name or {@code null} for none */ @@ -273,7 +306,7 @@ public ReservationSubBlock setName(java.lang.String name) { } /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { @@ -281,7 +314,7 @@ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { } /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopology physicalTopology) { @@ -290,7 +323,7 @@ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopolo } /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { @@ -298,7 +331,7 @@ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { } /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none */ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { @@ -307,7 +340,7 @@ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInf } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -315,7 +348,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ReservationSubBlock setSelfLink(java.lang.String selfLink) { @@ -324,7 +357,7 @@ public ReservationSubBlock setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -332,7 +365,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -341,7 +374,7 @@ public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -349,7 +382,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * @param status status or {@code null} for none */ public ReservationSubBlock setStatus(java.lang.String status) { @@ -358,7 +391,7 @@ public ReservationSubBlock setStatus(java.lang.String status) { } /** - * [Output Only] Zone in which the reservation subBlock resides. + * Output only. [Output Only] Zone in which the reservation subBlock resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -366,7 +399,7 @@ public java.lang.String getZone() { } /** - * [Output Only] Zone in which the reservation subBlock resides. + * Output only. [Output Only] Zone in which the reservation subBlock resides. * @param zone zone or {@code null} for none */ public ReservationSubBlock setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java new file mode 100644 index 00000000000..f10458f7bb3 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for ReservationSubBlocksGetVersionRequest. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReservationSubBlocksGetVersionRequest extends com.google.api.client.json.GenericJson { + + /** + * The SBOM selection to return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sbomSelections; + + /** + * The SBOM selection to return. + * @return value or {@code null} for none + */ + public java.util.List getSbomSelections() { + return sbomSelections; + } + + /** + * The SBOM selection to return. + * @param sbomSelections sbomSelections or {@code null} for none + */ + public ReservationSubBlocksGetVersionRequest setSbomSelections(java.util.List sbomSelections) { + this.sbomSelections = sbomSelections; + return this; + } + + @Override + public ReservationSubBlocksGetVersionRequest set(String fieldName, Object value) { + return (ReservationSubBlocksGetVersionRequest) super.set(fieldName, value); + } + + @Override + public ReservationSubBlocksGetVersionRequest clone() { + return (ReservationSubBlocksGetVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java index 1a8c9dc1642..6bc0c38c573 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java @@ -31,7 +31,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyGroupPlacementPolicy groupPlacementPolicy; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -72,7 +73,8 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy; /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource + * policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -96,14 +98,14 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private java.lang.String region; /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private ResourcePolicyResourceStatus resourceStatus; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,7 +119,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy; /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +133,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyWorkloadPolicy workloadPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +141,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ResourcePolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -197,7 +199,8 @@ public ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -205,7 +208,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public ResourcePolicy setId(java.math.BigInteger id) { @@ -231,7 +235,8 @@ public ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePo } /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource + * policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -239,7 +244,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource + * policies. * @param kind kind or {@code null} for none */ public ResourcePolicy setKind(java.lang.String kind) { @@ -288,7 +294,7 @@ public ResourcePolicy setRegion(java.lang.String region) { } /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * @return value or {@code null} for none */ public ResourcePolicyResourceStatus getResourceStatus() { @@ -296,7 +302,7 @@ public ResourcePolicyResourceStatus getResourceStatus() { } /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * @param resourceStatus resourceStatus or {@code null} for none */ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceStatus) { @@ -305,7 +311,7 @@ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceSta } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -313,7 +319,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ResourcePolicy setSelfLink(java.lang.String selfLink) { @@ -339,7 +345,7 @@ public ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePo } /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -347,7 +353,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * @param status status or {@code null} for none */ public ResourcePolicy setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java index 62d0b0d5449..50b94076f75 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java @@ -56,7 +56,7 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +73,14 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +143,7 @@ public ResourcePolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ResourcePolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java index 3bdee011222..a23209854dd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java @@ -38,8 +38,8 @@ public final class ResourcePolicyDailyCycle extends com.google.api.client.json.G private java.lang.Integer daysInCycle; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,8 +73,8 @@ public ResourcePolicyDailyCycle setDaysInCycle(java.lang.Integer daysInCycle) { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. * @return value or {@code null} for none */ public java.lang.String getDuration() { @@ -82,8 +82,8 @@ public java.lang.String getDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. * @param duration duration or {@code null} for none */ public ResourcePolicyDailyCycle setDuration(java.lang.String duration) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java index 969219ee92b..7ef83defd1c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java @@ -30,6 +30,14 @@ @SuppressWarnings("javadoc") public final class ResourcePolicyGroupPlacementPolicy extends com.google.api.client.json.GenericJson { + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopologyMode; + /** * The number of availability domains to spread instances across. If two instances are in * different availability domain, they are not in the same low latency network. @@ -61,6 +69,25 @@ public final class ResourcePolicyGroupPlacementPolicy extends com.google.api.cli @com.google.api.client.util.Key private java.lang.Integer vmCount; + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopologyMode() { + return acceleratorTopologyMode; + } + + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * @param acceleratorTopologyMode acceleratorTopologyMode or {@code null} for none + */ + public ResourcePolicyGroupPlacementPolicy setAcceleratorTopologyMode(java.lang.String acceleratorTopologyMode) { + this.acceleratorTopologyMode = acceleratorTopologyMode; + return this; + } + /** * The number of availability domains to spread instances across. If two instances are in * different availability domain, they are not in the same low latency network. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java index 344c0e6dd69..7bc231a7392 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java @@ -30,8 +30,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json.GenericJson { /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,8 +54,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json. private java.lang.String startTime; /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. * @return value or {@code null} for none */ public java.lang.String getDuration() { @@ -63,8 +63,8 @@ public java.lang.String getDuration() { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. * @param duration duration or {@code null} for none */ public ResourcePolicyHourlyCycle setDuration(java.lang.String duration) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java index 0e74d741445..495e033dbc4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java @@ -56,7 +56,8 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,7 +74,7 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,7 +137,8 @@ public ResourcePolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -144,7 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * @param kind kind or {@code null} for none */ public ResourcePolicyList setKind(java.lang.String kind) { @@ -176,7 +179,7 @@ public ResourcePolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -184,7 +187,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ResourcePolicyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java index 0d0dcd61a5e..530e452effd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java @@ -32,16 +32,18 @@ public final class ResourcePolicyResourceStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] Specifies a set of output values reffering to the instance_schedule_policy system - * status. This field should have the same name as corresponding policy field. + * Output only. [Output Only] Specifies a set of output values reffering to the + * instance_schedule_policy system status. This field should have the same name as corresponding + * policy field. * The value may be {@code null}. */ @com.google.api.client.util.Key private ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instanceSchedulePolicy; /** - * [Output Only] Specifies a set of output values reffering to the instance_schedule_policy system - * status. This field should have the same name as corresponding policy field. + * Output only. [Output Only] Specifies a set of output values reffering to the + * instance_schedule_policy system status. This field should have the same name as corresponding + * policy field. * @return value or {@code null} for none */ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSchedulePolicy() { @@ -49,8 +51,9 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSched } /** - * [Output Only] Specifies a set of output values reffering to the instance_schedule_policy system - * status. This field should have the same name as corresponding policy field. + * Output only. [Output Only] Specifies a set of output values reffering to the + * instance_schedule_policy system status. This field should have the same name as corresponding + * policy field. * @param instanceSchedulePolicy instanceSchedulePolicy or {@code null} for none */ public ResourcePolicyResourceStatus setInstanceSchedulePolicy(ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instanceSchedulePolicy) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java index ee231f26daa..4a6a22e20dd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java @@ -30,22 +30,24 @@ public final class ResourcePolicyResourceStatusInstanceSchedulePolicyStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an + * RFC3339 string. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lastRunStartTime; /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * Output only. [Output Only] The next time the schedule is planned to run. The actual time might + * be slightly different. The timestamp is an RFC3339 string. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextRunStartTime; /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an + * RFC3339 string. * @return value or {@code null} for none */ public java.lang.String getLastRunStartTime() { @@ -53,7 +55,8 @@ public java.lang.String getLastRunStartTime() { } /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an + * RFC3339 string. * @param lastRunStartTime lastRunStartTime or {@code null} for none */ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartTime(java.lang.String lastRunStartTime) { @@ -62,8 +65,8 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartT } /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * Output only. [Output Only] The next time the schedule is planned to run. The actual time might + * be slightly different. The timestamp is an RFC3339 string. * @return value or {@code null} for none */ public java.lang.String getNextRunStartTime() { @@ -71,8 +74,8 @@ public java.lang.String getNextRunStartTime() { } /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * Output only. [Output Only] The next time the schedule is planned to run. The actual time might + * be slightly different. The timestamp is an RFC3339 string. * @param nextRunStartTime nextRunStartTime or {@code null} for none */ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setNextRunStartTime(java.lang.String nextRunStartTime) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java index c95509acb7f..620437c3886 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java @@ -39,8 +39,8 @@ public final class ResourcePolicyWeeklyCycleDayOfWeek extends com.google.api.cli private java.lang.String day; /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -76,8 +76,8 @@ public ResourcePolicyWeeklyCycleDayOfWeek setDay(java.lang.String day) { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. * @return value or {@code null} for none */ public java.lang.String getDuration() { @@ -85,8 +85,8 @@ public java.lang.String getDuration() { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. * @param duration duration or {@code null} for none */ public ResourcePolicyWeeklyCycleDayOfWeek setDuration(java.lang.String duration) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java index 19854040132..9396fb1f20f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java @@ -36,6 +36,14 @@ public final class ResourcePolicyWorkloadPolicy extends com.google.api.client.js @com.google.api.client.util.Key private java.lang.String acceleratorTopology; + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopologyMode; + /** * Specifies the maximum distance between instances. * The value may be {@code null}. @@ -67,6 +75,25 @@ public ResourcePolicyWorkloadPolicy setAcceleratorTopology(java.lang.String acce return this; } + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopologyMode() { + return acceleratorTopologyMode; + } + + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * @param acceleratorTopologyMode acceleratorTopologyMode or {@code null} for none + */ + public ResourcePolicyWorkloadPolicy setAcceleratorTopologyMode(java.lang.String acceleratorTopologyMode) { + this.acceleratorTopologyMode = acceleratorTopologyMode; + return this; + } + /** * Specifies the maximum distance between instances. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java index 23faee8ae98..88ed315aa42 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java @@ -31,32 +31,34 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, - * and instance-level predefined metadata keys to provide the overridden value for those metadata - * keys at the instance level. + * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal + * instance settings, and instance-level predefined metadata keys to provide the overridden value + * for those metadata keys at the instance level. * The value may be {@code null}. */ @com.google.api.client.util.Key private ResourceStatusEffectiveInstanceMetadata effectiveInstanceMetadata; /** - * [Output Only] The precise location of your instance within the zone's data center, including - * the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId. + * Output only. [Output Only] The precise location of your instance within the zone's data center, + * including the block, sub-block, and host. The field is formatted as follows: + * blockId/subBlockId/hostId. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String physicalHost; /** - * [Output Only] A series of fields containing the global name of the Compute Engine cluster, as - * well as the ID of the block, sub-block, and host on which the running instance is located. + * Output only. [Output Only] A series of fields containing the global name of the Compute Engine + * cluster, as well as the ID of the block, sub-block, and host on which the running instance is + * located. * The value may be {@code null}. */ @com.google.api.client.util.Key private ResourceStatusPhysicalHostTopology physicalHostTopology; /** - * [Output Only] Reservation information that the instance is consuming from. + * Output only. [Output Only] Reservation information that the instance is consuming from. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,9 +77,9 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private UpcomingMaintenance upcomingMaintenance; /** - * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, - * and instance-level predefined metadata keys to provide the overridden value for those metadata - * keys at the instance level. + * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal + * instance settings, and instance-level predefined metadata keys to provide the overridden value + * for those metadata keys at the instance level. * @return value or {@code null} for none */ public ResourceStatusEffectiveInstanceMetadata getEffectiveInstanceMetadata() { @@ -85,9 +87,9 @@ public ResourceStatusEffectiveInstanceMetadata getEffectiveInstanceMetadata() { } /** - * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, - * and instance-level predefined metadata keys to provide the overridden value for those metadata - * keys at the instance level. + * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal + * instance settings, and instance-level predefined metadata keys to provide the overridden value + * for those metadata keys at the instance level. * @param effectiveInstanceMetadata effectiveInstanceMetadata or {@code null} for none */ public ResourceStatus setEffectiveInstanceMetadata(ResourceStatusEffectiveInstanceMetadata effectiveInstanceMetadata) { @@ -96,8 +98,9 @@ public ResourceStatus setEffectiveInstanceMetadata(ResourceStatusEffectiveInstan } /** - * [Output Only] The precise location of your instance within the zone's data center, including - * the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId. + * Output only. [Output Only] The precise location of your instance within the zone's data center, + * including the block, sub-block, and host. The field is formatted as follows: + * blockId/subBlockId/hostId. * @return value or {@code null} for none */ public java.lang.String getPhysicalHost() { @@ -105,8 +108,9 @@ public java.lang.String getPhysicalHost() { } /** - * [Output Only] The precise location of your instance within the zone's data center, including - * the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId. + * Output only. [Output Only] The precise location of your instance within the zone's data center, + * including the block, sub-block, and host. The field is formatted as follows: + * blockId/subBlockId/hostId. * @param physicalHost physicalHost or {@code null} for none */ public ResourceStatus setPhysicalHost(java.lang.String physicalHost) { @@ -115,8 +119,9 @@ public ResourceStatus setPhysicalHost(java.lang.String physicalHost) { } /** - * [Output Only] A series of fields containing the global name of the Compute Engine cluster, as - * well as the ID of the block, sub-block, and host on which the running instance is located. + * Output only. [Output Only] A series of fields containing the global name of the Compute Engine + * cluster, as well as the ID of the block, sub-block, and host on which the running instance is + * located. * @return value or {@code null} for none */ public ResourceStatusPhysicalHostTopology getPhysicalHostTopology() { @@ -124,8 +129,9 @@ public ResourceStatusPhysicalHostTopology getPhysicalHostTopology() { } /** - * [Output Only] A series of fields containing the global name of the Compute Engine cluster, as - * well as the ID of the block, sub-block, and host on which the running instance is located. + * Output only. [Output Only] A series of fields containing the global name of the Compute Engine + * cluster, as well as the ID of the block, sub-block, and host on which the running instance is + * located. * @param physicalHostTopology physicalHostTopology or {@code null} for none */ public ResourceStatus setPhysicalHostTopology(ResourceStatusPhysicalHostTopology physicalHostTopology) { @@ -134,7 +140,7 @@ public ResourceStatus setPhysicalHostTopology(ResourceStatusPhysicalHostTopology } /** - * [Output Only] Reservation information that the instance is consuming from. + * Output only. [Output Only] Reservation information that the instance is consuming from. * @return value or {@code null} for none */ public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() { @@ -142,7 +148,7 @@ public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() } /** - * [Output Only] Reservation information that the instance is consuming from. + * Output only. [Output Only] Reservation information that the instance is consuming from. * @param reservationConsumptionInfo reservationConsumptionInfo or {@code null} for none */ public ResourceStatus setReservationConsumptionInfo(ResourceStatusReservationConsumptionInfo reservationConsumptionInfo) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java index a4fb3dc3ba9..4ab03361f12 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java @@ -64,6 +64,13 @@ public final class ResourceStatusEffectiveInstanceMetadata extends com.google.ap @com.google.api.client.util.Key private java.lang.Boolean enableOsloginMetadataValue; + /** + * Effective gce-container-declaration value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean gceContainerDeclarationMetadataValue; + /** * Effective serial-port-enable value at Instance level. * The value may be {@code null}. @@ -170,6 +177,23 @@ public ResourceStatusEffectiveInstanceMetadata setEnableOsloginMetadataValue(jav return this; } + /** + * Effective gce-container-declaration value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getGceContainerDeclarationMetadataValue() { + return gceContainerDeclarationMetadataValue; + } + + /** + * Effective gce-container-declaration value at Instance level. + * @param gceContainerDeclarationMetadataValue gceContainerDeclarationMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setGceContainerDeclarationMetadataValue(java.lang.Boolean gceContainerDeclarationMetadataValue) { + this.gceContainerDeclarationMetadataValue = gceContainerDeclarationMetadataValue; + return this; + } + /** * Effective serial-port-enable value at Instance level. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java index 33bdf54ed61..7753f710612 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java @@ -30,14 +30,16 @@ public final class ResourceStatusReservationConsumptionInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] The full resource name of the reservation that this instance is consuming from. + * Output only. [Output Only] The full resource name of the reservation that this instance is + * consuming from. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String consumedReservation; /** - * [Output Only] The full resource name of the reservation that this instance is consuming from. + * Output only. [Output Only] The full resource name of the reservation that this instance is + * consuming from. * @return value or {@code null} for none */ public java.lang.String getConsumedReservation() { @@ -45,7 +47,8 @@ public java.lang.String getConsumedReservation() { } /** - * [Output Only] The full resource name of the reservation that this instance is consuming from. + * Output only. [Output Only] The full resource name of the reservation that this instance is + * consuming from. * @param consumedReservation consumedReservation or {@code null} for none */ public ResourceStatusReservationConsumptionInfo setConsumedReservation(java.lang.String consumedReservation) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java index f8dd254158c..e4a8f6741cb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java @@ -34,14 +34,14 @@ public final class Route extends com.google.api.client.json.GenericJson { /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List asPaths; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -64,14 +64,15 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String destRange; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -105,8 +106,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopGateway; /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that + * will handle matching packets. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -139,13 +140,23 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopInstance; /** - * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on - * factors such as network performance, distance, and available bandwidth between regions. + * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates + * based on factors such as network performance, distance, and available bandwidth between + * regions. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Long nextHopInterRegionCost; + /** + * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the + * route. This field will only be populated for dynamic routes generated by Cloud Router with a + * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopInterconnectAttachment; + /** * The network IP address of an instance that should handle matching packets. Both IPv6 address * and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. @@ -158,8 +169,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopIp; /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the + * desirability of a particular route in a network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -173,16 +184,16 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopNetwork; /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway + * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextHopOrigin; /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * Output only. [Output Only] The network peering name that should handle matching packets, which + * should conform to RFC1035. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -214,18 +225,18 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.Long priority; /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud + * Routers. It is also applicable to routes undergoing migration. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String routeStatus; /** - * [Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for - * a transit route that this router learned from another Cloud Router and will readvertise to one - * of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned - * from a BGP peer of this router - 'STATIC' for a static route + * Output only. [Output Only] The type of this route, which can be one of the following values: - + * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will + * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' + * for a route learned from a BGP peer of this router - 'STATIC' for a static route * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -246,8 +257,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.util.List tags; /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * Output only. [Output Only] If potential misconfigurations are detected for this route, this + * field will be populated with warning messages. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -260,7 +271,7 @@ public final class Route extends com.google.api.client.json.GenericJson { } /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -268,7 +279,7 @@ public java.util.List getAsPaths() { } /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * @param asPaths asPaths or {@code null} for none */ public Route setAsPaths(java.util.List asPaths) { @@ -277,7 +288,7 @@ public Route setAsPaths(java.util.List asPaths) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -285,7 +296,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Route setCreationTimestamp(java.lang.String creationTimestamp) { @@ -332,7 +343,8 @@ public Route setDestRange(java.lang.String destRange) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -340,7 +352,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Route setId(java.math.BigInteger id) { @@ -349,7 +362,7 @@ public Route setId(java.math.BigInteger id) { } /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -357,7 +370,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. * @param kind kind or {@code null} for none */ public Route setKind(java.lang.String kind) { @@ -429,8 +442,8 @@ public Route setNextHopGateway(java.lang.String nextHopGateway) { } /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that + * will handle matching packets. * @return value or {@code null} for none */ public java.lang.String getNextHopHub() { @@ -438,8 +451,8 @@ public java.lang.String getNextHopHub() { } /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that + * will handle matching packets. * @param nextHopHub nextHopHub or {@code null} for none */ public Route setNextHopHub(java.lang.String nextHopHub) { @@ -506,8 +519,9 @@ public Route setNextHopInstance(java.lang.String nextHopInstance) { } /** - * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on - * factors such as network performance, distance, and available bandwidth between regions. + * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates + * based on factors such as network performance, distance, and available bandwidth between + * regions. * @return value or {@code null} for none */ public java.lang.Long getNextHopInterRegionCost() { @@ -515,8 +529,9 @@ public java.lang.Long getNextHopInterRegionCost() { } /** - * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on - * factors such as network performance, distance, and available bandwidth between regions. + * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates + * based on factors such as network performance, distance, and available bandwidth between + * regions. * @param nextHopInterRegionCost nextHopInterRegionCost or {@code null} for none */ public Route setNextHopInterRegionCost(java.lang.Long nextHopInterRegionCost) { @@ -524,6 +539,27 @@ public Route setNextHopInterRegionCost(java.lang.Long nextHopInterRegionCost) { return this; } + /** + * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the + * route. This field will only be populated for dynamic routes generated by Cloud Router with a + * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopInterconnectAttachment() { + return nextHopInterconnectAttachment; + } + + /** + * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the + * route. This field will only be populated for dynamic routes generated by Cloud Router with a + * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. + * @param nextHopInterconnectAttachment nextHopInterconnectAttachment or {@code null} for none + */ + public Route setNextHopInterconnectAttachment(java.lang.String nextHopInterconnectAttachment) { + this.nextHopInterconnectAttachment = nextHopInterconnectAttachment; + return this; + } + /** * The network IP address of an instance that should handle matching packets. Both IPv6 address * and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. @@ -550,8 +586,8 @@ public Route setNextHopIp(java.lang.String nextHopIp) { } /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the + * desirability of a particular route in a network. * @return value or {@code null} for none */ public java.lang.Long getNextHopMed() { @@ -559,8 +595,8 @@ public java.lang.Long getNextHopMed() { } /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the + * desirability of a particular route in a network. * @param nextHopMed nextHopMed or {@code null} for none */ public Route setNextHopMed(java.lang.Long nextHopMed) { @@ -586,8 +622,8 @@ public Route setNextHopNetwork(java.lang.String nextHopNetwork) { } /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway + * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. * @return value or {@code null} for none */ public java.lang.String getNextHopOrigin() { @@ -595,8 +631,8 @@ public java.lang.String getNextHopOrigin() { } /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway + * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. * @param nextHopOrigin nextHopOrigin or {@code null} for none */ public Route setNextHopOrigin(java.lang.String nextHopOrigin) { @@ -605,8 +641,8 @@ public Route setNextHopOrigin(java.lang.String nextHopOrigin) { } /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * Output only. [Output Only] The network peering name that should handle matching packets, which + * should conform to RFC1035. * @return value or {@code null} for none */ public java.lang.String getNextHopPeering() { @@ -614,8 +650,8 @@ public java.lang.String getNextHopPeering() { } /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * Output only. [Output Only] The network peering name that should handle matching packets, which + * should conform to RFC1035. * @param nextHopPeering nextHopPeering or {@code null} for none */ public Route setNextHopPeering(java.lang.String nextHopPeering) { @@ -683,8 +719,8 @@ public Route setPriority(java.lang.Long priority) { } /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud + * Routers. It is also applicable to routes undergoing migration. * @return value or {@code null} for none */ public java.lang.String getRouteStatus() { @@ -692,8 +728,8 @@ public java.lang.String getRouteStatus() { } /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud + * Routers. It is also applicable to routes undergoing migration. * @param routeStatus routeStatus or {@code null} for none */ public Route setRouteStatus(java.lang.String routeStatus) { @@ -702,10 +738,10 @@ public Route setRouteStatus(java.lang.String routeStatus) { } /** - * [Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for - * a transit route that this router learned from another Cloud Router and will readvertise to one - * of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned - * from a BGP peer of this router - 'STATIC' for a static route + * Output only. [Output Only] The type of this route, which can be one of the following values: - + * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will + * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' + * for a route learned from a BGP peer of this router - 'STATIC' for a static route * @return value or {@code null} for none */ public java.lang.String getRouteType() { @@ -713,10 +749,10 @@ public java.lang.String getRouteType() { } /** - * [Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for - * a transit route that this router learned from another Cloud Router and will readvertise to one - * of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned - * from a BGP peer of this router - 'STATIC' for a static route + * Output only. [Output Only] The type of this route, which can be one of the following values: - + * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will + * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' + * for a route learned from a BGP peer of this router - 'STATIC' for a static route * @param routeType routeType or {@code null} for none */ public Route setRouteType(java.lang.String routeType) { @@ -759,8 +795,8 @@ public Route setTags(java.util.List tags) { } /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * Output only. [Output Only] If potential misconfigurations are detected for this route, this + * field will be populated with warning messages. * @return value or {@code null} for none */ public java.util.List getWarnings() { @@ -768,8 +804,8 @@ public java.util.List getWarnings() { } /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * Output only. [Output Only] If potential misconfigurations are detected for this route, this + * field will be populated with warning messages. * @param warnings warnings or {@code null} for none */ public Route setWarnings(java.util.List warnings) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteList.java index 9052a3d434e..cd5b56ea9e0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteList.java @@ -50,7 +50,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RouteList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RouteList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RouteList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RouteList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Router.java index 1d58f31cf31..9ab67113af9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Router.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Router.java @@ -48,7 +48,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List bgpPeers; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,7 +89,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List interfaces; /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -189,7 +189,7 @@ public Router setBgpPeers(java.util.List bgpPeers) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -197,7 +197,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Router setCreationTimestamp(java.lang.String creationTimestamp) { @@ -286,7 +286,7 @@ public Router setInterfaces(java.util.List interfaces) { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -294,7 +294,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @param kind kind or {@code null} for none */ public Router setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java index 307e0afc33c..db21c3e9216 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java @@ -44,7 +44,7 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public RouterAggregatedList setItems(java.util.Map it } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RouterAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public RouterAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RouterAggregatedList setSelfLink(java.lang.String selfLink) { @@ -173,7 +173,7 @@ public RouterAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RouterAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java index f4f262041a8..b133d765ef9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java @@ -166,12 +166,12 @@ public final class RouterBgpPeer extends com.google.api.client.json.GenericJson private java.lang.String ipv6NexthopAddress; /** - * [Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER - * is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is - * a BGP peer that is configured and managed by Cloud Interconnect, specifically by an - * InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes - * this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or - * deleted. + * Output only. [Output Only] The resource that configures and manages this BGP peer. - + * MANAGED_BY_USER is the default value and can be managed by you or other users - + * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, + * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is + * created, updated, or deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -543,12 +543,12 @@ public RouterBgpPeer setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) } /** - * [Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER - * is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is - * a BGP peer that is configured and managed by Cloud Interconnect, specifically by an - * InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes - * this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or - * deleted. + * Output only. [Output Only] The resource that configures and manages this BGP peer. - + * MANAGED_BY_USER is the default value and can be managed by you or other users - + * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, + * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is + * created, updated, or deleted. * @return value or {@code null} for none */ public java.lang.String getManagementType() { @@ -556,12 +556,12 @@ public java.lang.String getManagementType() { } /** - * [Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER - * is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is - * a BGP peer that is configured and managed by Cloud Interconnect, specifically by an - * InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes - * this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or - * deleted. + * Output only. [Output Only] The resource that configures and manages this BGP peer. - + * MANAGED_BY_USER is the default value and can be managed by you or other users - + * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, + * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is + * created, updated, or deleted. * @param managementType managementType or {@code null} for none */ public RouterBgpPeer setManagementType(java.lang.String managementType) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterInterface.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterInterface.java index 93e8c4c2c42..779d4921d86 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterInterface.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterInterface.java @@ -69,12 +69,12 @@ public final class RouterInterface extends com.google.api.client.json.GenericJso private java.lang.String linkedVpnTunnel; /** - * [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER - * is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an - * interface that is configured and managed by Cloud Interconnect, specifically, by an - * InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes - * this type of interface when the PARTNER InterconnectAttachment is created, updated, or - * deleted. + * Output only. [Output Only] The resource that configures and manages this interface. - + * MANAGED_BY_USER is the default value and can be managed directly by users. - + * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, + * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is + * created, updated, or deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -214,12 +214,12 @@ public RouterInterface setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { } /** - * [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER - * is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an - * interface that is configured and managed by Cloud Interconnect, specifically, by an - * InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes - * this type of interface when the PARTNER InterconnectAttachment is created, updated, or - * deleted. + * Output only. [Output Only] The resource that configures and manages this interface. - + * MANAGED_BY_USER is the default value and can be managed directly by users. - + * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, + * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is + * created, updated, or deleted. * @return value or {@code null} for none */ public java.lang.String getManagementType() { @@ -227,12 +227,12 @@ public java.lang.String getManagementType() { } /** - * [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER - * is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an - * interface that is configured and managed by Cloud Interconnect, specifically, by an - * InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes - * this type of interface when the PARTNER InterconnectAttachment is created, updated, or - * deleted. + * Output only. [Output Only] The resource that configures and manages this interface. - + * MANAGED_BY_USER is the default value and can be managed directly by users. - + * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, + * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is + * created, updated, or deleted. * @param managementType managementType or {@code null} for none */ public RouterInterface setManagementType(java.lang.String managementType) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterList.java index 6f5d8bad44d..95df0e9398e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterList.java @@ -50,7 +50,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RouterList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @param kind kind or {@code null} for none */ public RouterList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RouterList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RouterList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java index 52c5d87fe82..71bdb7c3925 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java @@ -49,42 +49,44 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private BfdStatus bfdStatus; /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 4. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean enableIpv4; /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 6. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean enableIpv6; /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ipAddress; /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ipv4NexthopAddress; /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ipv6NexthopAddress; /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,59 +100,59 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.Boolean md5AuthEnabled; /** - * Name of this BGP peer. Unique within the Routers resource. + * Output only. Name of this BGP peer. Unique within the Routers resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * Number of routes learned from the remote BGP Peer. + * Output only. Number of routes learned from the remote BGP Peer. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Long numLearnedRoutes; /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String peerIpAddress; /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String peerIpv4NexthopAddress; /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String peerIpv6NexthopAddress; /** - * [Output only] URI of the VM instance that is used as third-party router appliances such as Next - * Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer side of the - * BGP session. + * Output only. [Output only] URI of the VM instance that is used as third-party router appliances + * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer + * side of the BGP session. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String routerApplianceInstance; /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP + * session states. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,15 +166,15 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.String statusReason; /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 + * minutes, 59 seconds * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String uptime; /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -211,7 +213,8 @@ public RouterStatusBgpPeerStatus setBfdStatus(BfdStatus bfdStatus) { } /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 4. * @return value or {@code null} for none */ public java.lang.Boolean getEnableIpv4() { @@ -219,7 +222,8 @@ public java.lang.Boolean getEnableIpv4() { } /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 4. * @param enableIpv4 enableIpv4 or {@code null} for none */ public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { @@ -228,7 +232,8 @@ public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { } /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 6. * @return value or {@code null} for none */ public java.lang.Boolean getEnableIpv6() { @@ -236,7 +241,8 @@ public java.lang.Boolean getEnableIpv6() { } /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 6. * @param enableIpv6 enableIpv6 or {@code null} for none */ public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { @@ -245,7 +251,7 @@ public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { } /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpAddress() { @@ -253,7 +259,7 @@ public java.lang.String getIpAddress() { } /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * @param ipAddress ipAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { @@ -262,7 +268,7 @@ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { } /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv4NexthopAddress() { @@ -270,7 +276,7 @@ public java.lang.String getIpv4NexthopAddress() { } /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { @@ -279,7 +285,7 @@ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4Next } /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv6NexthopAddress() { @@ -287,7 +293,7 @@ public java.lang.String getIpv6NexthopAddress() { } /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { @@ -296,7 +302,7 @@ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6Next } /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * @return value or {@code null} for none */ public java.lang.String getLinkedVpnTunnel() { @@ -304,7 +310,7 @@ public java.lang.String getLinkedVpnTunnel() { } /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * @param linkedVpnTunnel linkedVpnTunnel or {@code null} for none */ public RouterStatusBgpPeerStatus setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { @@ -330,7 +336,7 @@ public RouterStatusBgpPeerStatus setMd5AuthEnabled(java.lang.Boolean md5AuthEnab } /** - * Name of this BGP peer. Unique within the Routers resource. + * Output only. Name of this BGP peer. Unique within the Routers resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -338,7 +344,7 @@ public java.lang.String getName() { } /** - * Name of this BGP peer. Unique within the Routers resource. + * Output only. Name of this BGP peer. Unique within the Routers resource. * @param name name or {@code null} for none */ public RouterStatusBgpPeerStatus setName(java.lang.String name) { @@ -347,7 +353,7 @@ public RouterStatusBgpPeerStatus setName(java.lang.String name) { } /** - * Number of routes learned from the remote BGP Peer. + * Output only. Number of routes learned from the remote BGP Peer. * @return value or {@code null} for none */ public java.lang.Long getNumLearnedRoutes() { @@ -355,7 +361,7 @@ public java.lang.Long getNumLearnedRoutes() { } /** - * Number of routes learned from the remote BGP Peer. + * Output only. Number of routes learned from the remote BGP Peer. * @param numLearnedRoutes numLearnedRoutes or {@code null} for none */ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRoutes) { @@ -364,7 +370,7 @@ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRo } /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpAddress() { @@ -372,7 +378,7 @@ public java.lang.String getPeerIpAddress() { } /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * @param peerIpAddress peerIpAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress) { @@ -381,7 +387,7 @@ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress } /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv4NexthopAddress() { @@ -389,7 +395,7 @@ public java.lang.String getPeerIpv4NexthopAddress() { } /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { @@ -398,7 +404,7 @@ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peer } /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv6NexthopAddress() { @@ -406,7 +412,7 @@ public java.lang.String getPeerIpv6NexthopAddress() { } /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { @@ -415,9 +421,9 @@ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peer } /** - * [Output only] URI of the VM instance that is used as third-party router appliances such as Next - * Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer side of the - * BGP session. + * Output only. [Output only] URI of the VM instance that is used as third-party router appliances + * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer + * side of the BGP session. * @return value or {@code null} for none */ public java.lang.String getRouterApplianceInstance() { @@ -425,9 +431,9 @@ public java.lang.String getRouterApplianceInstance() { } /** - * [Output only] URI of the VM instance that is used as third-party router appliances such as Next - * Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer side of the - * BGP session. + * Output only. [Output only] URI of the VM instance that is used as third-party router appliances + * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer + * side of the BGP session. * @param routerApplianceInstance routerApplianceInstance or {@code null} for none */ public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String routerApplianceInstance) { @@ -436,8 +442,8 @@ public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String rou } /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP + * session states. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -445,8 +451,8 @@ public java.lang.String getState() { } /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP + * session states. * @param state state or {@code null} for none */ public RouterStatusBgpPeerStatus setState(java.lang.String state) { @@ -455,7 +461,7 @@ public RouterStatusBgpPeerStatus setState(java.lang.String state) { } /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -463,7 +469,7 @@ public java.lang.String getStatus() { } /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * @param status status or {@code null} for none */ public RouterStatusBgpPeerStatus setStatus(java.lang.String status) { @@ -489,8 +495,8 @@ public RouterStatusBgpPeerStatus setStatusReason(java.lang.String statusReason) } /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 + * minutes, 59 seconds * @return value or {@code null} for none */ public java.lang.String getUptime() { @@ -498,8 +504,8 @@ public java.lang.String getUptime() { } /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 + * minutes, 59 seconds * @param uptime uptime or {@code null} for none */ public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { @@ -508,7 +514,7 @@ public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { } /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * @return value or {@code null} for none */ public java.lang.String getUptimeSeconds() { @@ -516,7 +522,7 @@ public java.lang.String getUptimeSeconds() { } /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * @param uptimeSeconds uptimeSeconds or {@code null} for none */ public RouterStatusBgpPeerStatus setUptimeSeconds(java.lang.String uptimeSeconds) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java index 7444eae4ae0..ef71891d9b5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java @@ -30,14 +30,14 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.GenericJson { /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List autoAllocatedNatIps; /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", * "179.12.26.133"]. * The value may be {@code null}. */ @@ -45,7 +45,7 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List drainAutoAllocatedNatIps; /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", * "179.12.26.133"]. * The value may be {@code null}. */ @@ -53,23 +53,23 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List drainUserAllocatedNatIps; /** - * The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are - * NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto- - * allocation of NAT IPs is *not* used. + * Output only. The number of extra IPs to allocate. This will be greater than 0 only if user- + * specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful + * only when auto-allocation of NAT IPs is *not* used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer minExtraNatIpsNeeded; /** - * Unique name of this NAT. + * Output only. Unique name of this NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * Number of VM endpoints (i.e., Nics) that can use NAT. + * Output only. Number of VM endpoints (i.e., Nics) that can use NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,21 +83,22 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List ruleStatus; /** - * A list of fully qualified URLs of reserved IP address resources. + * Output only. A list of fully qualified URLs of reserved IP address resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List userAllocatedNatIpResources; /** - * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like + * "179.12.26.133". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List userAllocatedNatIps; /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] * @return value or {@code null} for none */ public java.util.List getAutoAllocatedNatIps() { @@ -105,7 +106,7 @@ public java.util.List getAutoAllocatedNatIps() { } /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] * @param autoAllocatedNatIps autoAllocatedNatIps or {@code null} for none */ public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List autoAllocatedNatIps) { @@ -114,7 +115,7 @@ public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List getDrainAutoAllocatedNatIps() { } /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", * "179.12.26.133"]. * @param drainAutoAllocatedNatIps drainAutoAllocatedNatIps or {@code null} for none */ @@ -133,7 +134,7 @@ public RouterStatusNatStatus setDrainAutoAllocatedNatIps(java.util.List getDrainUserAllocatedNatIps() { } /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", * "179.12.26.133"]. * @param drainUserAllocatedNatIps drainUserAllocatedNatIps or {@code null} for none */ @@ -152,9 +153,9 @@ public RouterStatusNatStatus setDrainUserAllocatedNatIps(java.util.List getUserAllocatedNatIpResources() { @@ -232,7 +233,7 @@ public java.util.List getUserAllocatedNatIpResources() { } /** - * A list of fully qualified URLs of reserved IP address resources. + * Output only. A list of fully qualified URLs of reserved IP address resources. * @param userAllocatedNatIpResources userAllocatedNatIpResources or {@code null} for none */ public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List userAllocatedNatIpResources) { @@ -241,7 +242,8 @@ public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List getUserAllocatedNatIps() { @@ -249,7 +251,8 @@ public java.util.List getUserAllocatedNatIps() { } /** - * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like + * "179.12.26.133". * @param userAllocatedNatIps userAllocatedNatIps or {@code null} for none */ public RouterStatusNatStatus setUserAllocatedNatIps(java.util.List userAllocatedNatIps) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java index db7f3b5c89d..cbbdfb39f77 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java @@ -30,43 +30,44 @@ public final class RouterStatusNatStatusNatRuleStatus extends com.google.api.client.json.GenericJson { /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List activeNatIps; /** - * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List drainNatIps; /** - * The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in - * this NAT Rule are NOT enough to allow all configured VMs to use NAT. + * Output only. The number of extra IPs to allocate. This will be greater than 0 only if the + * existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer minExtraIpsNeeded; /** - * Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. + * Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer numVmEndpointsWithNatMappings; /** - * Rule number of the rule. + * Output only. Rule number of the rule. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer ruleNumber; /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. * @return value or {@code null} for none */ public java.util.List getActiveNatIps() { @@ -74,7 +75,7 @@ public java.util.List getActiveNatIps() { } /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. * @param activeNatIps activeNatIps or {@code null} for none */ public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List activeNatIps) { @@ -83,7 +84,8 @@ public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List getDrainNatIps() { @@ -91,7 +93,8 @@ public java.util.List getDrainNatIps() { } /** - * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. * @param drainNatIps drainNatIps or {@code null} for none */ public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.List drainNatIps) { @@ -100,8 +103,8 @@ public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { @@ -200,7 +203,7 @@ public RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListBgpRoutes setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java index b527ad775a6..1a62c00b46b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java @@ -43,8 +43,8 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists + * of route policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,14 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,8 +127,8 @@ public RoutersListRoutePolicies setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists + * of route policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -136,8 +136,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists + * of route policies. * @param kind kind or {@code null} for none */ public RoutersListRoutePolicies setKind(java.lang.String kind) { @@ -186,7 +186,7 @@ public RoutersListRoutePolicies setResult(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { @@ -203,7 +203,7 @@ public RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListRoutePolicies setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java index bf7e29946a2..200770cde8a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java @@ -67,7 +67,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.Long diskSizeGb; /** - * [Output Only] URL of the disk type resource. For + * Output only. [Output Only] URL of the disk type resource. For * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd * The value may be {@code null}. */ @@ -89,7 +89,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * Output only. Specifies zero-based index of the disk that is attached to the source instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,14 +103,14 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String interface__; /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,17 +131,18 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String source; /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine + * image. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long storageBytes; /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -244,7 +245,7 @@ public SavedAttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] URL of the disk type resource. For + * Output only. [Output Only] URL of the disk type resource. For * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd * @return value or {@code null} for none */ @@ -253,7 +254,7 @@ public java.lang.String getDiskType() { } /** - * [Output Only] URL of the disk type resource. For + * Output only. [Output Only] URL of the disk type resource. For * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd * @param diskType diskType or {@code null} for none */ @@ -282,7 +283,7 @@ public SavedAttachedDisk setGuestOsFeatures(java.util.List guest } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * Output only. Specifies zero-based index of the disk that is attached to the source instance. * @return value or {@code null} for none */ public java.lang.Integer getIndex() { @@ -290,7 +291,7 @@ public java.lang.Integer getIndex() { } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * Output only. Specifies zero-based index of the disk that is attached to the source instance. * @param index index or {@code null} for none */ public SavedAttachedDisk setIndex(java.lang.Integer index) { @@ -316,7 +317,7 @@ public SavedAttachedDisk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -324,7 +325,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * @param kind kind or {@code null} for none */ public SavedAttachedDisk setKind(java.lang.String kind) { @@ -333,7 +334,7 @@ public SavedAttachedDisk setKind(java.lang.String kind) { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -341,7 +342,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @param licenses licenses or {@code null} for none */ public SavedAttachedDisk setLicenses(java.util.List licenses) { @@ -384,7 +385,8 @@ public SavedAttachedDisk setSource(java.lang.String source) { } /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine + * image. * @return value or {@code null} for none */ public java.lang.Long getStorageBytes() { @@ -392,7 +394,8 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine + * image. * @param storageBytes storageBytes or {@code null} for none */ public SavedAttachedDisk setStorageBytes(java.lang.Long storageBytes) { @@ -401,10 +404,10 @@ public SavedAttachedDisk setStorageBytes(java.lang.Long storageBytes) { } /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * @return value or {@code null} for none */ public java.lang.String getStorageBytesStatus() { @@ -412,10 +415,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * @param storageBytesStatus storageBytesStatus or {@code null} for none */ public SavedAttachedDisk setStorageBytesStatus(java.lang.String storageBytesStatus) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedDisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedDisk.java index a9935b2bb70..aaed00e16f7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedDisk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedDisk.java @@ -30,45 +30,45 @@ public final class SavedDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the attached disk. + * Output only. [Output Only] The architecture of the attached disk. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String architecture; /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * Specifies a URL of the disk attached to the source instance. + * Output only. Specifies a URL of the disk attached to the source instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceDisk; /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long storageBytes; /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String storageBytesStatus; /** - * [Output Only] The architecture of the attached disk. + * Output only. [Output Only] The architecture of the attached disk. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -76,7 +76,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the attached disk. + * Output only. [Output Only] The architecture of the attached disk. * @param architecture architecture or {@code null} for none */ public SavedDisk setArchitecture(java.lang.String architecture) { @@ -85,7 +85,7 @@ public SavedDisk setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -93,7 +93,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. * @param kind kind or {@code null} for none */ public SavedDisk setKind(java.lang.String kind) { @@ -102,7 +102,7 @@ public SavedDisk setKind(java.lang.String kind) { } /** - * Specifies a URL of the disk attached to the source instance. + * Output only. Specifies a URL of the disk attached to the source instance. * @return value or {@code null} for none */ public java.lang.String getSourceDisk() { @@ -110,7 +110,7 @@ public java.lang.String getSourceDisk() { } /** - * Specifies a URL of the disk attached to the source instance. + * Output only. Specifies a URL of the disk attached to the source instance. * @param sourceDisk sourceDisk or {@code null} for none */ public SavedDisk setSourceDisk(java.lang.String sourceDisk) { @@ -119,7 +119,7 @@ public SavedDisk setSourceDisk(java.lang.String sourceDisk) { } /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. * @return value or {@code null} for none */ public java.lang.Long getStorageBytes() { @@ -127,7 +127,7 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. * @param storageBytes storageBytes or {@code null} for none */ public SavedDisk setStorageBytes(java.lang.Long storageBytes) { @@ -136,10 +136,10 @@ public SavedDisk setStorageBytes(java.lang.Long storageBytes) { } /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * @return value or {@code null} for none */ public java.lang.String getStorageBytesStatus() { @@ -147,10 +147,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * @param storageBytesStatus storageBytesStatus or {@code null} for none */ public SavedDisk setStorageBytesStatus(java.lang.String storageBytesStatus) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Screenshot.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Screenshot.java index 4eed043ce0c..3aabd23a6e1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Screenshot.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Screenshot.java @@ -37,7 +37,7 @@ public final class Screenshot extends com.google.api.client.json.GenericJson { private java.lang.String contents; /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public Screenshot setContents(java.lang.String contents) { } /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. * @param kind kind or {@code null} for none */ public Screenshot setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java index b6a54a3106a..a84058c3cc4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java @@ -50,8 +50,8 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for lists of - * Security Policies. + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for + * lists of Security Policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SecurityPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SecurityPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java index 2d6c3711010..492dc78b076 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java @@ -52,7 +52,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,14 +85,16 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -130,7 +132,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,8 +145,8 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig; /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * Output only. [Output Only] URL of the region where the regional security policy resides. This + * field is not applicable to global security policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,7 +164,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List rules; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -267,7 +269,7 @@ public SecurityPolicy setAssociations(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -275,7 +277,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SecurityPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -385,7 +387,8 @@ public SecurityPolicy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -393,7 +396,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public SecurityPolicy setId(java.math.BigInteger id) { @@ -402,7 +406,8 @@ public SecurityPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -410,7 +415,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * @param kind kind or {@code null} for none */ public SecurityPolicy setKind(java.lang.String kind) { @@ -528,7 +534,7 @@ public SecurityPolicy setName(java.lang.String name) { } /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * @return value or {@code null} for none */ public java.lang.String getParent() { @@ -536,7 +542,7 @@ public java.lang.String getParent() { } /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * @param parent parent or {@code null} for none */ public SecurityPolicy setParent(java.lang.String parent) { @@ -560,8 +566,8 @@ public SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsCo } /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * Output only. [Output Only] URL of the region where the regional security policy resides. This + * field is not applicable to global security policies. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -569,8 +575,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * Output only. [Output Only] URL of the region where the regional security policy resides. This + * field is not applicable to global security policies. * @param region region or {@code null} for none */ public SecurityPolicy setRegion(java.lang.String region) { @@ -604,7 +610,7 @@ public SecurityPolicy setRules(java.util.List rules) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -612,7 +618,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public SecurityPolicy setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java index 1ea02743134..a555297c576 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java @@ -49,6 +49,14 @@ public final class SecurityPolicyAdvancedOptionsConfig extends com.google.api.cl @com.google.api.client.util.Key private java.lang.String logLevel; + /** + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestBodyInspectionSize; + /** * An optional list of case-insensitive request header names to use for resolving the callers * client IP address. @@ -106,6 +114,25 @@ public SecurityPolicyAdvancedOptionsConfig setLogLevel(java.lang.String logLevel return this; } + /** + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. + * @return value or {@code null} for none + */ + public java.lang.String getRequestBodyInspectionSize() { + return requestBodyInspectionSize; + } + + /** + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. + * @param requestBodyInspectionSize requestBodyInspectionSize or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfig setRequestBodyInspectionSize(java.lang.String requestBodyInspectionSize) { + this.requestBodyInspectionSize = requestBodyInspectionSize; + return this; + } + /** * An optional list of case-insensitive request header names to use for resolving the callers * client IP address. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java index 57ec4989820..9476b243de5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java @@ -37,7 +37,7 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String attachmentId; /** - * [Output Only] The display name of the security policy of the association. + * Output only. [Output Only] The display name of the security policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,14 +65,14 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String name; /** - * [Output Only] The security policy ID of the association. + * Output only. [Output Only] The security policy ID of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String securityPolicyId; /** - * [Output Only] The short name of the security policy of the association. + * Output only. [Output Only] The short name of the security policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -96,7 +96,7 @@ public SecurityPolicyAssociation setAttachmentId(java.lang.String attachmentId) } /** - * [Output Only] The display name of the security policy of the association. + * Output only. [Output Only] The display name of the security policy of the association. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -104,7 +104,7 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] The display name of the security policy of the association. + * Output only. [Output Only] The display name of the security policy of the association. * @param displayName displayName or {@code null} for none */ public SecurityPolicyAssociation setDisplayName(java.lang.String displayName) { @@ -164,7 +164,7 @@ public SecurityPolicyAssociation setName(java.lang.String name) { } /** - * [Output Only] The security policy ID of the association. + * Output only. [Output Only] The security policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getSecurityPolicyId() { @@ -172,7 +172,7 @@ public java.lang.String getSecurityPolicyId() { } /** - * [Output Only] The security policy ID of the association. + * Output only. [Output Only] The security policy ID of the association. * @param securityPolicyId securityPolicyId or {@code null} for none */ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPolicyId) { @@ -181,7 +181,7 @@ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPo } /** - * [Output Only] The short name of the security policy of the association. + * Output only. [Output Only] The short name of the security policy of the association. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -189,7 +189,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the security policy of the association. + * Output only. [Output Only] The short name of the security policy of the association. * @param shortName shortName or {@code null} for none */ public SecurityPolicyAssociation setShortName(java.lang.String shortName) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java index 19d4c9ad5d2..5fd6edbb9dd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java @@ -50,7 +50,8 @@ public final class SecurityPolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public SecurityPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * @param kind kind or {@code null} for none */ public SecurityPolicyList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java index 1c494884b6e..56673681fcd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java @@ -66,7 +66,8 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private SecurityPolicyRuleHttpHeaderAction headerAction; /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security + * policy rules * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -235,7 +236,8 @@ public SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction hea } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security + * policy rules * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -243,7 +245,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security + * policy rules * @param kind kind or {@code null} for none */ public SecurityPolicyRule setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java index bbb282182db..55658088fdb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java @@ -37,7 +37,8 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.String contents; /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port + * output. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,7 +54,7 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.Long next; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,7 +89,8 @@ public SerialPortOutput setContents(java.lang.String contents) { } /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port + * output. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -96,7 +98,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port + * output. * @param kind kind or {@code null} for none */ public SerialPortOutput setKind(java.lang.String kind) { @@ -126,7 +129,7 @@ public SerialPortOutput setNext(java.lang.Long next) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -134,7 +137,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public SerialPortOutput setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java index bfeb0ef5bde..5e43c5b2d63 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java @@ -34,8 +34,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJson { /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * Output only. [Output Only] An array of connections for all the consumers connected to this + * service attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,7 +73,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.util.List consumerRejectLists; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,15 +115,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -181,7 +182,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Long propagatedConnectionLimit; /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -202,16 +203,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Boolean reconcileConnections; /** - * [Output Only] URL of the region where the service attachment resides. This field applies only - * to the region resource. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. + * Output only. [Output Only] URL of the region where the service attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -225,8 +226,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.String targetService; /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * Output only. [Output Only] An array of connections for all the consumers connected to this + * service attachment. * @return value or {@code null} for none */ public java.util.List getConnectedEndpoints() { @@ -234,8 +235,8 @@ public java.util.List getConnectedEndpoints( } /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * Output only. [Output Only] An array of connections for all the consumers connected to this + * service attachment. * @param connectedEndpoints connectedEndpoints or {@code null} for none */ public ServiceAttachment setConnectedEndpoints(java.util.List connectedEndpoints) { @@ -315,7 +316,7 @@ public ServiceAttachment setConsumerRejectLists(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -323,7 +324,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ServiceAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -450,8 +451,8 @@ public ServiceAttachment encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -459,8 +460,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public ServiceAttachment setId(java.math.BigInteger id) { @@ -469,7 +470,8 @@ public ServiceAttachment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -477,7 +479,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. * @param kind kind or {@code null} for none */ public ServiceAttachment setKind(java.lang.String kind) { @@ -603,7 +606,7 @@ public ServiceAttachment setPropagatedConnectionLimit(java.lang.Long propagatedC } /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. * @return value or {@code null} for none */ public Uint128 getPscServiceAttachmentId() { @@ -611,7 +614,7 @@ public Uint128 getPscServiceAttachmentId() { } /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. * @param pscServiceAttachmentId pscServiceAttachmentId or {@code null} for none */ public ServiceAttachment setPscServiceAttachmentId(Uint128 pscServiceAttachmentId) { @@ -651,9 +654,9 @@ public ServiceAttachment setReconcileConnections(java.lang.Boolean reconcileConn } /** - * [Output Only] URL of the region where the service attachment resides. This field applies only - * to the region resource. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. + * Output only. [Output Only] URL of the region where the service attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -661,9 +664,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the service attachment resides. This field applies only - * to the region resource. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. + * Output only. [Output Only] URL of the region where the service attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. * @param region region or {@code null} for none */ public ServiceAttachment setRegion(java.lang.String region) { @@ -672,7 +675,7 @@ public ServiceAttachment setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -680,7 +683,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public ServiceAttachment setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java index c059c93940b..4e76e05905c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java @@ -44,7 +44,7 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ServiceAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ServiceAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java index 3c23aa660aa..b99a4029437 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java @@ -43,6 +43,13 @@ public final class ServiceAttachmentConnectedEndpoint extends com.google.api.cli @com.google.api.client.util.Key private java.lang.String endpoint; + /** + * The url of a connected endpoint with resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpointWithId; + /** * NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. * The value may be {@code null}. @@ -106,6 +113,23 @@ public ServiceAttachmentConnectedEndpoint setEndpoint(java.lang.String endpoint) return this; } + /** + * The url of a connected endpoint with resource id. + * @return value or {@code null} for none + */ + public java.lang.String getEndpointWithId() { + return endpointWithId; + } + + /** + * The url of a connected endpoint with resource id. + * @param endpointWithId endpointWithId or {@code null} for none + */ + public ServiceAttachmentConnectedEndpoint setEndpointWithId(java.lang.String endpointWithId) { + this.endpointWithId = endpointWithId; + return this; + } + /** * NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java index 9547d004bb8..cac9b0c5638 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java @@ -36,6 +36,13 @@ public final class ServiceAttachmentConsumerProjectLimit extends com.google.api. @com.google.api.client.util.Key private java.lang.Long connectionLimit; + /** + * The URL for the PSC endpoint to accept + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpointUrl; + /** * The network URL for the network to set the limit for. * The value may be {@code null}. @@ -67,6 +74,23 @@ public ServiceAttachmentConsumerProjectLimit setConnectionLimit(java.lang.Long c return this; } + /** + * The URL for the PSC endpoint to accept + * @return value or {@code null} for none + */ + public java.lang.String getEndpointUrl() { + return endpointUrl; + } + + /** + * The URL for the PSC endpoint to accept + * @param endpointUrl endpointUrl or {@code null} for none + */ + public ServiceAttachmentConsumerProjectLimit setEndpointUrl(java.lang.String endpointUrl) { + this.endpointUrl = endpointUrl; + return this; + } + /** * The network URL for the network to set the limit for. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java index da01d8aa8a6..ae7bbed5851 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java @@ -50,7 +50,8 @@ public final class ServiceAttachmentList extends com.google.api.client.json.Gene } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public ServiceAttachmentList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. * @param kind kind or {@code null} for none */ public ServiceAttachmentList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java index 6aead1f593f..4381a64c967 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java @@ -51,8 +51,8 @@ public final class ShieldedInstanceIdentity extends com.google.api.client.json.G private ShieldedInstanceIdentityEntry encryptionKey; /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for + * shielded Instance identity entry. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public ShieldedInstanceIdentity setEncryptionKey(ShieldedInstanceIdentityEntry e } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for + * shielded Instance identity entry. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for + * shielded Instance identity entry. * @param kind kind or {@code null} for none */ public ShieldedInstanceIdentity setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Snapshot.java index 69366b399a8..33ddc884b9e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Snapshot.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -33,15 +33,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String architecture; /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * Output only. [Output Only] Set to true if snapshots are automatically created by applying + * resource policy on the target disk. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,14 +59,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String chainName; /** - * [Output Only] Size in bytes of the snapshot at creation time. + * Output only. [Output Only] Size in bytes of the snapshot at creation time. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long creationSizeBytes; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,22 +80,22 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long diskSizeGb; /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long downloadBytes; /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,9 +110,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * [Output Only] A list of features to enable on the guest operating system. Applicable only for - * bootable images. Read Enabling guest operating system features to see a list of available - * options. + * Output only. [Output Only] A list of features to enable on the guest operating system. + * Applicable only for bootable images. Read Enabling guest operating system features to see a + * list of available options. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,14 +125,16 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,15 +162,16 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * Output only. [Output Only] Integer license codes indicating which licenses are attached to this + * snapshot. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.util.List licenseCodes; /** - * [Output Only] A list of public visible licenses that apply to this snapshot. This can be - * because the original image had licenses attached (such as a Windows image). + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This + * can be because the original image had licenses attached (such as a Windows image). * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -209,14 +212,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -269,9 +272,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String sourceDiskForRecoveryCheckpoint; /** - * [Output Only] The ID value of the disk used to create this snapshot. This value may be used to - * determine whether the snapshot was taken from the current or a previous instance of a given - * disk name. + * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given disk name. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -296,51 +299,51 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceInstantSnapshotEncryptionKey; /** - * [Output Only] The unique ID of the instant snapshot used to create this snapshot. This value - * identifies the exact instant snapshot that was used to create this snapshot. For example, if - * you created the snapshot from an instant snapshot that was later deleted and recreated under - * the same name, the source instant snapshot ID would identify the exact instant snapshot that - * was used. + * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. + * This value identifies the exact instant snapshot that was used to create this snapshot. For + * example, if you created the snapshot from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact instant + * snapshot that was used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceInstantSnapshotId; /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceSnapshotSchedulePolicy; /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceSnapshotSchedulePolicyId; /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, + * FAILED,READY, or UPLOADING. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] A size of the storage used by the snapshot. As snapshots share storage, this - * number is expected to change with snapshot creation/deletion. + * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share + * storage, this number is expected to change with snapshot creation/deletion. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long storageBytes; /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -354,7 +357,7 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -362,7 +365,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. * @param architecture architecture or {@code null} for none */ public Snapshot setArchitecture(java.lang.String architecture) { @@ -371,8 +374,8 @@ public Snapshot setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * Output only. [Output Only] Set to true if snapshots are automatically created by applying + * resource policy on the target disk. * @return value or {@code null} for none */ public java.lang.Boolean getAutoCreated() { @@ -380,8 +383,8 @@ public java.lang.Boolean getAutoCreated() { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * Output only. [Output Only] Set to true if snapshots are automatically created by applying + * resource policy on the target disk. * @param autoCreated autoCreated or {@code null} for none */ public Snapshot setAutoCreated(java.lang.Boolean autoCreated) { @@ -415,7 +418,7 @@ public Snapshot setChainName(java.lang.String chainName) { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * Output only. [Output Only] Size in bytes of the snapshot at creation time. * @return value or {@code null} for none */ public java.lang.Long getCreationSizeBytes() { @@ -423,7 +426,7 @@ public java.lang.Long getCreationSizeBytes() { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * Output only. [Output Only] Size in bytes of the snapshot at creation time. * @param creationSizeBytes creationSizeBytes or {@code null} for none */ public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { @@ -432,7 +435,7 @@ public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -440,7 +443,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Snapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -466,7 +469,7 @@ public Snapshot setDescription(java.lang.String description) { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -474,7 +477,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @param diskSizeGb diskSizeGb or {@code null} for none */ public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { @@ -483,7 +486,7 @@ public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. * @return value or {@code null} for none */ public java.lang.Long getDownloadBytes() { @@ -491,7 +494,7 @@ public java.lang.Long getDownloadBytes() { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. * @param downloadBytes downloadBytes or {@code null} for none */ public Snapshot setDownloadBytes(java.lang.Long downloadBytes) { @@ -500,8 +503,8 @@ public Snapshot setDownloadBytes(java.lang.Long downloadBytes) { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. * @return value or {@code null} for none */ public java.lang.Boolean getEnableConfidentialCompute() { @@ -509,8 +512,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none */ public Snapshot setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { @@ -538,9 +541,9 @@ public Snapshot setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [Output Only] A list of features to enable on the guest operating system. Applicable only for - * bootable images. Read Enabling guest operating system features to see a list of available - * options. + * Output only. [Output Only] A list of features to enable on the guest operating system. + * Applicable only for bootable images. Read Enabling guest operating system features to see a + * list of available options. * @return value or {@code null} for none */ public java.util.List getGuestOsFeatures() { @@ -548,9 +551,9 @@ public java.util.List getGuestOsFeatures() { } /** - * [Output Only] A list of features to enable on the guest operating system. Applicable only for - * bootable images. Read Enabling guest operating system features to see a list of available - * options. + * Output only. [Output Only] A list of features to enable on the guest operating system. + * Applicable only for bootable images. Read Enabling guest operating system features to see a + * list of available options. * @param guestOsFeatures guestOsFeatures or {@code null} for none */ public Snapshot setGuestOsFeatures(java.util.List guestOsFeatures) { @@ -559,7 +562,8 @@ public Snapshot setGuestOsFeatures(java.util.List guestOsFeature } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -567,7 +571,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Snapshot setId(java.math.BigInteger id) { @@ -576,7 +581,8 @@ public Snapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -584,7 +590,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot + * resources. * @param kind kind or {@code null} for none */ public Snapshot setKind(java.lang.String kind) { @@ -681,7 +688,8 @@ public Snapshot setLabels(java.util.Map labels) { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * Output only. [Output Only] Integer license codes indicating which licenses are attached to this + * snapshot. * @return value or {@code null} for none */ public java.util.List getLicenseCodes() { @@ -689,7 +697,8 @@ public java.util.List getLicenseCodes() { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * Output only. [Output Only] Integer license codes indicating which licenses are attached to this + * snapshot. * @param licenseCodes licenseCodes or {@code null} for none */ public Snapshot setLicenseCodes(java.util.List licenseCodes) { @@ -698,8 +707,8 @@ public Snapshot setLicenseCodes(java.util.List licenseCodes) { } /** - * [Output Only] A list of public visible licenses that apply to this snapshot. This can be - * because the original image had licenses attached (such as a Windows image). + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This + * can be because the original image had licenses attached (such as a Windows image). * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -707,8 +716,8 @@ public java.util.List getLicenses() { } /** - * [Output Only] A list of public visible licenses that apply to this snapshot. This can be - * because the original image had licenses attached (such as a Windows image). + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This + * can be because the original image had licenses attached (such as a Windows image). * @param licenses licenses or {@code null} for none */ public Snapshot setLicenses(java.util.List licenses) { @@ -797,7 +806,7 @@ public Snapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -805,7 +814,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -814,7 +823,7 @@ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -822,7 +831,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Snapshot setSelfLink(java.lang.String selfLink) { @@ -938,9 +947,9 @@ public Snapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskFo } /** - * [Output Only] The ID value of the disk used to create this snapshot. This value may be used to - * determine whether the snapshot was taken from the current or a previous instance of a given - * disk name. + * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given disk name. * @return value or {@code null} for none */ public java.lang.String getSourceDiskId() { @@ -948,9 +957,9 @@ public java.lang.String getSourceDiskId() { } /** - * [Output Only] The ID value of the disk used to create this snapshot. This value may be used to - * determine whether the snapshot was taken from the current or a previous instance of a given - * disk name. + * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given disk name. * @param sourceDiskId sourceDiskId or {@code null} for none */ public Snapshot setSourceDiskId(java.lang.String sourceDiskId) { @@ -1001,11 +1010,11 @@ public Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sour } /** - * [Output Only] The unique ID of the instant snapshot used to create this snapshot. This value - * identifies the exact instant snapshot that was used to create this snapshot. For example, if - * you created the snapshot from an instant snapshot that was later deleted and recreated under - * the same name, the source instant snapshot ID would identify the exact instant snapshot that - * was used. + * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. + * This value identifies the exact instant snapshot that was used to create this snapshot. For + * example, if you created the snapshot from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact instant + * snapshot that was used. * @return value or {@code null} for none */ public java.lang.String getSourceInstantSnapshotId() { @@ -1013,11 +1022,11 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [Output Only] The unique ID of the instant snapshot used to create this snapshot. This value - * identifies the exact instant snapshot that was used to create this snapshot. For example, if - * you created the snapshot from an instant snapshot that was later deleted and recreated under - * the same name, the source instant snapshot ID would identify the exact instant snapshot that - * was used. + * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. + * This value identifies the exact instant snapshot that was used to create this snapshot. For + * example, if you created the snapshot from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact instant + * snapshot that was used. * @param sourceInstantSnapshotId sourceInstantSnapshotId or {@code null} for none */ public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) { @@ -1026,7 +1035,7 @@ public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapsho } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotSchedulePolicy() { @@ -1034,7 +1043,7 @@ public java.lang.String getSourceSnapshotSchedulePolicy() { } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. * @param sourceSnapshotSchedulePolicy sourceSnapshotSchedulePolicy or {@code null} for none */ public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotSchedulePolicy) { @@ -1043,7 +1052,7 @@ public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotS } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotSchedulePolicyId() { @@ -1051,7 +1060,7 @@ public java.lang.String getSourceSnapshotSchedulePolicyId() { } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. * @param sourceSnapshotSchedulePolicyId sourceSnapshotSchedulePolicyId or {@code null} for none */ public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapshotSchedulePolicyId) { @@ -1060,8 +1069,8 @@ public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapsho } /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, + * FAILED,READY, or UPLOADING. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -1069,8 +1078,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, + * FAILED,READY, or UPLOADING. * @param status status or {@code null} for none */ public Snapshot setStatus(java.lang.String status) { @@ -1079,8 +1088,8 @@ public Snapshot setStatus(java.lang.String status) { } /** - * [Output Only] A size of the storage used by the snapshot. As snapshots share storage, this - * number is expected to change with snapshot creation/deletion. + * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share + * storage, this number is expected to change with snapshot creation/deletion. * @return value or {@code null} for none */ public java.lang.Long getStorageBytes() { @@ -1088,8 +1097,8 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] A size of the storage used by the snapshot. As snapshots share storage, this - * number is expected to change with snapshot creation/deletion. + * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share + * storage, this number is expected to change with snapshot creation/deletion. * @param storageBytes storageBytes or {@code null} for none */ public Snapshot setStorageBytes(java.lang.Long storageBytes) { @@ -1098,10 +1107,10 @@ public Snapshot setStorageBytes(java.lang.Long storageBytes) { } /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * @return value or {@code null} for none */ public java.lang.String getStorageBytesStatus() { @@ -1109,10 +1118,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as - * a result of shared storage reallocation. This status can either be UPDATING, meaning the size - * of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- - * date. + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. * @param storageBytesStatus storageBytesStatus or {@code null} for none */ public Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotList.java index 39950d997d4..04f8790fe65 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotList.java @@ -50,7 +50,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public SnapshotList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public SnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public SnapshotList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotParams.java index 0f1afad1dce..1191efded34 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotParams.java @@ -30,18 +30,22 @@ public final class SnapshotParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map resourceManagerTags; /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public SnapshotParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java index 7316a382e12..91de2bc023e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java @@ -137,6 +137,13 @@ public final class SourceInstanceProperties extends com.google.api.client.json.G com.google.api.client.util.Data.nullOf(NetworkInterface.class); } + /** + * PostKeyRevocationActionType of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String postKeyRevocationActionType; + /** * Specifies the scheduling options for the instances that are created from this machine image. * The value may be {@code null}. @@ -379,6 +386,23 @@ public SourceInstanceProperties setNetworkInterfaces(java.util.List getSubjectAlternativeNames() { @@ -383,7 +388,8 @@ public java.util.List getSubjectAlternativeNames() { } /** - * [Output Only] Domains associated with the certificate via Subject Alternative Name. + * Output only. [Output Only] Domains associated with the certificate via Subject Alternative + * Name. * @param subjectAlternativeNames subjectAlternativeNames or {@code null} for none */ public SslCertificate setSubjectAlternativeNames(java.util.List subjectAlternativeNames) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java index afee0f9e13d..d806133ed5f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java @@ -44,8 +44,8 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for lists of SSL - * Certificates. + * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for + * lists of SSL Certificates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SslCertificateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslCertificateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateList.java index 688db9167d9..27110fd9466 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateList.java @@ -50,7 +50,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public SslCertificateList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public SslCertificateList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SslCertificateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public SslCertificateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java index 2521f524e73..8897726891a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java @@ -30,7 +30,8 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.client.json.GenericJson { /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * Output only. [Output only] Detailed statuses of the domains specified for managed certificate + * resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,14 +47,15 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.cl private java.util.List domains; /** - * [Output only] Status of the managed certificate resource. + * Output only. [Output only] Status of the managed certificate resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * Output only. [Output only] Detailed statuses of the domains specified for managed certificate + * resource. * @return value or {@code null} for none */ public java.util.Map getDomainStatus() { @@ -61,7 +63,8 @@ public java.util.Map getDomainStatus() { } /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * Output only. [Output only] Detailed statuses of the domains specified for managed certificate + * resource. * @param domainStatus domainStatus or {@code null} for none */ public SslCertificateManagedSslCertificate setDomainStatus(java.util.Map domainStatus) { @@ -91,7 +94,7 @@ public SslCertificateManagedSslCertificate setDomains(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of SSL - * Policies. + * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of + * SSL Policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SslPoliciesAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SslPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java index 775a4adcdbe..c8c7092cb3a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java @@ -30,38 +30,39 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String id; /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List items; /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of + * sslPolicies. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,7 +76,7 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJso private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -83,7 +84,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public SslPoliciesList setId(java.lang.String id) { @@ -92,7 +93,7 @@ public SslPoliciesList setId(java.lang.String id) { } /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -100,7 +101,7 @@ public java.util.List getItems() { } /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * @param items items or {@code null} for none */ public SslPoliciesList setItems(java.util.List items) { @@ -109,7 +110,8 @@ public SslPoliciesList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of + * sslPolicies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -117,7 +119,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of + * sslPolicies. * @param kind kind or {@code null} for none */ public SslPoliciesList setKind(java.lang.String kind) { @@ -126,10 +129,10 @@ public SslPoliciesList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -137,10 +140,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public SslPoliciesList setNextPageToken(java.lang.String nextPageToken) { @@ -149,7 +152,7 @@ public SslPoliciesList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -157,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public SslPoliciesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPolicy.java index f4598ad8b00..396f7637c52 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPolicy.java @@ -34,7 +34,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,7 +57,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The list of features enabled in the SSL policy. + * Output only. [Output Only] The list of features enabled in the SSL policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -76,14 +76,15 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,31 +112,32 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** * Profile specifies the set of SSL features that can be used by the load balancer when - * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or + * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the + * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String profile; /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field + * is not applicable to global SSL policies. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, + * this field will be populated with warning messages. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -148,7 +150,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -156,7 +158,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SslPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,7 +205,7 @@ public SslPolicy setDescription(java.lang.String description) { } /** - * [Output Only] The list of features enabled in the SSL policy. + * Output only. [Output Only] The list of features enabled in the SSL policy. * @return value or {@code null} for none */ public java.util.List getEnabledFeatures() { @@ -211,7 +213,7 @@ public java.util.List getEnabledFeatures() { } /** - * [Output Only] The list of features enabled in the SSL policy. + * Output only. [Output Only] The list of features enabled in the SSL policy. * @param enabledFeatures enabledFeatures or {@code null} for none */ public SslPolicy setEnabledFeatures(java.util.List enabledFeatures) { @@ -285,7 +287,8 @@ public SslPolicy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -293,7 +296,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public SslPolicy setId(java.math.BigInteger id) { @@ -302,7 +306,7 @@ public SslPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -310,7 +314,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * @param kind kind or {@code null} for none */ public SslPolicy setKind(java.lang.String kind) { @@ -366,8 +370,9 @@ public SslPolicy setName(java.lang.String name) { /** * Profile specifies the set of SSL features that can be used by the load balancer when - * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or + * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the + * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. * @return value or {@code null} for none */ public java.lang.String getProfile() { @@ -376,8 +381,9 @@ public java.lang.String getProfile() { /** * Profile specifies the set of SSL features that can be used by the load balancer when - * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or + * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the + * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. * @param profile profile or {@code null} for none */ public SslPolicy setProfile(java.lang.String profile) { @@ -386,8 +392,8 @@ public SslPolicy setProfile(java.lang.String profile) { } /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field + * is not applicable to global SSL policies. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -395,8 +401,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field + * is not applicable to global SSL policies. * @param region region or {@code null} for none */ public SslPolicy setRegion(java.lang.String region) { @@ -405,7 +411,7 @@ public SslPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -413,7 +419,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public SslPolicy setSelfLink(java.lang.String selfLink) { @@ -422,8 +428,8 @@ public SslPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, + * this field will be populated with warning messages. * @return value or {@code null} for none */ public java.util.List getWarnings() { @@ -431,8 +437,8 @@ public java.util.List getWarnings() { } /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, + * this field will be populated with warning messages. * @param warnings warnings or {@code null} for none */ public SslPolicy setWarnings(java.util.List warnings) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java index 3f2774ef34e..13a2e7a534a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -37,7 +37,7 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String capacityProvisioningType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,14 +51,22 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb; + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,6 +103,14 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolParams params; + /** * Provisioning type of the performance-related parameters of the pool, such as throughput and * IOPS. @@ -128,37 +144,37 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.Long poolProvisionedThroughput; /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private StoragePoolResourceStatus resourceStatus; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLinkWithId; /** - * [Output Only] The status of storage pool creation. - CREATING: Storage pool is - * provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: - * Storage pool is ready for use. - DELETING: Storage pool is deleting. + * Output only. [Output Only] The status of storage pool creation. - CREATING: + * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. + * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -172,8 +188,8 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String storagePoolType; /** - * [Output Only] URL of the zone where the storage pool resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +213,7 @@ public StoragePool setCapacityProvisioningType(java.lang.String capacityProvisio } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -205,7 +221,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -231,7 +247,25 @@ public StoragePool setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * @return value or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { + return exapoolProvisionedCapacityGb; + } + + /** + * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none + */ + public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { + this.exapoolProvisionedCapacityGb = exapoolProvisionedCapacityGb; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -239,7 +273,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public StoragePool setId(java.math.BigInteger id) { @@ -248,7 +283,7 @@ public StoragePool setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -256,7 +291,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. * @param kind kind or {@code null} for none */ public StoragePool setKind(java.lang.String kind) { @@ -375,6 +410,25 @@ public StoragePool setName(java.lang.String name) { return this; } + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public StoragePoolParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public StoragePool setParams(StoragePoolParams params) { + this.params = params; + return this; + } + /** * Provisioning type of the performance-related parameters of the pool, such as throughput and * IOPS. @@ -452,7 +506,7 @@ public StoragePool setPoolProvisionedThroughput(java.lang.Long poolProvisionedTh } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getResourceStatus() { @@ -460,7 +514,7 @@ public StoragePoolResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @param resourceStatus resourceStatus or {@code null} for none */ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { @@ -469,7 +523,7 @@ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -477,7 +531,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public StoragePool setSelfLink(java.lang.String selfLink) { @@ -486,7 +540,7 @@ public StoragePool setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -494,7 +548,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public StoragePool setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -503,9 +557,9 @@ public StoragePool setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] The status of storage pool creation. - CREATING: Storage pool is - * provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: - * Storage pool is ready for use. - DELETING: Storage pool is deleting. + * Output only. [Output Only] The status of storage pool creation. - CREATING: + * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. + * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -513,9 +567,9 @@ public java.lang.String getState() { } /** - * [Output Only] The status of storage pool creation. - CREATING: Storage pool is - * provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: - * Storage pool is ready for use. - DELETING: Storage pool is deleting. + * Output only. [Output Only] The status of storage pool creation. - CREATING: + * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. + * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. * @param state state or {@code null} for none */ public StoragePool setState(java.lang.String state) { @@ -524,7 +578,7 @@ public StoragePool setState(java.lang.String state) { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getStatus() { @@ -532,7 +586,7 @@ public StoragePoolResourceStatus getStatus() { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @param status status or {@code null} for none */ public StoragePool setStatus(StoragePoolResourceStatus status) { @@ -558,8 +612,8 @@ public StoragePool setStoragePoolType(java.lang.String storagePoolType) { } /** - * [Output Only] URL of the zone where the storage pool resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -567,8 +621,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the zone where the storage pool resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * @param zone zone or {@code null} for none */ public StoragePool setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java index 186794e02ce..a6e2968a57e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java @@ -50,8 +50,8 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for aggregated lists of - * storage pools. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for + * aggregated lists of storage pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public StoragePoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public StoragePoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java index 336f05138ed..f4aedbc4874 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java @@ -30,84 +30,84 @@ public final class StoragePoolDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] Instances this disk is attached to. + * Output only. [Output Only] Instances this disk is attached to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List attachedInstances; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output Only] The URL of the disk. + * Output only. [Output Only] The URL of the disk. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String disk; /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] The number of IOPS provisioned for the disk. + * Output only. [Output Only] The number of IOPS provisioned for the disk. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long provisionedIops; /** - * [Output Only] The throughput provisioned for the disk. + * Output only. [Output Only] The throughput provisioned for the disk. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long provisionedThroughput; /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List resourcePolicies; /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long sizeGb; /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long usedBytes; /** - * [Output Only] Instances this disk is attached to. + * Output only. [Output Only] Instances this disk is attached to. * @return value or {@code null} for none */ public java.util.List getAttachedInstances() { @@ -115,7 +115,7 @@ public java.util.List getAttachedInstances() { } /** - * [Output Only] Instances this disk is attached to. + * Output only. [Output Only] Instances this disk is attached to. * @param attachedInstances attachedInstances or {@code null} for none */ public StoragePoolDisk setAttachedInstances(java.util.List attachedInstances) { @@ -124,7 +124,7 @@ public StoragePoolDisk setAttachedInstances(java.util.List att } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -132,7 +132,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) { @@ -141,7 +141,7 @@ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) } /** - * [Output Only] The URL of the disk. + * Output only. [Output Only] The URL of the disk. * @return value or {@code null} for none */ public java.lang.String getDisk() { @@ -149,7 +149,7 @@ public java.lang.String getDisk() { } /** - * [Output Only] The URL of the disk. + * Output only. [Output Only] The URL of the disk. * @param disk disk or {@code null} for none */ public StoragePoolDisk setDisk(java.lang.String disk) { @@ -158,7 +158,7 @@ public StoragePoolDisk setDisk(java.lang.String disk) { } /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -166,7 +166,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * @param name name or {@code null} for none */ public StoragePoolDisk setName(java.lang.String name) { @@ -175,7 +175,7 @@ public StoragePoolDisk setName(java.lang.String name) { } /** - * [Output Only] The number of IOPS provisioned for the disk. + * Output only. [Output Only] The number of IOPS provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedIops() { @@ -183,7 +183,7 @@ public java.lang.Long getProvisionedIops() { } /** - * [Output Only] The number of IOPS provisioned for the disk. + * Output only. [Output Only] The number of IOPS provisioned for the disk. * @param provisionedIops provisionedIops or {@code null} for none */ public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { @@ -192,7 +192,7 @@ public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { } /** - * [Output Only] The throughput provisioned for the disk. + * Output only. [Output Only] The throughput provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedThroughput() { @@ -200,7 +200,7 @@ public java.lang.Long getProvisionedThroughput() { } /** - * [Output Only] The throughput provisioned for the disk. + * Output only. [Output Only] The throughput provisioned for the disk. * @param provisionedThroughput provisionedThroughput or {@code null} for none */ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroughput) { @@ -209,7 +209,7 @@ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroug } /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. * @return value or {@code null} for none */ public java.util.List getResourcePolicies() { @@ -217,7 +217,7 @@ public java.util.List getResourcePolicies() { } /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. * @param resourcePolicies resourcePolicies or {@code null} for none */ public StoragePoolDisk setResourcePolicies(java.util.List resourcePolicies) { @@ -226,7 +226,7 @@ public StoragePoolDisk setResourcePolicies(java.util.List reso } /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * @return value or {@code null} for none */ public java.lang.Long getSizeGb() { @@ -234,7 +234,7 @@ public java.lang.Long getSizeGb() { } /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * @param sizeGb sizeGb or {@code null} for none */ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { @@ -243,7 +243,7 @@ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { } /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -251,7 +251,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * @param status status or {@code null} for none */ public StoragePoolDisk setStatus(java.lang.String status) { @@ -260,7 +260,7 @@ public StoragePoolDisk setStatus(java.lang.String status) { } /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -268,7 +268,7 @@ public java.lang.String getType() { } /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * @param type type or {@code null} for none */ public StoragePoolDisk setType(java.lang.String type) { @@ -277,7 +277,7 @@ public StoragePoolDisk setType(java.lang.String type) { } /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * @return value or {@code null} for none */ public java.lang.Long getUsedBytes() { @@ -285,7 +285,7 @@ public java.lang.Long getUsedBytes() { } /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * @param usedBytes usedBytes or {@code null} for none */ public StoragePoolDisk setUsedBytes(java.lang.Long usedBytes) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java new file mode 100644 index 00000000000..cea8f8ace37 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Exapool provisioned capacities for each SKU type + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StoragePoolExapoolProvisionedCapacityGb extends com.google.api.client.json.GenericJson { + + /** + * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long capacityOptimized; + + /** + * Size, in GiB, of provisioned read-optimized capacity for this Exapool + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long readOptimized; + + /** + * Size, in GiB, of provisioned write-optimized capacity for this Exapool + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long writeOptimized; + + /** + * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool + * @return value or {@code null} for none + */ + public java.lang.Long getCapacityOptimized() { + return capacityOptimized; + } + + /** + * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool + * @param capacityOptimized capacityOptimized or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb setCapacityOptimized(java.lang.Long capacityOptimized) { + this.capacityOptimized = capacityOptimized; + return this; + } + + /** + * Size, in GiB, of provisioned read-optimized capacity for this Exapool + * @return value or {@code null} for none + */ + public java.lang.Long getReadOptimized() { + return readOptimized; + } + + /** + * Size, in GiB, of provisioned read-optimized capacity for this Exapool + * @param readOptimized readOptimized or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb setReadOptimized(java.lang.Long readOptimized) { + this.readOptimized = readOptimized; + return this; + } + + /** + * Size, in GiB, of provisioned write-optimized capacity for this Exapool + * @return value or {@code null} for none + */ + public java.lang.Long getWriteOptimized() { + return writeOptimized; + } + + /** + * Size, in GiB, of provisioned write-optimized capacity for this Exapool + * @param writeOptimized writeOptimized or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb setWriteOptimized(java.lang.Long writeOptimized) { + this.writeOptimized = writeOptimized; + return this; + } + + @Override + public StoragePoolExapoolProvisionedCapacityGb set(String fieldName, Object value) { + return (StoragePoolExapoolProvisionedCapacityGb) super.set(fieldName, value); + } + + @Override + public StoragePoolExapoolProvisionedCapacityGb clone() { + return (StoragePoolExapoolProvisionedCapacityGb) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolList.java index 2d0728fe318..34edec41ca8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolList.java @@ -56,7 +56,8 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of + * storagePools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +74,15 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public StoragePoolList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of + * storagePools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of + * storagePools. * @param kind kind or {@code null} for none */ public StoragePoolList setKind(java.lang.String kind) { @@ -183,7 +187,7 @@ public StoragePoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public StoragePoolList setSelfLink(java.lang.String selfLink) { @@ -200,7 +204,8 @@ public StoragePoolList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java index bb3ca251ff1..31b6d2f7ece 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java @@ -36,7 +36,7 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener private java.lang.String etag; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,39 +56,40 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of + * disks in a storagePool. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List unreachables; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +111,7 @@ public StoragePoolListDisks setEtag(java.lang.String etag) { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -118,7 +119,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ public StoragePoolListDisks setId(java.lang.String id) { @@ -144,8 +145,8 @@ public StoragePoolListDisks setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of + * disks in a storagePool. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -153,8 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of + * disks in a storagePool. * @param kind kind or {@code null} for none */ public StoragePoolListDisks setKind(java.lang.String kind) { @@ -163,10 +164,10 @@ public StoragePoolListDisks setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -174,10 +175,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ public StoragePoolListDisks setNextPageToken(java.lang.String nextPageToken) { @@ -186,7 +187,7 @@ public StoragePoolListDisks setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public StoragePoolListDisks setSelfLink(java.lang.String selfLink) { @@ -203,7 +204,8 @@ public StoragePoolListDisks setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolListDisks setUnreachables(java.util.List unreachables) { @@ -220,7 +223,7 @@ public StoragePoolListDisks setUnreachables(java.util.List unr } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -228,7 +231,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public StoragePoolListDisks setWarning(Warning warning) { @@ -247,7 +250,7 @@ public StoragePoolListDisks clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java new file mode 100644 index 00000000000..f7f367511c0 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java @@ -0,0 +1,78 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Additional storage pool params. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StoragePoolParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public StoragePoolParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public StoragePoolParams set(String fieldName, Object value) { + return (StoragePoolParams) super.set(fieldName, value); + } + + @Override + public StoragePoolParams clone() { + return (StoragePoolParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java index e7e5e4ebc7f..f0abcce09ab 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java @@ -37,7 +37,35 @@ public final class StoragePoolResourceStatus extends com.google.api.client.json. private java.lang.Long diskCount; /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long exapoolMaxReadIops; + + /** + * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long exapoolMaxReadThroughput; + + /** + * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long exapoolMaxWriteIops; + + /** + * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long exapoolMaxWriteThroughput; + + /** + * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,7 +151,75 @@ public StoragePoolResourceStatus setDiskCount(java.lang.Long diskCount) { } /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * @return value or {@code null} for none + */ + public java.lang.Long getExapoolMaxReadIops() { + return exapoolMaxReadIops; + } + + /** + * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * @param exapoolMaxReadIops exapoolMaxReadIops or {@code null} for none + */ + public StoragePoolResourceStatus setExapoolMaxReadIops(java.lang.Long exapoolMaxReadIops) { + this.exapoolMaxReadIops = exapoolMaxReadIops; + return this; + } + + /** + * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * @return value or {@code null} for none + */ + public java.lang.Long getExapoolMaxReadThroughput() { + return exapoolMaxReadThroughput; + } + + /** + * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * @param exapoolMaxReadThroughput exapoolMaxReadThroughput or {@code null} for none + */ + public StoragePoolResourceStatus setExapoolMaxReadThroughput(java.lang.Long exapoolMaxReadThroughput) { + this.exapoolMaxReadThroughput = exapoolMaxReadThroughput; + return this; + } + + /** + * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. + * @return value or {@code null} for none + */ + public java.lang.Long getExapoolMaxWriteIops() { + return exapoolMaxWriteIops; + } + + /** + * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. + * @param exapoolMaxWriteIops exapoolMaxWriteIops or {@code null} for none + */ + public StoragePoolResourceStatus setExapoolMaxWriteIops(java.lang.Long exapoolMaxWriteIops) { + this.exapoolMaxWriteIops = exapoolMaxWriteIops; + return this; + } + + /** + * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * @return value or {@code null} for none + */ + public java.lang.Long getExapoolMaxWriteThroughput() { + return exapoolMaxWriteThroughput; + } + + /** + * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * @param exapoolMaxWriteThroughput exapoolMaxWriteThroughput or {@code null} for none + */ + public StoragePoolResourceStatus setExapoolMaxWriteThroughput(java.lang.Long exapoolMaxWriteThroughput) { + this.exapoolMaxWriteThroughput = exapoolMaxWriteThroughput; + return this; + } + + /** + * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastResizeTimestamp() { @@ -131,7 +227,7 @@ public java.lang.String getLastResizeTimestamp() { } /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. * @param lastResizeTimestamp lastResizeTimestamp or {@code null} for none */ public StoragePoolResourceStatus setLastResizeTimestamp(java.lang.String lastResizeTimestamp) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolType.java index 48b85c05c96..2abe154233a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolType.java @@ -58,7 +58,8 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool + * types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -128,7 +129,7 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -218,7 +219,8 @@ public StoragePoolType setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool + * types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -226,7 +228,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool + * types. * @param kind kind or {@code null} for none */ public StoragePoolType setKind(java.lang.String kind) { @@ -388,7 +391,7 @@ public StoragePoolType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -396,7 +399,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public StoragePoolType setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java index c3fc6a05a48..1831cd7a360 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public StoragePoolTypeAggregatedList setItems(java.util.Map items) { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool + * types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool + * types. * @param kind kind or {@code null} for none */ public StoragePoolTypeList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public StoragePoolTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public StoragePoolTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StructuredEntries.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StructuredEntries.java new file mode 100644 index 00000000000..27a7d679b59 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StructuredEntries.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for StructuredEntries. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StructuredEntries extends com.google.api.client.json.GenericJson { + + /** + * Map of a partner metadata that belong to the same subdomain. It accepts any value including + * google.protobuf.Struct. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map entries; + + /** + * Map of a partner metadata that belong to the same subdomain. It accepts any value including + * google.protobuf.Struct. + * @return value or {@code null} for none + */ + public java.util.Map getEntries() { + return entries; + } + + /** + * Map of a partner metadata that belong to the same subdomain. It accepts any value including + * google.protobuf.Struct. + * @param entries entries or {@code null} for none + */ + public StructuredEntries setEntries(java.util.Map entries) { + this.entries = entries; + return this; + } + + @Override + public StructuredEntries set(String fieldName, Object value) { + return (StructuredEntries) super.set(fieldName, value); + } + + @Override + public StructuredEntries clone() { + return (StructuredEntries) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java index 47d0167b0e1..ee23e5ea82b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -34,7 +34,29 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom + * routes that have already been configured on the corresponding network. + * + * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be + * created if allow_conflicting_routes=true. + * + * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this + * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. + * + * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive + * data) are prevented from leaving the virtual network. Setting this field to true will disable + * this feature. + * + * The default value is false and applies to all existing subnetworks and automatically created + * subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowSubnetCidrRoutesOverlap; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -52,7 +74,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it * will not appear in get listings. If not set the default behavior is determined by the org * policy, if there is no org policy specified, then it will default to disabled. This field isn't - * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to + * uselogConfig.enable field instead. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,15 +101,16 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * Output only. [Output Only] The gateway address for default routes to reach destination + * addresses outside this subnetwork. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String gatewayAddress; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -134,27 +158,28 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String ipv6AccessType; /** - * [Output Only] This field is for internal use. + * Output only. [Output Only] This field is for internal use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ipv6CidrRange; /** - * [Output Only] Possible endpoints of this subnetwork. It can be one of the following: - - * VM_ONLY: The subnetwork can be used for creating instances and IPv6 addresses with VM - * endpoint type. Such a subnetwork gets external IPv6 ranges from a public delegated prefix - * and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used for creating - * both VM instances and Forwarding Rules. It can also be used to reserve IPv6 addresses - * with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from Google IP - * Pool directly. + * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the + * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 + * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public + * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used + * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 + * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from + * Google IP Pool directly. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ipv6GceEndpoint; /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -234,6 +259,13 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String reservedInternalRange; + /** + * Configures subnet mask resolution for this subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolveSubnetMask; + /** * The role of subnetwork. Currently, this field is only used when purpose is set to * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An @@ -249,7 +281,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * An array of configurations for secondary IP ranges for VM instances contained in this * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. * The alias IPs may belong to either primary or secondary ranges. This field can be updated with - * apatch request. + * apatch request. Supports both IPv4 and IPv6 ranges. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -274,11 +306,11 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String stackType; /** - * [Output Only] The state of the subnetwork, which can be one of the following values:READY: - * Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the - * purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer - * are being drained. A subnetwork that is draining cannot be used or modified until it reaches a - * status ofREADY + * Output only. [Output Only] The state of the subnetwork, which can be one of the following + * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks + * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the + * load balancer are being drained. A subnetwork that is draining cannot be used or modified until + * it reaches a status ofREADY * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -309,7 +341,54 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private SubnetworkUtilizationDetails utilizationDetails; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom + * routes that have already been configured on the corresponding network. + * + * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be + * created if allow_conflicting_routes=true. + * + * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this + * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. + * + * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive + * data) are prevented from leaving the virtual network. Setting this field to true will disable + * this feature. + * + * The default value is false and applies to all existing subnetworks and automatically created + * subnetworks. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { + return allowSubnetCidrRoutesOverlap; + } + + /** + * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom + * routes that have already been configured on the corresponding network. + * + * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be + * created if allow_conflicting_routes=true. + * + * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this + * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. + * + * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive + * data) are prevented from leaving the virtual network. Setting this field to true will disable + * this feature. + * + * The default value is false and applies to all existing subnetworks and automatically created + * subnetworks. + * @param allowSubnetCidrRoutesOverlap allowSubnetCidrRoutesOverlap or {@code null} for none + */ + public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap) { + this.allowSubnetCidrRoutesOverlap = allowSubnetCidrRoutesOverlap; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -317,7 +396,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Subnetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -348,7 +427,8 @@ public Subnetwork setDescription(java.lang.String description) { * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it * will not appear in get listings. If not set the default behavior is determined by the org * policy, if there is no org policy specified, then it will default to disabled. This field isn't - * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to + * uselogConfig.enable field instead. * @return value or {@code null} for none */ public java.lang.Boolean getEnableFlowLogs() { @@ -359,7 +439,8 @@ public java.lang.Boolean getEnableFlowLogs() { * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it * will not appear in get listings. If not set the default behavior is determined by the org * policy, if there is no org policy specified, then it will default to disabled. This field isn't - * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to + * uselogConfig.enable field instead. * @param enableFlowLogs enableFlowLogs or {@code null} for none */ public Subnetwork setEnableFlowLogs(java.lang.Boolean enableFlowLogs) { @@ -450,8 +531,8 @@ public Subnetwork encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * Output only. [Output Only] The gateway address for default routes to reach destination + * addresses outside this subnetwork. * @return value or {@code null} for none */ public java.lang.String getGatewayAddress() { @@ -459,8 +540,8 @@ public java.lang.String getGatewayAddress() { } /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * Output only. [Output Only] The gateway address for default routes to reach destination + * addresses outside this subnetwork. * @param gatewayAddress gatewayAddress or {@code null} for none */ public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { @@ -469,7 +550,8 @@ public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -477,7 +559,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public Subnetwork setId(java.math.BigInteger id) { @@ -580,7 +663,7 @@ public Subnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { } /** - * [Output Only] This field is for internal use. + * Output only. [Output Only] This field is for internal use. * @return value or {@code null} for none */ public java.lang.String getIpv6CidrRange() { @@ -588,7 +671,7 @@ public java.lang.String getIpv6CidrRange() { } /** - * [Output Only] This field is for internal use. + * Output only. [Output Only] This field is for internal use. * @param ipv6CidrRange ipv6CidrRange or {@code null} for none */ public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { @@ -597,13 +680,13 @@ public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { } /** - * [Output Only] Possible endpoints of this subnetwork. It can be one of the following: - - * VM_ONLY: The subnetwork can be used for creating instances and IPv6 addresses with VM - * endpoint type. Such a subnetwork gets external IPv6 ranges from a public delegated prefix - * and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used for creating - * both VM instances and Forwarding Rules. It can also be used to reserve IPv6 addresses - * with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from Google IP - * Pool directly. + * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the + * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 + * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public + * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used + * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 + * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from + * Google IP Pool directly. * @return value or {@code null} for none */ public java.lang.String getIpv6GceEndpoint() { @@ -611,13 +694,13 @@ public java.lang.String getIpv6GceEndpoint() { } /** - * [Output Only] Possible endpoints of this subnetwork. It can be one of the following: - - * VM_ONLY: The subnetwork can be used for creating instances and IPv6 addresses with VM - * endpoint type. Such a subnetwork gets external IPv6 ranges from a public delegated prefix - * and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used for creating - * both VM instances and Forwarding Rules. It can also be used to reserve IPv6 addresses - * with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from Google IP - * Pool directly. + * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the + * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 + * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public + * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used + * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 + * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from + * Google IP Pool directly. * @param ipv6GceEndpoint ipv6GceEndpoint or {@code null} for none */ public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { @@ -626,7 +709,8 @@ public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { } /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -634,7 +718,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork + * resources. * @param kind kind or {@code null} for none */ public Subnetwork setKind(java.lang.String kind) { @@ -817,6 +902,23 @@ public Subnetwork setReservedInternalRange(java.lang.String reservedInternalRang return this; } + /** + * Configures subnet mask resolution for this subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getResolveSubnetMask() { + return resolveSubnetMask; + } + + /** + * Configures subnet mask resolution for this subnetwork. + * @param resolveSubnetMask resolveSubnetMask or {@code null} for none + */ + public Subnetwork setResolveSubnetMask(java.lang.String resolveSubnetMask) { + this.resolveSubnetMask = resolveSubnetMask; + return this; + } + /** * The role of subnetwork. Currently, this field is only used when purpose is set to * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An @@ -846,7 +948,7 @@ public Subnetwork setRole(java.lang.String role) { * An array of configurations for secondary IP ranges for VM instances contained in this * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. * The alias IPs may belong to either primary or secondary ranges. This field can be updated with - * apatch request. + * apatch request. Supports both IPv4 and IPv6 ranges. * @return value or {@code null} for none */ public java.util.List getSecondaryIpRanges() { @@ -857,7 +959,7 @@ public java.util.List getSecondaryIpRanges() { * An array of configurations for secondary IP ranges for VM instances contained in this * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. * The alias IPs may belong to either primary or secondary ranges. This field can be updated with - * apatch request. + * apatch request. Supports both IPv4 and IPv6 ranges. * @param secondaryIpRanges secondaryIpRanges or {@code null} for none */ public Subnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { @@ -908,11 +1010,11 @@ public Subnetwork setStackType(java.lang.String stackType) { } /** - * [Output Only] The state of the subnetwork, which can be one of the following values:READY: - * Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the - * purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer - * are being drained. A subnetwork that is draining cannot be used or modified until it reaches a - * status ofREADY + * Output only. [Output Only] The state of the subnetwork, which can be one of the following + * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks + * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the + * load balancer are being drained. A subnetwork that is draining cannot be used or modified until + * it reaches a status ofREADY * @return value or {@code null} for none */ public java.lang.String getState() { @@ -920,11 +1022,11 @@ public java.lang.String getState() { } /** - * [Output Only] The state of the subnetwork, which can be one of the following values:READY: - * Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the - * purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer - * are being drained. A subnetwork that is draining cannot be used or modified until it reaches a - * status ofREADY + * Output only. [Output Only] The state of the subnetwork, which can be one of the following + * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks + * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the + * load balancer are being drained. A subnetwork that is draining cannot be used or modified until + * it reaches a status ofREADY * @param state state or {@code null} for none */ public Subnetwork setState(java.lang.String state) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java index 3ce236d4f61..92577af696e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java @@ -44,8 +44,8 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for aggregated lists of - * subnetworks. + * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for + * aggregated lists of subnetworks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SubnetworkAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SubnetworkAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkList.java index bfed8d09195..f8578cc2a42 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkList.java @@ -50,7 +50,8 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of + * subnetworks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public SubnetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of + * subnetworks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of + * subnetworks. * @param kind kind or {@code null} for none */ public SubnetworkList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public SubnetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public SubnetworkList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java index e2a3ca20f2c..d027af60f2c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java @@ -32,24 +32,31 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * The range of IP addresses belonging to this subnetwork secondary range. Provide this property * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and - * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the + * range can be any range listed in theValid ranges list. + * + * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- + * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the + * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, + * the requested ip_cidr_range must lie within the range of the PDP referenced by the + * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is + * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ipCidrRange; /** - * The name associated with this subnetwork secondary range, used when adding an alias IP range to - * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be - * unique within the subnetwork. + * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 + * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name + * must be unique within the subnetwork. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String rangeName; /** - * The URL of the reserved internal range. + * The URL of the reserved internal range. Only IPv4 is supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +65,15 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * The range of IP addresses belonging to this subnetwork secondary range. Provide this property * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and - * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the + * range can be any range listed in theValid ranges list. + * + * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- + * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the + * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, + * the requested ip_cidr_range must lie within the range of the PDP referenced by the + * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is + * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. * @return value or {@code null} for none */ public java.lang.String getIpCidrRange() { @@ -69,8 +83,15 @@ public java.lang.String getIpCidrRange() { /** * The range of IP addresses belonging to this subnetwork secondary range. Provide this property * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and - * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the + * range can be any range listed in theValid ranges list. + * + * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- + * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the + * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, + * the requested ip_cidr_range must lie within the range of the PDP referenced by the + * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is + * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. * @param ipCidrRange ipCidrRange or {@code null} for none */ public SubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { @@ -79,9 +100,9 @@ public SubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { } /** - * The name associated with this subnetwork secondary range, used when adding an alias IP range to - * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be - * unique within the subnetwork. + * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 + * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name + * must be unique within the subnetwork. * @return value or {@code null} for none */ public java.lang.String getRangeName() { @@ -89,9 +110,9 @@ public java.lang.String getRangeName() { } /** - * The name associated with this subnetwork secondary range, used when adding an alias IP range to - * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be - * unique within the subnetwork. + * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 + * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name + * must be unique within the subnetwork. * @param rangeName rangeName or {@code null} for none */ public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { @@ -100,7 +121,7 @@ public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { } /** - * The URL of the reserved internal range. + * The URL of the reserved internal range. Only IPv4 is supported. * @return value or {@code null} for none */ public java.lang.String getReservedInternalRange() { @@ -108,7 +129,7 @@ public java.lang.String getReservedInternalRange() { } /** - * The URL of the reserved internal range. + * The URL of the reserved internal range. Only IPv4 is supported. * @param reservedInternalRange reservedInternalRange or {@code null} for none */ public SubnetworkSecondaryRange setReservedInternalRange(java.lang.String reservedInternalRange) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java index 8e52f4284e0..e5b790d1254 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java @@ -35,7 +35,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,15 +60,16 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -86,14 +87,14 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +122,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean validateForProxyless; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -129,7 +130,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetGrpcProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -216,8 +217,8 @@ public TargetGrpcProxy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -225,8 +226,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public TargetGrpcProxy setId(java.math.BigInteger id) { @@ -235,7 +236,8 @@ public TargetGrpcProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -243,7 +245,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. * @param kind kind or {@code null} for none */ public TargetGrpcProxy setKind(java.lang.String kind) { @@ -277,7 +280,7 @@ public TargetGrpcProxy setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -285,7 +288,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { @@ -294,7 +297,7 @@ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -302,7 +305,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetGrpcProxy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java index 92580b50781..4e795941c63 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java @@ -50,7 +50,8 @@ public final class TargetGrpcProxyList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetGrpcProxyList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. * @param kind kind or {@code null} for none */ public TargetGrpcProxyList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java index 94c6d6be61b..d848ca9df49 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java @@ -45,7 +45,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,7 +91,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP + * proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,8 +126,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean proxyBind; /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This + * field is not applicable to global Target HTTP Proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -147,7 +148,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.String urlMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -155,7 +156,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -290,7 +291,8 @@ public TargetHttpProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP + * proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -298,7 +300,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP + * proxies. * @param kind kind or {@code null} for none */ public TargetHttpProxy setKind(java.lang.String kind) { @@ -367,8 +370,8 @@ public TargetHttpProxy setProxyBind(java.lang.Boolean proxyBind) { } /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This + * field is not applicable to global Target HTTP Proxies. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -376,8 +379,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This + * field is not applicable to global Target HTTP Proxies. * @param region region or {@code null} for none */ public TargetHttpProxy setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java index b7233ee3ae8..501e6223943 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for lists of Target - * HTTP Proxies. + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for + * lists of Target HTTP Proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public TargetHttpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -183,7 +183,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java index 5e34d1a9076..437aef687bf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java @@ -50,7 +50,8 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP + * proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetHttpProxyList setItems(java.util.List items) { } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP + * proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP + * proxies. * @param kind kind or {@code null} for none */ public TargetHttpProxyList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public TargetHttpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public TargetHttpProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java index f59205ba0d2..d83defd4376 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java @@ -75,7 +75,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String certificateMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +121,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS + * proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -167,8 +168,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String quicOverride; /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This + * field is not applicable to global TargetHttpsProxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -331,7 +332,7 @@ public TargetHttpsProxy setCertificateMap(java.lang.String certificateMap) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -339,7 +340,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpsProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -474,7 +475,8 @@ public TargetHttpsProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS + * proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -482,7 +484,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS + * proxies. * @param kind kind or {@code null} for none */ public TargetHttpsProxy setKind(java.lang.String kind) { @@ -578,8 +581,8 @@ public TargetHttpsProxy setQuicOverride(java.lang.String quicOverride) { } /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This + * field is not applicable to global TargetHttpsProxies. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -587,8 +590,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This + * field is not applicable to global TargetHttpsProxies. * @param region region or {@code null} for none */ public TargetHttpsProxy setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java index c5e35673c5f..e3b6c0c7bde 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for lists of - * Target HTTP Proxies. + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for + * lists of Target HTTP Proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpsProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpsProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java index 2f5c614d3de..30dd6b631cf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java @@ -50,7 +50,8 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS + * proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetHttpsProxyList setItems(java.util.List items) { } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS + * proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS + * proxies. * @param kind kind or {@code null} for none */ public TargetHttpsProxyList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public TargetHttpsProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public TargetHttpsProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstance.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstance.java index d8dc46444ae..be7ee592ef0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstance.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstance.java @@ -34,7 +34,7 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,7 +66,8 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String instance; /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target + * instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -114,15 +115,15 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] URL of the zone where the target instance resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the target instance resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String zone; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -130,7 +131,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetInstance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -198,7 +199,8 @@ public TargetInstance setInstance(java.lang.String instance) { } /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target + * instances. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -206,7 +208,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target + * instances. * @param kind kind or {@code null} for none */ public TargetInstance setKind(java.lang.String kind) { @@ -312,8 +315,8 @@ public TargetInstance setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] URL of the zone where the target instance resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the target instance resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -321,8 +324,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the zone where the target instance resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. + * Output only. [Output Only] URL of the zone where the target instance resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. * @param zone zone or {@code null} for none */ public TargetInstance setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java index 2b3a07f23b9..01d803ffaf3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java @@ -44,7 +44,7 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public TargetInstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetInstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java index 4ad42444a27..9ed13afb4c8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java @@ -50,7 +50,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetInstanceList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetInstanceList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetInstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public TargetInstanceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPool.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPool.java index 51f47eeb5ab..107a42242a0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPool.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPool.java @@ -51,7 +51,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String backupPool; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,7 +107,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.util.List instances; /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,7 +125,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] URL of the region where the target pool resides. + * Output only. [Output Only] URL of the region where the target pool resides. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -194,7 +194,7 @@ public TargetPool setBackupPool(java.lang.String backupPool) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -202,7 +202,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetPool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -324,7 +324,7 @@ public TargetPool setInstances(java.util.List instances) { } /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -332,7 +332,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. * @param kind kind or {@code null} for none */ public TargetPool setKind(java.lang.String kind) { @@ -366,7 +366,7 @@ public TargetPool setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the target pool resides. + * Output only. [Output Only] URL of the region where the target pool resides. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -374,7 +374,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the target pool resides. + * Output only. [Output Only] URL of the region where the target pool resides. * @param region region or {@code null} for none */ public TargetPool setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java index 965213fa705..a4eaf801e32 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java @@ -44,8 +44,8 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for aggregated lists of - * target pools. + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for + * aggregated lists of target pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public TargetPoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetPoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java index 0a8f1b2844c..e1930f67b71 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java @@ -42,8 +42,8 @@ public final class TargetPoolInstanceHealth extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when + * checking the health of an instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,8 +65,8 @@ public TargetPoolInstanceHealth setHealthStatus(java.util.List hea } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when + * checking the health of an instance. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -74,8 +74,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when + * checking the health of an instance. * @param kind kind or {@code null} for none */ public TargetPoolInstanceHealth setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolList.java index 66c2c97ec52..313eb178dbd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolList.java @@ -50,7 +50,8 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target + * pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetPoolList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target + * pools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target + * pools. * @param kind kind or {@code null} for none */ public TargetPoolList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public TargetPoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public TargetPoolList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java index b63eac66aae..0f34d06b101 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java @@ -46,7 +46,7 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.lang.String certificateMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,8 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL + * proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,7 +153,7 @@ public TargetSslProxy setCertificateMap(java.lang.String certificateMap) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -160,7 +161,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetSslProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,7 +204,8 @@ public TargetSslProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL + * proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -211,7 +213,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL + * proxies. * @param kind kind or {@code null} for none */ public TargetSslProxy setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java index e8d1f6506b7..a63574c696b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java @@ -50,7 +50,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetSslProxyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetSslProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetSslProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public TargetSslProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java index 9abb70a4721..101de85f7d2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java @@ -34,7 +34,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,8 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP + * proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -97,8 +98,8 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String proxyHeader; /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field + * is not applicable to global TCP proxy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,7 +120,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String service; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -127,7 +128,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetTcpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -170,7 +171,8 @@ public TargetTcpProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP + * proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -178,7 +180,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP + * proxies. * @param kind kind or {@code null} for none */ public TargetTcpProxy setKind(java.lang.String kind) { @@ -266,8 +269,8 @@ public TargetTcpProxy setProxyHeader(java.lang.String proxyHeader) { } /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field + * is not applicable to global TCP proxy. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -275,8 +278,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field + * is not applicable to global TCP proxy. * @param region region or {@code null} for none */ public TargetTcpProxy setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java index e6a659795d2..af685bb148e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js } /** - * [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for lists of Target - * TCP Proxies. + * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for + * lists of Target TCP Proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetTcpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetTcpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java index f2aae16d2ea..51094df31db 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java @@ -50,7 +50,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetTcpProxyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetTcpProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetTcpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public TargetTcpProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java index 0b20beb9ea8..5447e2d91e4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java @@ -33,7 +33,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +62,8 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,6 +109,14 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.String network; + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TargetVpnGatewayParams params; + /** * [Output Only] URL of the region where the target VPN gateway resides. You must specify this * field as part of the HTTP request URL. It is not settable as a field in the request body. @@ -140,7 +149,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.util.List tunnels; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -148,7 +157,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -210,7 +219,8 @@ public TargetVpnGateway setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -218,7 +228,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. * @param kind kind or {@code null} for none */ public TargetVpnGateway setKind(java.lang.String kind) { @@ -358,6 +369,25 @@ public TargetVpnGateway setNetwork(java.lang.String network) { return this; } + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public TargetVpnGatewayParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public TargetVpnGateway setParams(TargetVpnGatewayParams params) { + this.params = params; + return this; + } + /** * [Output Only] URL of the region where the target VPN gateway resides. You must specify this * field as part of the HTTP request URL. It is not settable as a field in the request body. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java index a428470d62c..fcee0487cb5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java @@ -44,7 +44,8 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +62,14 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +117,8 @@ public TargetVpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetVpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java index d691fa57cbe..6eaf8c73a84 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java @@ -50,7 +50,8 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetVpnGatewayList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. * @param kind kind or {@code null} for none */ public TargetVpnGatewayList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public TargetVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public TargetVpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java new file mode 100644 index 00000000000..b920b6f704e --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for TargetVpnGatewayParams. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TargetVpnGatewayParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public TargetVpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public TargetVpnGatewayParams set(String fieldName, Object value) { + return (TargetVpnGatewayParams) super.set(fieldName, value); + } + + @Override + public TargetVpnGatewayParams clone() { + return (TargetVpnGatewayParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java index 8da719aadc4..513196be314 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java @@ -56,7 +56,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +196,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -227,9 +227,9 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { } /** - * [Output Only] URL of the region where the regional URL map resides. This field is not - * applicable to global URL maps. You must specify this field as part of the HTTP request URL. It - * is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional URL map resides. This field is + * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. + * It is not settable as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -254,7 +254,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.util.List tests; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -262,7 +262,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public UrlMap setCreationTimestamp(java.lang.String creationTimestamp) { @@ -590,7 +590,7 @@ public UrlMap setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -598,7 +598,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. * @param kind kind or {@code null} for none */ public UrlMap setKind(java.lang.String kind) { @@ -649,9 +649,9 @@ public UrlMap setPathMatchers(java.util.List pathMatchers) { } /** - * [Output Only] URL of the region where the regional URL map resides. This field is not - * applicable to global URL maps. You must specify this field as part of the HTTP request URL. It - * is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional URL map resides. This field is + * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. + * It is not settable as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -659,9 +659,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional URL map resides. This field is not - * applicable to global URL maps. You must specify this field as part of the HTTP request URL. It - * is not settable as a field in the request body. + * Output only. [Output Only] URL of the region where the regional URL map resides. This field is + * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. + * It is not settable as a field in the request body. * @param region region or {@code null} for none */ public UrlMap setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapList.java index 47969709c14..717e1bf36c0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapList.java @@ -50,7 +50,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public UrlMapList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public UrlMapList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public UrlMapList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public UrlMapList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java index 4ef0ac8e10f..97dc4836b3e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java @@ -44,7 +44,7 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public UrlMapsAggregatedList setItems(java.util.Map i } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public UrlMapsAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public UrlMapsAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { @@ -173,7 +173,7 @@ public UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UrlMapsAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java index 20241b48f30..05fe83d9ac0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java @@ -30,14 +30,14 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String externalIpv6Prefix; /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +108,7 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJs private java.lang.String subnetwork; /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. * @return value or {@code null} for none */ public java.lang.String getExternalIpv6Prefix() { @@ -116,7 +116,7 @@ public java.lang.String getExternalIpv6Prefix() { } /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. * @param externalIpv6Prefix externalIpv6Prefix or {@code null} for none */ public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefix) { @@ -125,7 +125,7 @@ public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefi } /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. * @return value or {@code null} for none */ public java.lang.String getInternalIpv6Prefix() { @@ -133,7 +133,7 @@ public java.lang.String getInternalIpv6Prefix() { } /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. * @param internalIpv6Prefix internalIpv6Prefix or {@code null} for none */ public UsableSubnetwork setInternalIpv6Prefix(java.lang.String internalIpv6Prefix) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java index 1ddaab1abe0..44ad036dfd4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java @@ -30,7 +30,8 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client.json.GenericJson { /** - * The range of IP addresses belonging to this subnetwork secondary range. + * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 + * range. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,7 +47,8 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client. private java.lang.String rangeName; /** - * The range of IP addresses belonging to this subnetwork secondary range. + * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 + * range. * @return value or {@code null} for none */ public java.lang.String getIpCidrRange() { @@ -54,7 +56,8 @@ public java.lang.String getIpCidrRange() { } /** - * The range of IP addresses belonging to this subnetwork secondary range. + * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 + * range. * @param ipCidrRange ipCidrRange or {@code null} for none */ public UsableSubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java index 842a539118c..534fc9e95cd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -50,8 +50,8 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for + * aggregated lists of usable subnetworks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,7 +69,7 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,14 +82,14 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,8 +137,8 @@ public UsableSubnetworksAggregatedList setItems(java.util.List } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for + * aggregated lists of usable subnetworks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -146,8 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for + * aggregated lists of usable subnetworks. * @param kind kind or {@code null} for none */ public UsableSubnetworksAggregatedList setKind(java.lang.String kind) { @@ -181,7 +181,7 @@ public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPag } /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * @return value or {@code null} for none */ public java.util.List getScopedWarnings() { @@ -189,7 +189,7 @@ public java.util.List getScopedWarnings() { } /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * @param scopedWarnings scopedWarnings or {@code null} for none */ public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List scopedWarnings) { @@ -198,7 +198,7 @@ public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List getUnreachables() { @@ -223,7 +223,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UsableSubnetworksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java index b745011ac7e..dba5c153b73 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java @@ -30,7 +30,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.GenericJson { /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.Gene private java.util.List interfaceNatMappings; /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * @return value or {@code null} for none */ public java.lang.String getInstanceName() { @@ -51,7 +51,7 @@ public java.lang.String getInstanceName() { } /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * @param instanceName instanceName or {@code null} for none */ public VmEndpointNatMappings setInstanceName(java.lang.String instanceName) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java index 09332672258..69ee2a0bc82 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java @@ -30,8 +30,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google.api.client.json.GenericJson { /** - * List of all drain IP:port-range mappings assigned to this interface. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: + * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges + * are inclusive, that is, both the first and the last ports can be used for NAT. Example: * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * The value may be {@code null}. */ @@ -39,8 +39,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. private java.util.List drainNatIpPortRanges; /** - * A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, - * that is, both the first and the last ports can be used for NAT. Example: + * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are + * inclusive, that is, both the first and the last ports can be used for NAT. Example: * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * The value may be {@code null}. */ @@ -48,46 +48,46 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. private java.util.List natIpPortRanges; /** - * Total number of drain ports across all NAT IPs allocated to this interface. It equals to the - * aggregated port number in the field drain_nat_ip_port_ranges. + * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It + * equals to the aggregated port number in the field drain_nat_ip_port_ranges. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer numTotalDrainNatPorts; /** - * Total number of ports across all NAT IPs allocated to this interface. It equals to the - * aggregated port number in the field nat_ip_port_ranges. + * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to + * the aggregated port number in the field nat_ip_port_ranges. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer numTotalNatPorts; /** - * Information about mappings provided by rules in this NAT. + * Output only. Information about mappings provided by rules in this NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List ruleMappings; /** - * Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: - * "10.33.4.55/32", or "192.168.5.0/24". + * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP + * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceAliasIpRange; /** - * Primary IP of the VM for this NIC. + * Output only. Primary IP of the VM for this NIC. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceVirtualIp; /** - * List of all drain IP:port-range mappings assigned to this interface. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: + * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges + * are inclusive, that is, both the first and the last ports can be used for NAT. Example: * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @return value or {@code null} for none */ @@ -96,8 +96,8 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * List of all drain IP:port-range mappings assigned to this interface. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: + * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges + * are inclusive, that is, both the first and the last ports can be used for NAT. Example: * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @param drainNatIpPortRanges drainNatIpPortRanges or {@code null} for none */ @@ -107,8 +107,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setDrainNatIpPortRanges(java.ut } /** - * A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, - * that is, both the first and the last ports can be used for NAT. Example: + * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are + * inclusive, that is, both the first and the last ports can be used for NAT. Example: * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @return value or {@code null} for none */ @@ -117,8 +117,8 @@ public java.util.List getNatIpPortRanges() { } /** - * A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, - * that is, both the first and the last ports can be used for NAT. Example: + * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are + * inclusive, that is, both the first and the last ports can be used for NAT. Example: * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @param natIpPortRanges natIpPortRanges or {@code null} for none */ @@ -128,8 +128,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNatIpPortRanges(java.util.Li } /** - * Total number of drain ports across all NAT IPs allocated to this interface. It equals to the - * aggregated port number in the field drain_nat_ip_port_ranges. + * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It + * equals to the aggregated port number in the field drain_nat_ip_port_ranges. * @return value or {@code null} for none */ public java.lang.Integer getNumTotalDrainNatPorts() { @@ -137,8 +137,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * Total number of drain ports across all NAT IPs allocated to this interface. It equals to the - * aggregated port number in the field drain_nat_ip_port_ranges. + * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It + * equals to the aggregated port number in the field drain_nat_ip_port_ranges. * @param numTotalDrainNatPorts numTotalDrainNatPorts or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.lang.Integer numTotalDrainNatPorts) { @@ -147,8 +147,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.l } /** - * Total number of ports across all NAT IPs allocated to this interface. It equals to the - * aggregated port number in the field nat_ip_port_ranges. + * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to + * the aggregated port number in the field nat_ip_port_ranges. * @return value or {@code null} for none */ public java.lang.Integer getNumTotalNatPorts() { @@ -156,8 +156,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * Total number of ports across all NAT IPs allocated to this interface. It equals to the - * aggregated port number in the field nat_ip_port_ranges. + * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to + * the aggregated port number in the field nat_ip_port_ranges. * @param numTotalNatPorts numTotalNatPorts or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.Integer numTotalNatPorts) { @@ -166,7 +166,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.I } /** - * Information about mappings provided by rules in this NAT. + * Output only. Information about mappings provided by rules in this NAT. * @return value or {@code null} for none */ public java.util.List getRuleMappings() { @@ -174,7 +174,7 @@ public java.util.List } /** - * Information about mappings provided by rules in this NAT. + * Output only. Information about mappings provided by rules in this NAT. * @param ruleMappings ruleMappings or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List ruleMappings) { @@ -183,8 +183,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List< } /** - * Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: - * "10.33.4.55/32", or "192.168.5.0/24". + * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP + * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". * @return value or {@code null} for none */ public java.lang.String getSourceAliasIpRange() { @@ -192,8 +192,8 @@ public java.lang.String getSourceAliasIpRange() { } /** - * Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: - * "10.33.4.55/32", or "192.168.5.0/24". + * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP + * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". * @param sourceAliasIpRange sourceAliasIpRange or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang.String sourceAliasIpRange) { @@ -202,7 +202,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang } /** - * Primary IP of the VM for this NIC. + * Output only. Primary IP of the VM for this NIC. * @return value or {@code null} for none */ public java.lang.String getSourceVirtualIp() { @@ -210,7 +210,7 @@ public java.lang.String getSourceVirtualIp() { } /** - * Primary IP of the VM for this NIC. + * Output only. Primary IP of the VM for this NIC. * @param sourceVirtualIp sourceVirtualIp or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setSourceVirtualIp(java.lang.String sourceVirtualIp) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java index a29036c0838..1b6a728406e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java @@ -30,50 +30,50 @@ public final class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends com.google.api.client.json.GenericJson { /** - * List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges - * are inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List drainNatIpPortRanges; /** - * A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List natIpPortRanges; /** - * Total number of drain ports across all NAT IPs allocated to this interface by this rule. It - * equals the aggregated port number in the field drain_nat_ip_port_ranges. + * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this + * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer numTotalDrainNatPorts; /** - * Total number of ports across all NAT IPs allocated to this interface by this rule. It equals - * the aggregated port number in the field nat_ip_port_ranges. + * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. + * It equals the aggregated port number in the field nat_ip_port_ranges. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer numTotalNatPorts; /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer ruleNumber; /** - * List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges - * are inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @return value or {@code null} for none */ public java.util.List getDrainNatIpPortRanges() { @@ -81,9 +81,9 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges - * are inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @param drainNatIpPortRanges drainNatIpPortRanges or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPortRanges(java.util.List drainNatIpPortRanges) { @@ -92,9 +92,9 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPor } /** - * A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @return value or {@code null} for none */ public java.util.List getNatIpPortRanges() { @@ -102,9 +102,9 @@ public java.util.List getNatIpPortRanges() { } /** - * A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @param natIpPortRanges natIpPortRanges or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRanges(java.util.List natIpPortRanges) { @@ -113,8 +113,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRang } /** - * Total number of drain ports across all NAT IPs allocated to this interface by this rule. It - * equals the aggregated port number in the field drain_nat_ip_port_ranges. + * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this + * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. * @return value or {@code null} for none */ public java.lang.Integer getNumTotalDrainNatPorts() { @@ -122,8 +122,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * Total number of drain ports across all NAT IPs allocated to this interface by this rule. It - * equals the aggregated port number in the field drain_nat_ip_port_ranges. + * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this + * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. * @param numTotalDrainNatPorts numTotalDrainNatPorts or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrainNatPorts(java.lang.Integer numTotalDrainNatPorts) { @@ -132,8 +132,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrain } /** - * Total number of ports across all NAT IPs allocated to this interface by this rule. It equals - * the aggregated port number in the field nat_ip_port_ranges. + * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. + * It equals the aggregated port number in the field nat_ip_port_ranges. * @return value or {@code null} for none */ public java.lang.Integer getNumTotalNatPorts() { @@ -141,8 +141,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * Total number of ports across all NAT IPs allocated to this interface by this rule. It equals - * the aggregated port number in the field nat_ip_port_ranges. + * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. + * It equals the aggregated port number in the field nat_ip_port_ranges. * @param numTotalNatPorts numTotalNatPorts or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPorts(java.lang.Integer numTotalNatPorts) { @@ -151,7 +151,7 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPo } /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleNumber() { @@ -159,7 +159,7 @@ public java.lang.Integer getRuleNumber() { } /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * @param ruleNumber ruleNumber or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setRuleNumber(java.lang.Integer ruleNumber) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java index 286f93e7107..5fb6f39d7d1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java @@ -37,8 +37,8 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists + * of Nat mappings of VM endpoints. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,8 +99,8 @@ public VmEndpointNatMappingsList setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists + * of Nat mappings of VM endpoints. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -108,8 +108,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists + * of Nat mappings of VM endpoints. * @param kind kind or {@code null} for none */ public VmEndpointNatMappingsList setKind(java.lang.String kind) { @@ -158,7 +158,7 @@ public VmEndpointNatMappingsList setResult(java.util.List } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public VmEndpointNatMappingsList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java new file mode 100644 index 00000000000..c33bf330196 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java @@ -0,0 +1,414 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a VM extension policy. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VmExtensionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * configurations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map extensionPolicies; + + /** + * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, + * if applicable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String globalResourceLink; + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the + * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instanceSelectors; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean managedByGlobal; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to + * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower + * integers indicate higher priorities. If you do not specify a priority when creating a rule, it + * is assigned a priority of 1000. If priorities are equal, the policy with the most recent + * creation timestamp takes precedence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateTimestamp; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public VmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. + * @param description description or {@code null} for none + */ + public VmExtensionPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * configurations. + * @return value or {@code null} for none + */ + public java.util.Map getExtensionPolicies() { + return extensionPolicies; + } + + /** + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * configurations. + * @param extensionPolicies extensionPolicies or {@code null} for none + */ + public VmExtensionPolicy setExtensionPolicies(java.util.Map extensionPolicies) { + this.extensionPolicies = extensionPolicies; + return this; + } + + /** + * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, + * if applicable. + * @return value or {@code null} for none + */ + public java.lang.String getGlobalResourceLink() { + return globalResourceLink; + } + + /** + * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, + * if applicable. + * @param globalResourceLink globalResourceLink or {@code null} for none + */ + public VmExtensionPolicy setGlobalResourceLink(java.lang.String globalResourceLink) { + this.globalResourceLink = globalResourceLink; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @param id id or {@code null} for none + */ + public VmExtensionPolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the + * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. + * @return value or {@code null} for none + */ + public java.util.List getInstanceSelectors() { + return instanceSelectors; + } + + /** + * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the + * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. + * @param instanceSelectors instanceSelectors or {@code null} for none + */ + public VmExtensionPolicy setInstanceSelectors(java.util.List instanceSelectors) { + this.instanceSelectors = instanceSelectors; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * @param kind kind or {@code null} for none + */ + public VmExtensionPolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. + * @return value or {@code null} for none + */ + public java.lang.Boolean getManagedByGlobal() { + return managedByGlobal; + } + + /** + * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. + * @param managedByGlobal managedByGlobal or {@code null} for none + */ + public VmExtensionPolicy setManagedByGlobal(java.lang.Boolean managedByGlobal) { + this.managedByGlobal = managedByGlobal; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public VmExtensionPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to + * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower + * integers indicate higher priorities. If you do not specify a priority when creating a rule, it + * is assigned a priority of 1000. If priorities are equal, the policy with the most recent + * creation timestamp takes precedence. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to + * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower + * integers indicate higher priorities. If you do not specify a priority when creating a rule, it + * is assigned a priority of 1000. If priorities are equal, the policy with the most recent + * creation timestamp takes precedence. + * @param priority priority or {@code null} for none + */ + public VmExtensionPolicy setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public VmExtensionPolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public VmExtensionPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. + * @param state state or {@code null} for none + */ + public VmExtensionPolicy setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateTimestamp() { + return updateTimestamp; + } + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * @param updateTimestamp updateTimestamp or {@code null} for none + */ + public VmExtensionPolicy setUpdateTimestamp(java.lang.String updateTimestamp) { + this.updateTimestamp = updateTimestamp; + return this; + } + + @Override + public VmExtensionPolicy set(String fieldName, Object value) { + return (VmExtensionPolicy) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicy clone() { + return (VmExtensionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java new file mode 100644 index 00000000000..e7c963e89f3 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Configuration for a specific VM extension. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VmExtensionPolicyExtensionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The specific version of the extension to install. If not set, the latest version is + * used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pinnedVersion; + + /** + * Optional. String-based configuration data for the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stringConfig; + + /** + * Optional. The specific version of the extension to install. If not set, the latest version is + * used. + * @return value or {@code null} for none + */ + public java.lang.String getPinnedVersion() { + return pinnedVersion; + } + + /** + * Optional. The specific version of the extension to install. If not set, the latest version is + * used. + * @param pinnedVersion pinnedVersion or {@code null} for none + */ + public VmExtensionPolicyExtensionPolicy setPinnedVersion(java.lang.String pinnedVersion) { + this.pinnedVersion = pinnedVersion; + return this; + } + + /** + * Optional. String-based configuration data for the extension. + * @return value or {@code null} for none + */ + public java.lang.String getStringConfig() { + return stringConfig; + } + + /** + * Optional. String-based configuration data for the extension. + * @param stringConfig stringConfig or {@code null} for none + */ + public VmExtensionPolicyExtensionPolicy setStringConfig(java.lang.String stringConfig) { + this.stringConfig = stringConfig; + return this; + } + + @Override + public VmExtensionPolicyExtensionPolicy set(String fieldName, Object value) { + return (VmExtensionPolicyExtensionPolicy) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyExtensionPolicy clone() { + return (VmExtensionPolicyExtensionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.java new file mode 100644 index 00000000000..eb7dcf9ee1f --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines how to select VMs to apply a zone VM extension policy. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VmExtensionPolicyInstanceSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. LabelSelector selects VMs based on their labels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VmExtensionPolicyLabelSelector labelSelector; + + /** + * Optional. LabelSelector selects VMs based on their labels. + * @return value or {@code null} for none + */ + public VmExtensionPolicyLabelSelector getLabelSelector() { + return labelSelector; + } + + /** + * Optional. LabelSelector selects VMs based on their labels. + * @param labelSelector labelSelector or {@code null} for none + */ + public VmExtensionPolicyInstanceSelector setLabelSelector(VmExtensionPolicyLabelSelector labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + @Override + public VmExtensionPolicyInstanceSelector set(String fieldName, Object value) { + return (VmExtensionPolicyInstanceSelector) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyInstanceSelector clone() { + return (VmExtensionPolicyInstanceSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java new file mode 100644 index 00000000000..f9234c51174 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A LabelSelector is applied to a VM only if it matches all the specified labels. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VmExtensionPolicyLabelSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels + * specified in this map to be selected (logical AND). + * + * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must + * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are + * ("key1", "value1") and ("something", "else"), it will not be selected. + * + * If the map is empty, it's considered a match. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map inclusionLabels; + + /** + * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels + * specified in this map to be selected (logical AND). + * + * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must + * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are + * ("key1", "value1") and ("something", "else"), it will not be selected. + * + * If the map is empty, it's considered a match. + * @return value or {@code null} for none + */ + public java.util.Map getInclusionLabels() { + return inclusionLabels; + } + + /** + * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels + * specified in this map to be selected (logical AND). + * + * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must + * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are + * ("key1", "value1") and ("something", "else"), it will not be selected. + * + * If the map is empty, it's considered a match. + * @param inclusionLabels inclusionLabels or {@code null} for none + */ + public VmExtensionPolicyLabelSelector setInclusionLabels(java.util.Map inclusionLabels) { + this.inclusionLabels = inclusionLabels; + return this; + } + + @Override + public VmExtensionPolicyLabelSelector set(String fieldName, Object value) { + return (VmExtensionPolicyLabelSelector) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyLabelSelector clone() { + return (VmExtensionPolicyLabelSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java new file mode 100644 index 00000000000..2cc93446c09 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java @@ -0,0 +1,449 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for VmExtensionPolicyList. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VmExtensionPolicyList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this + * object. This field is used in optimistic locking. This field will be ignored when inserting a + * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the + * VmExtensionPolicy. + * + * To see the latest value of the fingerprint, make a get() request to retrieve a + * VmExtensionPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Output only. [Output Only] A list of VM extension policy resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider VmExtensionPolicy used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(VmExtensionPolicy.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * Output only. [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this + * object. This field is used in optimistic locking. This field will be ignored when inserting a + * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the + * VmExtensionPolicy. + * + * To see the latest value of the fingerprint, make a get() request to retrieve a + * VmExtensionPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this + * object. This field is used in optimistic locking. This field will be ignored when inserting a + * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the + * VmExtensionPolicy. + * + * To see the latest value of the fingerprint, make a get() request to retrieve a + * VmExtensionPolicy. + * @param etag etag or {@code null} for none + */ + public VmExtensionPolicyList setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public VmExtensionPolicyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] A list of VM extension policy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. [Output Only] A list of VM extension policy resources. + * @param items items or {@code null} for none + */ + public VmExtensionPolicyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public VmExtensionPolicyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public VmExtensionPolicyList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public VmExtensionPolicyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public VmExtensionPolicyList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public VmExtensionPolicyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VmExtensionPolicyList set(String fieldName, Object value) { + return (VmExtensionPolicyList) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyList clone() { + return (VmExtensionPolicyList) super.clone(); + } + + /** + * Output only. [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for VmExtensionPolicyListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGateway.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGateway.java index 521afd329ea..d8149f69b9b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGateway.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGateway.java @@ -35,7 +35,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,15 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIpVersion; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,14 +112,22 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String network; /** - * [Output Only] URL of the region where the VPN gateway resides. + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnGatewayParams params; + + /** + * Output only. [Output Only] URL of the region where the VPN gateway resides. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,7 +150,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.util.List vpnInterfaces; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -149,7 +158,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -194,7 +203,8 @@ public VpnGateway setGatewayIpVersion(java.lang.String gatewayIpVersion) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -202,7 +212,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. * @param id id or {@code null} for none */ public VpnGateway setId(java.math.BigInteger id) { @@ -211,7 +222,7 @@ public VpnGateway setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -219,7 +230,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * @param kind kind or {@code null} for none */ public VpnGateway setKind(java.lang.String kind) { @@ -360,7 +371,26 @@ public VpnGateway setNetwork(java.lang.String network) { } /** - * [Output Only] URL of the region where the VPN gateway resides. + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public VpnGatewayParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public VpnGateway setParams(VpnGatewayParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the VPN gateway resides. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -368,7 +398,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the VPN gateway resides. + * Output only. [Output Only] URL of the region where the VPN gateway resides. * @param region region or {@code null} for none */ public VpnGateway setRegion(java.lang.String region) { @@ -377,7 +407,7 @@ public VpnGateway setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -385,7 +415,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public VpnGateway setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java index ad57f221ca9..125137b6dcb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java index 5d0c093170d..582e5d5df26 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java @@ -50,7 +50,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public VpnGatewayList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * @param kind kind or {@code null} for none */ public VpnGatewayList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public VpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public VpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java new file mode 100644 index 00000000000..385521140f5 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for VpnGatewayParams. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VpnGatewayParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public VpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public VpnGatewayParams set(String fieldName, Object value) { + return (VpnGatewayParams) super.set(fieldName, value); + } + + @Override + public VpnGatewayParams clone() { + return (VpnGatewayParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java index 7904e9eec5a..e70f0cef786 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java @@ -30,14 +30,14 @@ public final class VpnGatewayStatus extends com.google.api.client.json.GenericJson { /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List vpnConnections; /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * @return value or {@code null} for none */ public java.util.List getVpnConnections() { @@ -45,7 +45,7 @@ public java.util.List getVpnConnections() { } /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * @param vpnConnections vpnConnections or {@code null} for none */ public VpnGatewayStatus setVpnConnections(java.util.List vpnConnections) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java index 67a40c89518..ff635e7b322 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java @@ -30,29 +30,29 @@ public final class VpnGatewayStatusTunnel extends com.google.api.client.json.GenericJson { /** - * The VPN gateway interface this VPN tunnel is associated with. + * Output only. The VPN gateway interface this VPN tunnel is associated with. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Long localGatewayInterface; /** - * The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an - * external VPN gateway or a Google Cloud VPN gateway. + * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could + * either be an external VPN gateway or a Google Cloud VPN gateway. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Long peerGatewayInterface; /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String tunnelUrl; /** - * The VPN gateway interface this VPN tunnel is associated with. + * Output only. The VPN gateway interface this VPN tunnel is associated with. * @return value or {@code null} for none */ public java.lang.Long getLocalGatewayInterface() { @@ -60,7 +60,7 @@ public java.lang.Long getLocalGatewayInterface() { } /** - * The VPN gateway interface this VPN tunnel is associated with. + * Output only. The VPN gateway interface this VPN tunnel is associated with. * @param localGatewayInterface localGatewayInterface or {@code null} for none */ public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatewayInterface) { @@ -69,8 +69,8 @@ public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatew } /** - * The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an - * external VPN gateway or a Google Cloud VPN gateway. + * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could + * either be an external VPN gateway or a Google Cloud VPN gateway. * @return value or {@code null} for none */ public java.lang.Long getPeerGatewayInterface() { @@ -78,8 +78,8 @@ public java.lang.Long getPeerGatewayInterface() { } /** - * The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an - * external VPN gateway or a Google Cloud VPN gateway. + * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could + * either be an external VPN gateway or a Google Cloud VPN gateway. * @param peerGatewayInterface peerGatewayInterface or {@code null} for none */ public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGatewayInterface) { @@ -88,7 +88,7 @@ public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGateway } /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * @return value or {@code null} for none */ public java.lang.String getTunnelUrl() { @@ -96,7 +96,7 @@ public java.lang.String getTunnelUrl() { } /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * @param tunnelUrl tunnelUrl or {@code null} for none */ public VpnGatewayStatusTunnel setTunnelUrl(java.lang.String tunnelUrl) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java index 1e97486d287..af1945dd5b6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java @@ -31,16 +31,16 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.json.GenericJson { /** - * URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection - * are connected. This field is mutually exclusive with peer_gcp_gateway. + * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this + * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String peerExternalGateway; /** - * URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are - * connected. This field is mutually exclusive with peer_gcp_gateway. + * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN + * connection are connected. This field is mutually exclusive with peer_gcp_gateway. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,8 +67,8 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.j } /** - * URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection - * are connected. This field is mutually exclusive with peer_gcp_gateway. + * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this + * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. * @return value or {@code null} for none */ public java.lang.String getPeerExternalGateway() { @@ -76,8 +76,8 @@ public java.lang.String getPeerExternalGateway() { } /** - * URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection - * are connected. This field is mutually exclusive with peer_gcp_gateway. + * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this + * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. * @param peerExternalGateway peerExternalGateway or {@code null} for none */ public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String peerExternalGateway) { @@ -86,8 +86,8 @@ public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String pee } /** - * URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are - * connected. This field is mutually exclusive with peer_gcp_gateway. + * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN + * connection are connected. This field is mutually exclusive with peer_gcp_gateway. * @return value or {@code null} for none */ public java.lang.String getPeerGcpGateway() { @@ -95,8 +95,8 @@ public java.lang.String getPeerGcpGateway() { } /** - * URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are - * connected. This field is mutually exclusive with peer_gcp_gateway. + * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN + * connection are connected. This field is mutually exclusive with peer_gcp_gateway. * @param peerGcpGateway peerGcpGateway or {@code null} for none */ public VpnGatewayStatusVpnConnection setPeerGcpGateway(java.lang.String peerGcpGateway) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java index 244d89c5e97..a0c47f43cf1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java @@ -30,7 +30,8 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.json.GenericJson { /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN + * gateway. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,21 +48,22 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String interconnectAttachment; /** - * [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address - * could be either a regional external IP address or a regional internal IP address. The two IP - * addresses for a VPN gateway must be all regional external or regional internal IP addresses. - * There cannot be a mix of regional external IP addresses and regional internal IP addresses. For - * HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional - * internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud - * Interconnect) HA VPN tunnels, the IP address must be a regional external IP address. + * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. + * The IP address could be either a regional external IP address or a regional internal IP + * address. The two IP addresses for a VPN gateway must be all regional external or regional + * internal IP addresses. There cannot be a mix of regional external IP addresses and regional + * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces + * could either be regional internal IP addresses or regional external IP addresses. For regular + * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external + * IP address. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ipAddress; /** - * [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 - * address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. + * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. + * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. * 2001:db8::2d9:51:0:0). * The value may be {@code null}. */ @@ -69,7 +71,8 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String ipv6Address; /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN + * gateway. * @return value or {@code null} for none */ public java.lang.Long getId() { @@ -77,7 +80,8 @@ public java.lang.Long getId() { } /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN + * gateway. * @param id id or {@code null} for none */ public VpnGatewayVpnGatewayInterface setId(java.lang.Long id) { @@ -109,13 +113,14 @@ public VpnGatewayVpnGatewayInterface setInterconnectAttachment(java.lang.String } /** - * [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address - * could be either a regional external IP address or a regional internal IP address. The two IP - * addresses for a VPN gateway must be all regional external or regional internal IP addresses. - * There cannot be a mix of regional external IP addresses and regional internal IP addresses. For - * HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional - * internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud - * Interconnect) HA VPN tunnels, the IP address must be a regional external IP address. + * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. + * The IP address could be either a regional external IP address or a regional internal IP + * address. The two IP addresses for a VPN gateway must be all regional external or regional + * internal IP addresses. There cannot be a mix of regional external IP addresses and regional + * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces + * could either be regional internal IP addresses or regional external IP addresses. For regular + * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external + * IP address. * @return value or {@code null} for none */ public java.lang.String getIpAddress() { @@ -123,13 +128,14 @@ public java.lang.String getIpAddress() { } /** - * [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address - * could be either a regional external IP address or a regional internal IP address. The two IP - * addresses for a VPN gateway must be all regional external or regional internal IP addresses. - * There cannot be a mix of regional external IP addresses and regional internal IP addresses. For - * HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional - * internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud - * Interconnect) HA VPN tunnels, the IP address must be a regional external IP address. + * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. + * The IP address could be either a regional external IP address or a regional internal IP + * address. The two IP addresses for a VPN gateway must be all regional external or regional + * internal IP addresses. There cannot be a mix of regional external IP addresses and regional + * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces + * could either be regional internal IP addresses or regional external IP addresses. For regular + * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external + * IP address. * @param ipAddress ipAddress or {@code null} for none */ public VpnGatewayVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { @@ -138,8 +144,8 @@ public VpnGatewayVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { } /** - * [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 - * address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. + * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. + * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. * 2001:db8::2d9:51:0:0). * @return value or {@code null} for none */ @@ -148,8 +154,8 @@ public java.lang.String getIpv6Address() { } /** - * [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 - * address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. + * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. + * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. * 2001:db8::2d9:51:0:0). * @param ipv6Address ipv6Address or {@code null} for none */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnel.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnel.java index 5febf7b3d74..03f6b807e23 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnel.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnel.java @@ -39,7 +39,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private VpnTunnelCipherSuite cipherSuite; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,7 +75,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private java.lang.Integer ikeVersion; /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,6 +123,14 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnTunnelParams params; + /** * URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by * the client when the VPN tunnel is created. This field is exclusive with the field @@ -272,7 +280,7 @@ public VpnTunnel setCipherSuite(VpnTunnelCipherSuite cipherSuite) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -280,7 +288,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnTunnel setCreationTimestamp(java.lang.String creationTimestamp) { @@ -359,7 +367,7 @@ public VpnTunnel setIkeVersion(java.lang.Integer ikeVersion) { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -367,7 +375,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * @param kind kind or {@code null} for none */ public VpnTunnel setKind(java.lang.String kind) { @@ -511,6 +519,25 @@ public VpnTunnel setName(java.lang.String name) { return this; } + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public VpnTunnelParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public VpnTunnel setParams(VpnTunnelParams params) { + this.params = params; + return this; + } + /** * URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by * the client when the VPN tunnel is created. This field is exclusive with the field diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java index 8defd580f15..803aead4170 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnTunnelAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnTunnelAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java index 66f5b6260ef..467d94bfe67 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java @@ -50,7 +50,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public VpnTunnelList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * @param kind kind or {@code null} for none */ public VpnTunnelList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public VpnTunnelList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public VpnTunnelList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java new file mode 100644 index 00000000000..26bbf26ff78 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for VpnTunnelParams. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VpnTunnelParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public VpnTunnelParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public VpnTunnelParams set(String fieldName, Object value) { + return (VpnTunnelParams) super.set(fieldName, value); + } + + @Override + public VpnTunnelParams clone() { + return (VpnTunnelParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Wire.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Wire.java index a2ebc4201ae..d2d7f2d7532 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Wire.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Wire.java @@ -30,25 +30,25 @@ public final class Wire extends com.google.api.client.json.GenericJson { /** - * [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When - * true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to - * true. + * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is + * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. + * Defaults to true. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean adminEnabled; /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List endpoints; /** - * [Output Only] A label that identifies the wire. The format of this label combines the existing - * labels of the wire group endpoints and Interconnect connections used by this wire in - * alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: + * Output only. [Output Only] A label that identifies the wire. The format of this label combines + * the existing labels of the wire group endpoints and Interconnect connections used by this wire + * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels * that you entered as map keys when you specified the wire group Interconnect objects. @@ -58,16 +58,16 @@ public final class Wire extends com.google.api.client.json.GenericJson { private java.lang.String label; /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * The value may be {@code null}. */ @com.google.api.client.util.Key private WireProperties wireProperties; /** - * [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When - * true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to - * true. + * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is + * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. + * Defaults to true. * @return value or {@code null} for none */ public java.lang.Boolean getAdminEnabled() { @@ -75,9 +75,9 @@ public java.lang.Boolean getAdminEnabled() { } /** - * [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When - * true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to - * true. + * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is + * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. + * Defaults to true. * @param adminEnabled adminEnabled or {@code null} for none */ public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { @@ -86,7 +86,7 @@ public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -94,7 +94,7 @@ public java.util.List getEndpoints() { } /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * @param endpoints endpoints or {@code null} for none */ public Wire setEndpoints(java.util.List endpoints) { @@ -103,9 +103,9 @@ public Wire setEndpoints(java.util.List endpoints) { } /** - * [Output Only] A label that identifies the wire. The format of this label combines the existing - * labels of the wire group endpoints and Interconnect connections used by this wire in - * alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: + * Output only. [Output Only] A label that identifies the wire. The format of this label combines + * the existing labels of the wire group endpoints and Interconnect connections used by this wire + * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels * that you entered as map keys when you specified the wire group Interconnect objects. @@ -116,9 +116,9 @@ public java.lang.String getLabel() { } /** - * [Output Only] A label that identifies the wire. The format of this label combines the existing - * labels of the wire group endpoints and Interconnect connections used by this wire in - * alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: + * Output only. [Output Only] A label that identifies the wire. The format of this label combines + * the existing labels of the wire group endpoints and Interconnect connections used by this wire + * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels * that you entered as map keys when you specified the wire group Interconnect objects. @@ -130,7 +130,7 @@ public Wire setLabel(java.lang.String label) { } /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * @return value or {@code null} for none */ public WireProperties getWireProperties() { @@ -138,7 +138,7 @@ public WireProperties getWireProperties() { } /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * @param wireProperties wireProperties or {@code null} for none */ public Wire setWireProperties(WireProperties wireProperties) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroup.java index cadcca1fedc..c894fd2ef5c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroup.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroup.java @@ -39,7 +39,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.Boolean adminEnabled; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,15 +61,15 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.util.Map endpoints; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,21 +87,21 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean reconciling; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private WireProperties wireProperties; /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,7 +149,7 @@ public WireGroup setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -157,7 +157,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public WireGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -202,8 +202,8 @@ public WireGroup setEndpoints(java.util.Map endpoints } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -211,8 +211,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public WireGroup setId(java.math.BigInteger id) { @@ -221,7 +221,7 @@ public WireGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -229,7 +229,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @param kind kind or {@code null} for none */ public WireGroup setKind(java.lang.String kind) { @@ -263,7 +263,7 @@ public WireGroup setName(java.lang.String name) { } /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. * @return value or {@code null} for none */ public java.lang.Boolean getReconciling() { @@ -271,7 +271,7 @@ public java.lang.Boolean getReconciling() { } /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. * @param reconciling reconciling or {@code null} for none */ public WireGroup setReconciling(java.lang.Boolean reconciling) { @@ -280,7 +280,7 @@ public WireGroup setReconciling(java.lang.Boolean reconciling) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -288,7 +288,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public WireGroup setSelfLink(java.lang.String selfLink) { @@ -297,7 +297,7 @@ public WireGroup setSelfLink(java.lang.String selfLink) { } /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * @return value or {@code null} for none */ public WireGroupTopology getTopology() { @@ -305,7 +305,7 @@ public WireGroupTopology getTopology() { } /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * @param topology topology or {@code null} for none */ public WireGroup setTopology(WireGroupTopology topology) { @@ -331,7 +331,7 @@ public WireGroup setWireProperties(WireProperties wireProperties) { } /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * @return value or {@code null} for none */ public java.util.List getWires() { @@ -339,7 +339,7 @@ public java.util.List getWires() { } /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * @param wires wires or {@code null} for none */ public WireGroup setWires(java.util.List wires) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupList.java index eae81afc621..b677fb9cd8a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupList.java @@ -56,7 +56,7 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,7 +80,8 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +144,7 @@ public WireGroupList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -151,7 +152,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @param kind kind or {@code null} for none */ public WireGroupList setKind(java.lang.String kind) { @@ -200,7 +201,8 @@ public WireGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +210,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public WireGroupList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java index bbe19b70c85..9af850296af 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java @@ -30,14 +30,14 @@ public final class WireGroupTopology extends com.google.api.client.json.GenericJson { /** - * Topology details for all endpoints in the wire group. + * Output only. Topology details for all endpoints in the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List endpoints; /** - * Topology details for all endpoints in the wire group. + * Output only. Topology details for all endpoints in the wire group. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -45,7 +45,7 @@ public java.util.List getEndpoints() { } /** - * Topology details for all endpoints in the wire group. + * Output only. Topology details for all endpoints in the wire group. * @param endpoints endpoints or {@code null} for none */ public WireGroupTopology setEndpoints(java.util.List endpoints) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java index c871813ea31..78a82e14a9a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java @@ -30,23 +30,23 @@ public final class WireGroupTopologyEndpoint extends com.google.api.client.json.GenericJson { /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * Output only. The InterconnectLocation.city (metropolitan area designator) that all + * interconnects are located in. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String city; /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String label; /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * Output only. The InterconnectLocation.city (metropolitan area designator) that all + * interconnects are located in. * @return value or {@code null} for none */ public java.lang.String getCity() { @@ -54,8 +54,8 @@ public java.lang.String getCity() { } /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * Output only. The InterconnectLocation.city (metropolitan area designator) that all + * interconnects are located in. * @param city city or {@code null} for none */ public WireGroupTopologyEndpoint setCity(java.lang.String city) { @@ -64,7 +64,7 @@ public WireGroupTopologyEndpoint setCity(java.lang.String city) { } /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * @return value or {@code null} for none */ public java.lang.String getLabel() { @@ -72,7 +72,7 @@ public java.lang.String getLabel() { } /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * @param label label or {@code null} for none */ public WireGroupTopologyEndpoint setLabel(java.lang.String label) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java new file mode 100644 index 00000000000..7332c3016cf --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java @@ -0,0 +1,84 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for WorkloadIdentityConfig. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class WorkloadIdentityConfig extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identity; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean identityCertificateEnabled; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getIdentity() { + return identity; + } + + /** + * @param identity identity or {@code null} for none + */ + public WorkloadIdentityConfig setIdentity(java.lang.String identity) { + this.identity = identity; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIdentityCertificateEnabled() { + return identityCertificateEnabled; + } + + /** + * @param identityCertificateEnabled identityCertificateEnabled or {@code null} for none + */ + public WorkloadIdentityConfig setIdentityCertificateEnabled(java.lang.Boolean identityCertificateEnabled) { + this.identityCertificateEnabled = identityCertificateEnabled; + return this; + } + + @Override + public WorkloadIdentityConfig set(String fieldName, Object value) { + return (WorkloadIdentityConfig) super.set(fieldName, value); + } + + @Override + public WorkloadIdentityConfig clone() { + return (WorkloadIdentityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/XpnHostList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/XpnHostList.java index fdb831631b4..1d968742891 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/XpnHostList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/XpnHostList.java @@ -50,7 +50,8 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC + * hosts. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public XpnHostList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC + * hosts. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC + * hosts. * @param kind kind or {@code null} for none */ public XpnHostList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public XpnHostList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public XpnHostList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Zone.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Zone.java index 0675cfe1818..156d6c6381a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Zone.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Zone.java @@ -68,7 +68,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * Output only. [Output Only] Type of the resource. Always compute#zone for zones. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,7 +103,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -195,7 +195,7 @@ public Zone setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * Output only. [Output Only] Type of the resource. Always compute#zone for zones. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -203,7 +203,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * Output only. [Output Only] Type of the resource. Always compute#zone for zones. * @param kind kind or {@code null} for none */ public Zone setKind(java.lang.String kind) { @@ -280,7 +280,7 @@ public Zone setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -288,7 +288,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Zone setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ZoneList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ZoneList.java index 5291d3e8c13..479ab946be8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ZoneList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ZoneList.java @@ -50,7 +50,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ZoneList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ZoneList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ZoneList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ZoneList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/v1/2.0.0/pom.xml b/clients/google-api-services-compute/v1/2.0.0/pom.xml index a53c12aaf9b..57999743b27 100644 --- a/clients/google-api-services-compute/v1/2.0.0/pom.xml +++ b/clients/google-api-services-compute/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - v1-rev20251110-2.0.0 - Compute Engine API v1-rev20251110-2.0.0 + v1-rev20260306-2.0.0 + Compute Engine API v1-rev20260306-2.0.0 jar 2011