From 6a8f4262999fd983e238604572eac14fd363a027 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:24:42 -0700 Subject: [PATCH] chore: regenerate compute client --- .../beta/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 12493 +++++++++++----- .../compute/model/DhcpOptionsConfig.java | 546 + .../model/DhcpOptionsConfigAssociation.java | 124 + .../compute/model/DhcpOptionsConfigList.java | 437 + .../model/GetHealthOperationMetadata.java | 66 + .../GetHealthOperationMetadataHealthInfo.java | 162 + .../compute/model/GlobalFrontendSettings.java | 222 + .../GlobalFrontendSettingsPatchResponse.java | 63 + .../compute/model/GuestOsFeature.java | 6 +- .../services/compute/model/Interconnect.java | 24 + ...nectLocationCrossSiteInterconnectInfo.java | 54 + .../model/ListVmExtensionStatesResponse.java | 443 + .../compute/model/ManagedInstance.java | 12 +- .../api/services/compute/model/Operation.java | 24 + .../compute/model/RecoverableSnapshot.java | 350 + .../model/RecoverableSnapshotList.java | 434 + .../RecoverableSnapshotOriginalSnapshot.java | 1153 ++ .../model/SnapshotRecycleBinPolicy.java | 114 + .../model/SnapshotRecycleBinPolicyRule.java | 66 + ...napshotRecycleBinPolicyRuleRuleConfig.java | 69 + ...otsGetEffectiveRecycleBinRuleResponse.java | 66 + .../compute/model/VmExtensionState.java | 213 + .../beta/2.0.0/pom.xml | 4 +- .../beta/README.md | 4 +- .../v1/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 231 + .../model/GetHealthOperationMetadata.java | 66 + .../GetHealthOperationMetadataHealthInfo.java | 162 + .../compute/model/GuestOsFeature.java | 6 +- .../services/compute/model/Interconnect.java | 24 + ...nectLocationCrossSiteInterconnectInfo.java | 54 + .../compute/model/ManagedInstance.java | 27 + .../api/services/compute/model/Operation.java | 24 + .../v1/2.0.0/pom.xml | 4 +- .../google-api-services-compute/v1/README.md | 4 +- 36 files changed, 14154 insertions(+), 3605 deletions(-) create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfig.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfigAssociation.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfigList.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionState.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java diff --git a/clients/google-api-services-compute/beta/2.0.0/README.md b/clients/google-api-services-compute/beta/2.0.0/README.md index 27edfeb458c..ce6dad3c432 100644 --- a/clients/google-api-services-compute/beta/2.0.0/README.md +++ b/clients/google-api-services-compute/beta/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 - beta-rev20260807-2.0.0 + beta-rev20260821-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260807-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260821-2.0.0' } ``` diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java index ef59caefd0c..05ab9241f01 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java @@ -15267,57 +15267,307 @@ public Patch set(String parameterName, Object value) { } /** - * An accessor for creating requests from the DiskSettings collection. + * An accessor for creating requests from the DhcpOptionsConfigs collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.DiskSettings.List request = compute.diskSettings().list(parameters ...)}
+   *   {@code Compute.DhcpOptionsConfigs.List request = compute.dhcpOptionsConfigs().list(parameters ...)}
    * 
* * @return the resource collection */ - public DiskSettings diskSettings() { - return new DiskSettings(); + public DhcpOptionsConfigs dhcpOptionsConfigs() { + return new DhcpOptionsConfigs(); } /** - * The "diskSettings" collection of methods. + * The "dhcpOptionsConfigs" collection of methods. */ - public class DiskSettings { + public class DhcpOptionsConfigs { /** - * Get Zonal Disk Settings. + * Deletes the specified DhcpOptionsConfig in the given location * - * Create a request for the method "diskSettings.get". + * Create a request for the method "dhcpOptionsConfigs.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 of this request. + * @param dhcpOptionsConfig Name of the DhcpOptionsConfig resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String dhcpOptionsConfig) throws java.io.IOException { + Delete result = new Delete(project, region, dhcpOptionsConfig); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}"; + + 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 DHCP_OPTIONS_CONFIG_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 DhcpOptionsConfig in the given location + * + * Create a request for the method "dhcpOptionsConfigs.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 of this request. + * @param dhcpOptionsConfig Name of the DhcpOptionsConfig resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String dhcpOptionsConfig) { + 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.dhcpOptionsConfig = com.google.api.client.util.Preconditions.checkNotNull(dhcpOptionsConfig, "Required parameter dhcpOptionsConfig must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DHCP_OPTIONS_CONFIG_PATTERN.matcher(dhcpOptionsConfig).matches(), + "Parameter dhcpOptionsConfig 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 of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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 DhcpOptionsConfig resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String dhcpOptionsConfig; + + /** Name of the DhcpOptionsConfig resource to delete. + */ + public java.lang.String getDhcpOptionsConfig() { + return dhcpOptionsConfig; + } + + /** Name of the DhcpOptionsConfig resource to delete. */ + public Delete setDhcpOptionsConfig(java.lang.String dhcpOptionsConfig) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DHCP_OPTIONS_CONFIG_PATTERN.matcher(dhcpOptionsConfig).matches(), + "Parameter dhcpOptionsConfig must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.dhcpOptionsConfig = dhcpOptionsConfig; + 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 + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + 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 DhcpOptionsConfig resource in the given location. + * + * Create a request for the method "dhcpOptionsConfigs.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 region Name of the region of this request. + * @param dhcpOptionsConfig Name of the DhcpOptionsConfig resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String zone) throws java.io.IOException { - Get result = new Get(project, zone); + public Get get(java.lang.String project, java.lang.String region, java.lang.String dhcpOptionsConfig) throws java.io.IOException { + Get result = new Get(project, region, dhcpOptionsConfig); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/diskSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}"; 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 DHCP_OPTIONS_CONFIG_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Get Zonal Disk Settings. + * Returns the specified DhcpOptionsConfig resource in the given location. * - * Create a request for the method "diskSettings.get". + * Create a request for the method "dhcpOptionsConfigs.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 @@ -15325,23 +15575,30 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param zone Name of the zone for this request. + * @param region Name of the region of this request. + * @param dhcpOptionsConfig Name of the DhcpOptionsConfig resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskSettings.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String dhcpOptionsConfig) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DhcpOptionsConfig.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.dhcpOptionsConfig = com.google.api.client.util.Preconditions.checkNotNull(dhcpOptionsConfig, "Required parameter dhcpOptionsConfig must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DHCP_OPTIONS_CONFIG_PATTERN.matcher(dhcpOptionsConfig).matches(), + "Parameter dhcpOptionsConfig must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -15435,24 +15692,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone for this request. + /** Name of the region of this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** Name of the region of 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 DhcpOptionsConfig resource to return. */ + @com.google.api.client.util.Key + private java.lang.String dhcpOptionsConfig; + + /** Name of the DhcpOptionsConfig resource to return. + */ + public java.lang.String getDhcpOptionsConfig() { + return dhcpOptionsConfig; + } + + /** Name of the DhcpOptionsConfig resource to return. */ + public Get setDhcpOptionsConfig(java.lang.String dhcpOptionsConfig) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DHCP_OPTIONS_CONFIG_PATTERN.matcher(dhcpOptionsConfig).matches(), + "Parameter dhcpOptionsConfig must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.dhcpOptionsConfig = dhcpOptionsConfig; return this; } @@ -15462,123 +15740,125 @@ public Get set(String parameterName, Object value) { } } /** - * Patch Zonal Disk Settings + * Creates a DhcpOptionsConfig in the specified project in the given location using the parameters + * that are included in the request. * - * Create a request for the method "diskSettings.patch". + * Create a request for the method "dhcpOptionsConfigs.insert". * * 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 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 content the {@link com.google.api.services.compute.model.DiskSettings} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.DhcpOptionsConfig} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.DiskSettings content) throws java.io.IOException { - Patch result = new Patch(project, zone, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DhcpOptionsConfig content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/diskSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/dhcpOptionsConfigs"; 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])?"); /** - * Patch Zonal Disk Settings + * Creates a DhcpOptionsConfig in the specified project in the given location using the parameters + * that are included in the request. * - * Create a request for the method "diskSettings.patch". + * Create a request for the method "dhcpOptionsConfigs.insert". * * 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 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 content the {@link com.google.api.services.compute.model.DiskSettings} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.DhcpOptionsConfig} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.DiskSettings content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DhcpOptionsConfig 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])?"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -15592,7 +15872,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch 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 " + @@ -15602,24 +15882,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region of 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 of 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 Patch setZone(java.lang.String zone) { + /** Name of the region of 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; } @@ -15634,7 +15914,7 @@ public Patch setZone(java.lang.String zone) { * 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; @@ -15648,7 +15928,7 @@ public Patch setZone(java.lang.String zone) { 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; @@ -15665,109 +15945,74 @@ 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 Patch setRequestId(java.lang.String requestId) { + public Insert 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; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the DiskTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.DiskTypes.List request = compute.diskTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public DiskTypes diskTypes() { - return new DiskTypes(); - } - - /** - * The "diskTypes" collection of methods. - */ - public class DiskTypes { - /** - * Retrieves an aggregated list of disk types. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists the DhcpOptionsConfigs for a project in the given location. * - * Create a request for the method "diskTypes.aggregatedList". + * Create a request for the method "dhcpOptionsConfigs.list". * * 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 List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param region Name of the region of this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/diskTypes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/dhcpOptionsConfigs"; 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 an aggregated list of disk types. + * Lists the DhcpOptionsConfigs for a project in the given location. * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "diskTypes.aggregatedList". + * Create a request for the method "dhcpOptionsConfigs.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 Project ID for this request. + * @param region Name of the region of this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskTypeAggregatedList.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DhcpOptionsConfigList.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 @@ -15781,63 +16026,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 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); } /** Project ID for this request. */ @@ -15851,7 +16096,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList 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 " + @@ -15861,6 +16106,27 @@ public AggregatedList setProject(java.lang.String project) { return this; } + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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 @@ -15992,45 +16258,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 @@ -16055,7 +16287,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; } @@ -16099,7 +16331,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; } @@ -16122,7 +16354,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; } @@ -16154,176 +16386,147 @@ 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); } } /** - * Returns the specified disk type. + * Patches the specified DhcpOptionsConfig 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 "diskTypes.get". + * Create a request for the method "dhcpOptionsConfigs.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 zone The name of the zone for this request. - * @param diskType Name of the disk type to return. + * @param region Name of the region for this request. + * @param dhcpOptionsConfig Name of the DhcpOptionsConfig resource to patch. + * @param content the {@link com.google.api.services.compute.model.DhcpOptionsConfig} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String diskType) throws java.io.IOException { - Get result = new Get(project, zone, diskType); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String dhcpOptionsConfig, com.google.api.services.compute.model.DhcpOptionsConfig content) throws java.io.IOException { + Patch result = new Patch(project, region, dhcpOptionsConfig, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/diskTypes/{diskType}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}"; 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 DISK_TYPE_PATTERN = + private final java.util.regex.Pattern DHCP_OPTIONS_CONFIG_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 disk type. + * Patches the specified DhcpOptionsConfig 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 "diskTypes.get". + * Create a request for the method "dhcpOptionsConfigs.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 zone The name of the zone for this request. - * @param diskType Name of the disk type to return. + * @param region Name of the region for this request. + * @param dhcpOptionsConfig Name of the DhcpOptionsConfig resource to patch. + * @param content the {@link com.google.api.services.compute.model.DhcpOptionsConfig} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String diskType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskType.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String dhcpOptionsConfig, com.google.api.services.compute.model.DhcpOptionsConfig 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.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.diskType = com.google.api.client.util.Preconditions.checkNotNull(diskType, "Required parameter diskType must be specified."); + this.dhcpOptionsConfig = com.google.api.client.util.Preconditions.checkNotNull(dhcpOptionsConfig, "Required parameter dhcpOptionsConfig 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 " + + com.google.api.client.util.Preconditions.checkArgument(DHCP_OPTIONS_CONFIG_PATTERN.matcher(dhcpOptionsConfig).matches(), + "Parameter dhcpOptionsConfig 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. */ @@ -16337,7 +16540,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 " + @@ -16347,179 +16550,248 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** 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. + /** 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 Get setZone(java.lang.String zone) { + /** Name of the region for this request. */ + public Patch 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 disk type to return. */ + /** Name of the DhcpOptionsConfig resource to patch. */ @com.google.api.client.util.Key - private java.lang.String diskType; + private java.lang.String dhcpOptionsConfig; - /** Name of the disk type to return. + /** Name of the DhcpOptionsConfig resource to patch. */ - public java.lang.String getDiskType() { - return diskType; + public java.lang.String getDhcpOptionsConfig() { + return dhcpOptionsConfig; } - /** Name of the disk type to return. */ - public Get setDiskType(java.lang.String diskType) { + /** Name of the DhcpOptionsConfig resource to patch. */ + public Patch setDhcpOptionsConfig(java.lang.String dhcpOptionsConfig) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), - "Parameter diskType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(DHCP_OPTIONS_CONFIG_PATTERN.matcher(dhcpOptionsConfig).matches(), + "Parameter dhcpOptionsConfig must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.diskType = diskType; + this.dhcpOptionsConfig = dhcpOptionsConfig; + 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 + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). 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; } @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); } } /** - * Retrieves a list of disk types available to the specified project. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "diskTypes.list". + * Create a request for the method "dhcpOptionsConfigs.testIamPermissions". * * 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 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 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 List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + 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 List extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/diskTypes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/dhcpOptionsConfigs/{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 = + 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}"); + /** - * Retrieves a list of disk types available to the specified project. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "diskTypes.list". + * Create a request for the method "dhcpOptionsConfigs.testIamPermissions". * * 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 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 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 List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskTypeList.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.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 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 TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -16533,7 +16805,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List 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 " + @@ -16543,343 +16815,273 @@ public List 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 List setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public TestIamPermissions 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; } - /** - * 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 or id of the resource for 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. + private java.lang.String resource; - 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 `:`. + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** 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; + } - 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:* ``` + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - 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) ``` + /** + * An accessor for creating requests from the DiskSettings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.DiskSettings.List request = compute.diskSettings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public DiskSettings diskSettings() { + return new DiskSettings(); + } - 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: + /** + * The "diskSettings" collection of methods. + */ + public class DiskSettings { - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + /** + * Get Zonal Disk Settings. + * + * Create a request for the method "diskSettings.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. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone) throws java.io.IOException { + Get result = new Get(project, zone); + initialize(result); + return result; + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + public class Get extends ComputeRequest { - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private static final String REST_PATH = "projects/{project}/zones/{zone}/diskSettings"; - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + 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])?"); /** - * 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")` + * Get Zonal Disk Settings. * - * 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 "diskSettings.get". * - * 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 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.

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @since 1.13 */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected Get(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskSettings.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])?"); + } } - /** - * 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** 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 com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** - * 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 Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - 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. + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } - /** - * 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; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + @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 pageToken; + private java.lang.String 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. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return 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 List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** 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; } - /** - * 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 zone 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 zone; - 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 zone for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getZone() { + return zone; } - /** - * 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 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; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Disks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Disks.List request = compute.disks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Disks disks() { - return new Disks(); - } - - /** - * The "disks" collection of methods. - */ - public class Disks { - /** - * Adds existing resource policies to a disk. You can only add one policy which will be applied to - * this disk for scheduling snapshot creation. + * Patch Zonal Disk Settings * - * Create a request for the method "disks.addResourcePolicies". + * Create a request for the method "diskSettings.patch". * * 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 Patch#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 disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.DisksAddResourcePoliciesRequest} + * @param content the {@link com.google.api.services.compute.model.DiskSettings} * @return the request */ - public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksAddResourcePoliciesRequest content) throws java.io.IOException { - AddResourcePolicies result = new AddResourcePolicies(project, zone, disk, content); + public Patch patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.DiskSettings content) throws java.io.IOException { + Patch result = new Patch(project, zone, content); initialize(result); return result; } - public class AddResourcePolicies extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/diskSettings"; 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])?))"); @@ -16887,29 +17089,23 @@ 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 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 zone The name of the zone for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.DisksAddResourcePoliciesRequest} + * @param content the {@link com.google.api.services.compute.model.DiskSettings} * @since 1.13 */ - protected AddResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksAddResourcePoliciesRequest 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 zone, com.google.api.services.compute.model.DiskSettings 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(), @@ -16922,72 +17118,66 @@ protected AddResourcePolicies(java.lang.String project, java.lang.String zone, j "Parameter zone 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 AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -17001,7 +17191,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddResourcePolicies 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 " + @@ -17022,7 +17212,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public AddResourcePolicies setZone(java.lang.String zone) { + public Patch 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 " + @@ -17032,27 +17222,6 @@ public AddResourcePolicies setZone(java.lang.String zone) { 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 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 " + - "[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 @@ -17097,23 +17266,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 AddResourcePolicies 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; + } + @Override - public AddResourcePolicies set(String parameterName, Object value) { - return (AddResourcePolicies) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the DiskTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.DiskTypes.List request = compute.diskTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public DiskTypes diskTypes() { + return new DiskTypes(); + } + + /** + * The "diskTypes" collection of methods. + */ + public class DiskTypes { + /** - * Retrieves an aggregated list of persistent disks. + * Retrieves an aggregated list of disk types. * * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "disks.aggregatedList". + * Create a request for the method "diskTypes.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. @@ -17127,20 +17335,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/disks"; + private static final String REST_PATH = "projects/{project}/aggregated/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])?))"); /** - * Retrieves an aggregated list of persistent disks. + * Retrieves an aggregated list of disk types. * * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "disks.aggregatedList". + * Create a request for the method "diskTypes.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. @@ -17152,7 +17360,7 @@ public class AggregatedList extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/bulkInsert"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); @@ -17607,24 +17815,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 zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @param diskType Name of the disk type to return. * @since 1.13 */ - protected BulkInsert(java.lang.String project, java.lang.String zone, 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 zone, 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(), @@ -17637,66 +17847,82 @@ protected BulkInsert(java.lang.String project, java.lang.String zone, com.google "Parameter zone 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 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. */ @@ -17710,7 +17936,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 " + @@ -17731,7 +17957,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public BulkInsert setZone(java.lang.String zone) { + 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 " + @@ -17741,83 +17967,53 @@ public BulkInsert setZone(java.lang.String 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 of the disk type 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 diskType; - 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 disk type to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getDiskType() { + return diskType; } - /** - * An optional request ID to identify requests. Specify a unique 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 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 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); } } /** - * Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources - * documentation. + * Retrieves a list of disk types available to the specified project. * - * Create a request for the method "disks.bulkSetLabels". + * Create a request for the method "diskTypes.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link BulkSetLabels#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 content the {@link com.google.api.services.compute.model.BulkZoneSetLabelsRequest} * @return the request */ - public BulkSetLabels bulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkZoneSetLabelsRequest content) throws java.io.IOException { - BulkSetLabels result = new BulkSetLabels(project, zone, content); + 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 BulkSetLabels extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/bulkSetLabels"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); @@ -17825,28 +18021,22 @@ public class BulkSetLabels extends ComputeRequest - * {@link BulkSetLabels#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 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 content the {@link com.google.api.services.compute.model.BulkZoneSetLabelsRequest} * @since 1.13 */ - protected BulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkZoneSetLabelsRequest 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 zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskTypeList.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(), @@ -17862,63 +18052,73 @@ protected BulkSetLabels(java.lang.String project, java.lang.String zone, com.goo } @Override - public BulkSetLabels set$Xgafv(java.lang.String $Xgafv) { - return (BulkSetLabels) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public BulkSetLabels setAccessToken(java.lang.String accessToken) { - return (BulkSetLabels) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public BulkSetLabels setAlt(java.lang.String alt) { - return (BulkSetLabels) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public BulkSetLabels setCallback(java.lang.String callback) { - return (BulkSetLabels) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public BulkSetLabels setFields(java.lang.String fields) { - return (BulkSetLabels) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public BulkSetLabels setKey(java.lang.String key) { - return (BulkSetLabels) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public BulkSetLabels setOauthToken(java.lang.String oauthToken) { - return (BulkSetLabels) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public BulkSetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkSetLabels) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public BulkSetLabels setQuotaUser(java.lang.String quotaUser) { - return (BulkSetLabels) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public BulkSetLabels setUploadType(java.lang.String uploadType) { - return (BulkSetLabels) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public BulkSetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkSetLabels) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public BulkSetLabels setUserIp(java.lang.String userIp) { - return (BulkSetLabels) 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. */ @@ -17932,7 +18132,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public BulkSetLabels 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 " + @@ -17953,7 +18153,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public BulkSetLabels setZone(java.lang.String zone) { + 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 " + @@ -17964,135 +18164,350 @@ public BulkSetLabels setZone(java.lang.String zone) { } /** - * An optional request ID to identify requests. Specify a unique 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). + 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 getRequestId() { - return requestId; + public java.lang.String getFilter() { + return 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). + * 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 BulkSetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** Name or id of the resource for this request. */ + /** + * 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.String resource; + private java.lang.Long maxResults; - /** Name or id of the resource for this request. + /** 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.String getResource() { - return resource; + public java.lang.Long getMaxResults() { + return maxResults; } - /** Name or id of the resource for this request. */ - public BulkSetLabels 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 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 BulkSetLabels set(String parameterName, Object value) { - return (BulkSetLabels) 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 request for the method "disks.createSnapshot". - * - * 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. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param disk Name of the persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.model.Snapshot} - * @return the request - */ - public CreateSnapshot createSnapshot(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { - CreateSnapshot result = new CreateSnapshot(project, zone, disk, content); - initialize(result); - return result; - } - - public class CreateSnapshot extends ComputeRequest { + /** + * 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; - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/createSnapshot"; + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - 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])?))"); + 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. - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } - private final java.util.regex.Pattern DISK_PATTERN = + /** + * 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 Disks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Disks.List request = compute.disks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Disks disks() { + return new Disks(); + } + + /** + * The "disks" collection of methods. + */ + public class Disks { + + /** + * Adds existing resource policies to a disk. You can only add one policy which will be applied to + * this disk for scheduling snapshot creation. + * + * Create a request for the method "disks.addResourcePolicies". + * + * 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. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.DisksAddResourcePoliciesRequest} + * @return the request + */ + public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksAddResourcePoliciesRequest content) throws java.io.IOException { + AddResourcePolicies result = new AddResourcePolicies(project, zone, disk, content); + initialize(result); + return result; + } + + public class AddResourcePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); + + 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 DISK_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 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. + * Adds existing resource policies to a disk. You can only add one policy which will be applied to + * this disk for scheduling snapshot creation. * - * Create a request for the method "disks.createSnapshot". + * Create a request for the method "disks.addResourcePolicies". * * This request holds the parameters needed by the the compute server. After setting any optional - * 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.

+ * 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 zone The name of the zone for this request. - * @param disk Name of the persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.DisksAddResourcePoliciesRequest} * @since 1.13 */ - protected CreateSnapshot(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) { + protected AddResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksAddResourcePoliciesRequest 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()) { @@ -18115,63 +18530,63 @@ protected CreateSnapshot(java.lang.String project, java.lang.String zone, java.l } @Override - public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { - return (CreateSnapshot) super.set$Xgafv($Xgafv); + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public CreateSnapshot setAccessToken(java.lang.String accessToken) { - return (CreateSnapshot) super.setAccessToken(accessToken); + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); } @Override - public CreateSnapshot setAlt(java.lang.String alt) { - return (CreateSnapshot) super.setAlt(alt); + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); } @Override - public CreateSnapshot setCallback(java.lang.String callback) { - return (CreateSnapshot) super.setCallback(callback); + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); } @Override - public CreateSnapshot setFields(java.lang.String fields) { - return (CreateSnapshot) super.setFields(fields); + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); } @Override - public CreateSnapshot setKey(java.lang.String key) { - return (CreateSnapshot) super.setKey(key); + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); } @Override - public CreateSnapshot setOauthToken(java.lang.String oauthToken) { - return (CreateSnapshot) super.setOauthToken(oauthToken); + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); } @Override - public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateSnapshot) super.setPrettyPrint(prettyPrint); + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { - return (CreateSnapshot) super.setQuotaUser(quotaUser); + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public CreateSnapshot setUploadType(java.lang.String uploadType) { - return (CreateSnapshot) super.setUploadType(uploadType); + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); } @Override - public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public CreateSnapshot setUserIp(java.lang.String userIp) { - return (CreateSnapshot) super.setUserIp(userIp); + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -18185,7 +18600,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateSnapshot 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 " + @@ -18206,7 +18621,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public CreateSnapshot setZone(java.lang.String zone) { + public AddResourcePolicies 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 " + @@ -18216,18 +18631,18 @@ public CreateSnapshot setZone(java.lang.String zone) { return this; } - /** Name of the persistent disk to snapshot. */ + /** The disk name for this request. */ @com.google.api.client.util.Key private java.lang.String disk; - /** Name of the persistent disk to snapshot. + /** The disk name for this request. */ public java.lang.String getDisk() { return disk; } - /** Name of the persistent disk to snapshot. */ - public CreateSnapshot setDisk(java.lang.String disk) { + /** The disk name for this request. */ + 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 " + @@ -18237,31 +18652,6 @@ public CreateSnapshot setDisk(java.lang.String disk) { return this; } - /** - * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to - * prepare for the snapshot process. - */ - @com.google.api.client.util.Key - private java.lang.Boolean guestFlush; - - /**[ Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare - [ for the snapshot process. - [ - - */ - public java.lang.Boolean getGuestFlush() { - return guestFlush; - } - - /** - * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to - * prepare for the snapshot process. - */ - public CreateSnapshot setGuestFlush(java.lang.Boolean guestFlush) { - this.guestFlush = guestFlush; - 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 @@ -18306,147 +18696,138 @@ 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 AddResourcePolicies 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 AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); } } /** - * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is - * irreversible. However, deleting a disk does not delete any snapshots previously made from the - * disk. You must separatelydelete snapshots. + * Retrieves an aggregated list of persistent disks. * - * Create a request for the method "disks.delete". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "disks.aggregatedList". * * 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 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. - * @param disk Name of the persistent disk to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { - Delete result = new Delete(project, zone, disk); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/aggregated/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])?))"); - 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 DISK_PATTERN = - java.util.regex.Pattern.compile("\\S{1,66}"); - /** - * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is - * irreversible. However, deleting a disk does not delete any snapshots previously made from the - * disk. You must separatelydelete snapshots. + * Retrieves an aggregated list of persistent disks. * - * Create a request for the method "disks.delete". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "disks.aggregatedList". * * 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 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. - * @param disk Name of the persistent disk to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String disk) { - super(Compute.this, "DELETE", REST_PATH, null, 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.DiskAggregatedList.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.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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -18460,7 +18841,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete 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 " + @@ -18470,124 +18851,354 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the zone 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 zone; + private java.lang.String filter; - /** The name of the zone 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 getZone() { - return zone; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * 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 persistent disk to delete. */ + /** + * 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 disk; + private java.lang.Boolean includeAllScopes; - /** Name of the persistent disk to delete. + /** 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 getDisk() { - return disk; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Name of the 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; + /** + * 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 Delete 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Returns the specified persistent disk. + * Bulk create a set of disks. * - * Create a request for the method "disks.get". + * Create a request for the method "disks.bulkInsert". * * 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 BulkInsert#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 disk Name of the persistent disk to return. + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { - Get result = new Get(project, zone, disk); + public BulkInsert bulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertDiskResource content) throws java.io.IOException { + BulkInsert result = new BulkInsert(project, zone, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class BulkInsert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); @@ -18595,26 +19206,24 @@ 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 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 Project ID for this request. * @param zone The name of the zone for this request. - * @param disk Name of the persistent disk to return. + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String disk) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Disk.class); + protected BulkInsert(java.lang.String project, java.lang.String zone, 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()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -18627,82 +19236,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.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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -18716,7 +19309,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -18737,7 +19330,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + public BulkInsert 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 " + @@ -18747,54 +19340,83 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the persistent disk 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 disk; + private java.lang.String requestId; - /** Name of the persistent disk 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 getDisk() { - return disk; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the 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; + /** + * An optional request ID to identify requests. Specify a unique 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; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) 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 many disks at once. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "disks.getIamPolicy". + * Create a request for the method "disks.bulkSetLabels". * * 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 BulkSetLabels#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.BulkZoneSetLabelsRequest} * @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 BulkSetLabels bulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkZoneSetLabelsRequest content) throws java.io.IOException { + BulkSetLabels result = new BulkSetLabels(project, zone, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class BulkSetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/bulkSetLabels"; 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])?))"); @@ -18806,24 +19428,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 BulkSetLabels#execute()} method to invoke the remote operation.

+ * {@link BulkSetLabels#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 resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.BulkZoneSetLabelsRequest} * @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 BulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkZoneSetLabelsRequest 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(), @@ -18836,82 +19458,66 @@ protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lan "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 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 BulkSetLabels set$Xgafv(java.lang.String $Xgafv) { + return (BulkSetLabels) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public BulkSetLabels setAccessToken(java.lang.String accessToken) { + return (BulkSetLabels) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public BulkSetLabels setAlt(java.lang.String alt) { + return (BulkSetLabels) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public BulkSetLabels setCallback(java.lang.String callback) { + return (BulkSetLabels) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public BulkSetLabels setFields(java.lang.String fields) { + return (BulkSetLabels) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public BulkSetLabels setKey(java.lang.String key) { + return (BulkSetLabels) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public BulkSetLabels setOauthToken(java.lang.String oauthToken) { + return (BulkSetLabels) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public BulkSetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkSetLabels) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public BulkSetLabels setQuotaUser(java.lang.String quotaUser) { + return (BulkSetLabels) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public BulkSetLabels setUploadType(java.lang.String uploadType) { + return (BulkSetLabels) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public BulkSetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkSetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public BulkSetLabels setUserIp(java.lang.String userIp) { + return (BulkSetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -18925,7 +19531,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public BulkSetLabels 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 " + @@ -18946,7 +19552,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + public BulkSetLabels 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 " + @@ -18956,34 +19562,1027 @@ public GetIamPolicy setZone(java.lang.String 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. + /** + * An optional request ID to identify requests. Specify a unique 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; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Requested IAM Policy version. + 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.Integer getOptionsRequestedPolicyVersion() { + 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 BulkSetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + 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 BulkSetLabels 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 BulkSetLabels set(String parameterName, Object value) { + return (BulkSetLabels) 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 request for the method "disks.createSnapshot". + * + * 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. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk Name of the persistent disk to snapshot. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @return the request + */ + public CreateSnapshot createSnapshot(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { + CreateSnapshot result = new CreateSnapshot(project, zone, disk, content); + initialize(result); + return result; + } + + public class CreateSnapshot extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); + + 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 DISK_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 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 "disks.createSnapshot". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * 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 zone The name of the zone for this request. + * @param disk Name of the persistent disk to snapshot. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @since 1.13 + */ + protected CreateSnapshot(java.lang.String project, java.lang.String zone, 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(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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.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); + } + + @Override + public CreateSnapshot setAccessToken(java.lang.String accessToken) { + return (CreateSnapshot) super.setAccessToken(accessToken); + } + + @Override + public CreateSnapshot setAlt(java.lang.String alt) { + return (CreateSnapshot) super.setAlt(alt); + } + + @Override + public CreateSnapshot setCallback(java.lang.String callback) { + return (CreateSnapshot) super.setCallback(callback); + } + + @Override + public CreateSnapshot setFields(java.lang.String fields) { + return (CreateSnapshot) super.setFields(fields); + } + + @Override + public CreateSnapshot setKey(java.lang.String key) { + return (CreateSnapshot) super.setKey(key); + } + + @Override + public CreateSnapshot setOauthToken(java.lang.String oauthToken) { + return (CreateSnapshot) super.setOauthToken(oauthToken); + } + + @Override + public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateSnapshot) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { + return (CreateSnapshot) super.setQuotaUser(quotaUser); + } + + @Override + public CreateSnapshot setUploadType(java.lang.String uploadType) { + return (CreateSnapshot) super.setUploadType(uploadType); + } + + @Override + public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CreateSnapshot setUserIp(java.lang.String userIp) { + return (CreateSnapshot) 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 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 " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 CreateSnapshot 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 persistent disk to snapshot. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the persistent disk to snapshot. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the 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; + } + + /** + * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to + * prepare for the snapshot process. + */ + @com.google.api.client.util.Key + private java.lang.Boolean guestFlush; + + /**[ Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare + [ for the snapshot process. + [ + + */ + public java.lang.Boolean getGuestFlush() { + return guestFlush; + } + + /** + * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to + * prepare for the snapshot process. + */ + public CreateSnapshot setGuestFlush(java.lang.Boolean guestFlush) { + this.guestFlush = guestFlush; + 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 CreateSnapshot set(String parameterName, Object value) { + return (CreateSnapshot) super.set(parameterName, value); + } + } + /** + * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is + * irreversible. However, deleting a disk does not delete any snapshots previously made from the + * disk. You must separatelydelete snapshots. + * + * Create a request for the method "disks.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 disk Name of the persistent disk to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { + Delete result = new Delete(project, zone, disk); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); + + 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 DISK_PATTERN = + java.util.regex.Pattern.compile("\\S{1,66}"); + + /** + * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is + * irreversible. However, deleting a disk does not delete any snapshots previously made from the + * disk. You must separatelydelete snapshots. + * + * Create a request for the method "disks.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 disk Name of the persistent disk to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, 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(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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.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); + } + + @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 persistent disk to delete. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the persistent disk to delete. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the 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. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original 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 persistent disk. + * + * Create a request for the method "disks.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 The name of the zone for this request. + * @param disk Name of the persistent disk to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { + Get result = new Get(project, zone, disk); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); + + 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 DISK_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 persistent disk. + * + * Create a request for the method "disks.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 zone The name of the zone for this request. + * @param disk Name of the persistent disk to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, 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(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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.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 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 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 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; + } + + /** Name of the persistent disk to return. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the persistent disk to return. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the 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; + 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 "disks.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; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); + + 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}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "disks.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 zone The name of the zone 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 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}"); + } + } + + @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; + } + + /** 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 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; + } + + /** 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; } @@ -37102,6 +38701,310 @@ public TestIamPermissions set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the GlobalFrontendSettings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalFrontendSettings.List request = compute.globalFrontendSettings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalFrontendSettings globalFrontendSettings() { + return new GlobalFrontendSettings(); + } + + /** + * The "globalFrontendSettings" collection of methods. + */ + public class GlobalFrontendSettings { + + /** + * Gets the Global Frontend Billing Bundle Settings for a project. + * + * Create a request for the method "globalFrontendSettings.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 + * @return the request + */ + public Get get(java.lang.String project) throws java.io.IOException { + Get result = new Get(project); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/globalFrontendSettings"; + + /** + * Gets the Global Frontend Billing Bundle Settings for a project. + * + * Create a request for the method "globalFrontendSettings.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 + * @since 1.13 + */ + protected Get(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalFrontendSettings.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project 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); + } + + @com.google.api.client.util.Key + private java.lang.String project; + + /** + + */ + public java.lang.String getProject() { + return project; + } + + public Get setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Updates the Global Frontend Billing Bundle Settings for a project. + * + * Create a request for the method "globalFrontendSettings.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 + * @param content the {@link com.google.api.services.compute.model.GlobalFrontendSettings} + * @return the request + */ + public Patch patch(java.lang.String project, com.google.api.services.compute.model.GlobalFrontendSettings content) throws java.io.IOException { + Patch result = new Patch(project, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/globalFrontendSettings"; + + /** + * Updates the Global Frontend Billing Bundle Settings for a project. + * + * Create a request for the method "globalFrontendSettings.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 + * @param content the {@link com.google.api.services.compute.model.GlobalFrontendSettings} + * @since 1.13 + */ + protected Patch(java.lang.String project, com.google.api.services.compute.model.GlobalFrontendSettings content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.GlobalFrontendSettingsPatchResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project 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); + } + + @com.google.api.client.util.Key + private java.lang.String project; + + /** + + */ + public java.lang.String getProject() { + return project; + } + + public Patch setProject(java.lang.String project) { + this.project = project; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + + */ + public java.lang.String getRequestId() { + return requestId; + } + + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** e.g., "type" */ + @com.google.api.client.util.Key + private String updateMask; + + /** e.g., "type" + */ + public String getUpdateMask() { + return updateMask; + } + + /** e.g., "type" */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the GlobalNetworkEndpointGroups collection. * @@ -73328,6 +75231,246 @@ public GetShieldedVmIdentity set(String parameterName, Object value) { return (GetShieldedVmIdentity) super.set(parameterName, value); } } + /** + * Retrieves details of a specific VM extension state. This is a read-only API. + * + * Create a request for the method "instances.getVmExtensionState". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVmExtensionState#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param instance Name or id of the instance resource. + * @param extensionName The name of the extension to get the state for. + * @return the request + */ + public GetVmExtensionState getVmExtensionState(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String extensionName) throws java.io.IOException { + GetVmExtensionState result = new GetVmExtensionState(project, zone, instance, extensionName); + initialize(result); + return result; + } + + public class GetVmExtensionState extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates/{extensionName}"; + + 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}"); + + private final java.util.regex.Pattern EXTENSION_NAME_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves details of a specific VM extension state. This is a read-only API. + * + * Create a request for the method "instances.getVmExtensionState". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVmExtensionState#execute()} method to invoke the remote + * operation.

{@link GetVmExtensionState#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 instance Name or id of the instance resource. + * @param extensionName The name of the extension to get the state for. + * @since 1.13 + */ + protected GetVmExtensionState(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionState.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}"); + } + this.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), + "Parameter extensionName 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 GetVmExtensionState set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtensionState) super.set$Xgafv($Xgafv); + } + + @Override + public GetVmExtensionState setAccessToken(java.lang.String accessToken) { + return (GetVmExtensionState) super.setAccessToken(accessToken); + } + + @Override + public GetVmExtensionState setAlt(java.lang.String alt) { + return (GetVmExtensionState) super.setAlt(alt); + } + + @Override + public GetVmExtensionState setCallback(java.lang.String callback) { + return (GetVmExtensionState) super.setCallback(callback); + } + + @Override + public GetVmExtensionState setFields(java.lang.String fields) { + return (GetVmExtensionState) super.setFields(fields); + } + + @Override + public GetVmExtensionState setKey(java.lang.String key) { + return (GetVmExtensionState) super.setKey(key); + } + + @Override + public GetVmExtensionState setOauthToken(java.lang.String oauthToken) { + return (GetVmExtensionState) super.setOauthToken(oauthToken); + } + + @Override + public GetVmExtensionState setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtensionState) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVmExtensionState setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtensionState) super.setQuotaUser(quotaUser); + } + + @Override + public GetVmExtensionState setUploadType(java.lang.String uploadType) { + return (GetVmExtensionState) super.setUploadType(uploadType); + } + + @Override + public GetVmExtensionState setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtensionState) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVmExtensionState setUserIp(java.lang.String userIp) { + return (GetVmExtensionState) 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 GetVmExtensionState 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 GetVmExtensionState 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 instance resource. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name or id of the instance resource. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name or id of the instance resource. */ + public GetVmExtensionState 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; + } + + /** The name of the extension to get the state for. */ + @com.google.api.client.util.Key + private java.lang.String extensionName; + + /** The name of the extension to get the state for. + */ + public java.lang.String getExtensionName() { + return extensionName; + } + + /** The name of the extension to get the state for. */ + public GetVmExtensionState setExtensionName(java.lang.String extensionName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), + "Parameter extensionName must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.extensionName = extensionName; + return this; + } + + @Override + public GetVmExtensionState set(String parameterName, Object value) { + return (GetVmExtensionState) super.set(parameterName, value); + } + } /** * Creates an instance resource in the specified project using the data included in the request. * @@ -74568,29 +76711,28 @@ public ListReferrers set(String parameterName, Object value) { } } /** - * Patches partner metadata of the specified instance. + * Lists all VM extensions states for a specific instance. This is a read-only API. * - * Create a request for the method "instances.patchPartnerMetadata". + * Create a request for the method "instances.listVmExtensionStates". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchPartnerMetadata#execute()} method to invoke the remote + * parameters, call the {@link ListVmExtensionStates#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} + * @param zone Required. Name of the zone for this request. + * @param instance Name of the target instance scoping this request. * @return the request */ - 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); + public ListVmExtensionStates listVmExtensionStates(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + ListVmExtensionStates result = new ListVmExtensionStates(project, zone, instance); initialize(result); return result; } - public class PatchPartnerMetadata extends ComputeRequest { + public class ListVmExtensionStates extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates"; 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])?))"); @@ -74602,24 +76744,23 @@ public class PatchPartnerMetadata extends ComputeRequest {@link PatchPartnerMetadata#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link ListVmExtensionStates#execute()} method to invoke the remote + * operation.

{@link ListVmExtensionStates#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 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} + * @param zone Required. Name of the zone for this request. + * @param instance Name of the target instance scoping this request. * @since 1.13 */ - 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); + protected ListVmExtensionStates(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.ListVmExtensionStatesResponse.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(), @@ -74641,63 +76782,73 @@ protected PatchPartnerMetadata(java.lang.String project, java.lang.String zone, } @Override - public PatchPartnerMetadata set$Xgafv(java.lang.String $Xgafv) { - return (PatchPartnerMetadata) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchPartnerMetadata setAccessToken(java.lang.String accessToken) { - return (PatchPartnerMetadata) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchPartnerMetadata setAlt(java.lang.String alt) { - return (PatchPartnerMetadata) super.setAlt(alt); + public ListVmExtensionStates set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensionStates) super.set$Xgafv($Xgafv); } @Override - public PatchPartnerMetadata setCallback(java.lang.String callback) { - return (PatchPartnerMetadata) super.setCallback(callback); + public ListVmExtensionStates setAccessToken(java.lang.String accessToken) { + return (ListVmExtensionStates) super.setAccessToken(accessToken); } @Override - public PatchPartnerMetadata setFields(java.lang.String fields) { - return (PatchPartnerMetadata) super.setFields(fields); + public ListVmExtensionStates setAlt(java.lang.String alt) { + return (ListVmExtensionStates) super.setAlt(alt); } @Override - public PatchPartnerMetadata setKey(java.lang.String key) { - return (PatchPartnerMetadata) super.setKey(key); + public ListVmExtensionStates setCallback(java.lang.String callback) { + return (ListVmExtensionStates) super.setCallback(callback); } @Override - public PatchPartnerMetadata setOauthToken(java.lang.String oauthToken) { - return (PatchPartnerMetadata) super.setOauthToken(oauthToken); + public ListVmExtensionStates setFields(java.lang.String fields) { + return (ListVmExtensionStates) super.setFields(fields); } @Override - public PatchPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPartnerMetadata) super.setPrettyPrint(prettyPrint); + public ListVmExtensionStates setKey(java.lang.String key) { + return (ListVmExtensionStates) super.setKey(key); } @Override - public PatchPartnerMetadata setQuotaUser(java.lang.String quotaUser) { - return (PatchPartnerMetadata) super.setQuotaUser(quotaUser); + public ListVmExtensionStates setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensionStates) super.setOauthToken(oauthToken); } @Override - public PatchPartnerMetadata setUploadType(java.lang.String uploadType) { - return (PatchPartnerMetadata) super.setUploadType(uploadType); + public ListVmExtensionStates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensionStates) super.setPrettyPrint(prettyPrint); } @Override - public PatchPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPartnerMetadata) super.setUploadProtocol(uploadProtocol); + public ListVmExtensionStates setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensionStates) super.setQuotaUser(quotaUser); } @Override - public PatchPartnerMetadata setUserIp(java.lang.String userIp) { - return (PatchPartnerMetadata) super.setUserIp(userIp); + public ListVmExtensionStates setUploadType(java.lang.String uploadType) { + return (ListVmExtensionStates) super.setUploadType(uploadType); + } + + @Override + public ListVmExtensionStates setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensionStates) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListVmExtensionStates setUserIp(java.lang.String userIp) { + return (ListVmExtensionStates) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -74711,7 +76862,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPartnerMetadata setProject(java.lang.String project) { + public ListVmExtensionStates 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 " + @@ -74721,18 +76872,18 @@ public PatchPartnerMetadata setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Required. 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. + /** Required. Name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request. */ - public PatchPartnerMetadata setZone(java.lang.String zone) { + /** Required. Name of the zone for this request. */ + public ListVmExtensionStates 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 " + @@ -74742,18 +76893,18 @@ public PatchPartnerMetadata setZone(java.lang.String zone) { return this; } - /** Name of the instance scoping this request. */ + /** Name of the target instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance scoping this request. + /** Name of the target instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance scoping this request. */ - public PatchPartnerMetadata setInstance(java.lang.String instance) { + /** Name of the target instance scoping this request. */ + public ListVmExtensionStates 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 " + @@ -74764,81 +76915,298 @@ public PatchPartnerMetadata setInstance(java.lang.String 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. + * 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). + 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 getRequestId() { - return requestId; + public java.lang.String getFilter() { + return 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). + * 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 PatchPartnerMetadata setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListVmExtensionStates 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 ListVmExtensionStates 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 ListVmExtensionStates 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 ListVmExtensionStates 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 ListVmExtensionStates setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public PatchPartnerMetadata set(String parameterName, Object value) { - return (PatchPartnerMetadata) super.set(parameterName, value); + public ListVmExtensionStates set(String parameterName, Object value) { + return (ListVmExtensionStates) super.set(parameterName, 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])?))"); @@ -74850,23 +77218,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(), @@ -74888,63 +77257,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. */ @@ -74958,7 +77327,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 " + @@ -74979,7 +77348,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 " + @@ -75000,7 +77369,7 @@ 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 " + @@ -75054,40 +77423,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 PerformMaintenance setRequestId(java.lang.String requestId) { + public PatchPartnerMetadata setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + public PatchPartnerMetadata set(String parameterName, Object value) { + return (PatchPartnerMetadata) super.set(parameterName, value); } } /** - * Removes resource policies from an instance. + * Perform a manual maintenance on the instance. * - * Create a request for the method "instances.removeResourcePolicies". + * 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 RemoveResourcePolicies#execute()} method to invoke the remote - * operation. + * 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 The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} + * @param instance Name of the instance scoping this request. * @return the request */ - public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest content) throws java.io.IOException { - RemoveResourcePolicies result = new RemoveResourcePolicies(project, zone, instance, content); + 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 RemoveResourcePolicies extends ComputeRequest { + public class PerformMaintenance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies"; + 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])?))"); @@ -75099,24 +77466,23 @@ 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 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 The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} + * @param instance Name of the instance scoping this request. * @since 1.13 */ - protected RemoveResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -75138,63 +77504,63 @@ protected RemoveResourcePolicies(java.lang.String project, java.lang.String zone } @Override - public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { - return (RemoveResourcePolicies) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public RemoveResourcePolicies setAlt(java.lang.String alt) { - return (RemoveResourcePolicies) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public RemoveResourcePolicies setCallback(java.lang.String callback) { - return (RemoveResourcePolicies) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public RemoveResourcePolicies setFields(java.lang.String fields) { - return (RemoveResourcePolicies) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public RemoveResourcePolicies setKey(java.lang.String key) { - return (RemoveResourcePolicies) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (RemoveResourcePolicies) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { - return (RemoveResourcePolicies) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveResourcePolicies setUserIp(java.lang.String userIp) { - return (RemoveResourcePolicies) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -75208,7 +77574,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveResourcePolicies setProject(java.lang.String project) { + 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 " + @@ -75229,7 +77595,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public RemoveResourcePolicies setZone(java.lang.String zone) { + 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 " + @@ -75239,18 +77605,18 @@ public RemoveResourcePolicies setZone(java.lang.String zone) { return this; } - /** The instance name for this request. */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** The instance name for this request. + /** Name of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** The instance name for this request. */ - public RemoveResourcePolicies setInstance(java.lang.String 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 " + @@ -75304,39 +77670,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 RemoveResourcePolicies setRequestId(java.lang.String requestId) { + public PerformMaintenance 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 PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } /** - * Mark the host as faulty and try to restart the instance on a new host. + * Removes resource policies from an instance. * - * Create a request for the method "instances.reportHostAsFaulty". + * Create a request for the method "instances.removeResourcePolicies". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ReportHostAsFaulty#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveResourcePolicies#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.InstancesReportHostAsFaultyRequest} + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} * @return the request */ - public ReportHostAsFaulty reportHostAsFaulty(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest content) throws java.io.IOException { - ReportHostAsFaulty result = new ReportHostAsFaulty(project, zone, instance, content); + public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest content) throws java.io.IOException { + RemoveResourcePolicies result = new RemoveResourcePolicies(project, zone, instance, content); initialize(result); return result; } - public class ReportHostAsFaulty extends ComputeRequest { + public class RemoveResourcePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/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])?))"); @@ -75348,23 +77715,23 @@ public class ReportHostAsFaulty extends ComputeRequest {@link ReportHostAsFaulty#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * 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 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.InstancesReportHostAsFaultyRequest} + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} * @since 1.13 */ - protected ReportHostAsFaulty(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest content) { + protected RemoveResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest 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()) { @@ -75387,63 +77754,63 @@ protected ReportHostAsFaulty(java.lang.String project, java.lang.String zone, ja } @Override - public ReportHostAsFaulty set$Xgafv(java.lang.String $Xgafv) { - return (ReportHostAsFaulty) super.set$Xgafv($Xgafv); + public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public ReportHostAsFaulty setAccessToken(java.lang.String accessToken) { - return (ReportHostAsFaulty) super.setAccessToken(accessToken); + public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { + return (RemoveResourcePolicies) super.setAccessToken(accessToken); } @Override - public ReportHostAsFaulty setAlt(java.lang.String alt) { - return (ReportHostAsFaulty) super.setAlt(alt); + public RemoveResourcePolicies setAlt(java.lang.String alt) { + return (RemoveResourcePolicies) super.setAlt(alt); } @Override - public ReportHostAsFaulty setCallback(java.lang.String callback) { - return (ReportHostAsFaulty) super.setCallback(callback); + public RemoveResourcePolicies setCallback(java.lang.String callback) { + return (RemoveResourcePolicies) super.setCallback(callback); } @Override - public ReportHostAsFaulty setFields(java.lang.String fields) { - return (ReportHostAsFaulty) super.setFields(fields); + public RemoveResourcePolicies setFields(java.lang.String fields) { + return (RemoveResourcePolicies) super.setFields(fields); } @Override - public ReportHostAsFaulty setKey(java.lang.String key) { - return (ReportHostAsFaulty) super.setKey(key); + public RemoveResourcePolicies setKey(java.lang.String key) { + return (RemoveResourcePolicies) super.setKey(key); } @Override - public ReportHostAsFaulty setOauthToken(java.lang.String oauthToken) { - return (ReportHostAsFaulty) super.setOauthToken(oauthToken); + public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (RemoveResourcePolicies) super.setOauthToken(oauthToken); } @Override - public ReportHostAsFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReportHostAsFaulty) super.setPrettyPrint(prettyPrint); + public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public ReportHostAsFaulty setQuotaUser(java.lang.String quotaUser) { - return (ReportHostAsFaulty) super.setQuotaUser(quotaUser); + public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public ReportHostAsFaulty setUploadType(java.lang.String uploadType) { - return (ReportHostAsFaulty) super.setUploadType(uploadType); + public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { + return (RemoveResourcePolicies) super.setUploadType(uploadType); } @Override - public ReportHostAsFaulty setUploadProtocol(java.lang.String uploadProtocol) { - return (ReportHostAsFaulty) super.setUploadProtocol(uploadProtocol); + public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public ReportHostAsFaulty setUserIp(java.lang.String userIp) { - return (ReportHostAsFaulty) super.setUserIp(userIp); + public RemoveResourcePolicies setUserIp(java.lang.String userIp) { + return (RemoveResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -75457,7 +77824,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ReportHostAsFaulty 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 " + @@ -75478,7 +77845,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public ReportHostAsFaulty setZone(java.lang.String zone) { + public RemoveResourcePolicies 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 " + @@ -75488,18 +77855,18 @@ public ReportHostAsFaulty setZone(java.lang.String zone) { return this; } - /** Name of the instance scoping this request. */ + /** The instance name for this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance scoping this request. + /** The instance name for this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance scoping this request. */ - public ReportHostAsFaulty setInstance(java.lang.String instance) { + /** The instance name for this request. */ + public RemoveResourcePolicies 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 " + @@ -75553,39 +77920,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 ReportHostAsFaulty setRequestId(java.lang.String requestId) { + public RemoveResourcePolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public ReportHostAsFaulty set(String parameterName, Object value) { - return (ReportHostAsFaulty) super.set(parameterName, value); + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) super.set(parameterName, value); } } /** - * Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. - * For more information, seeResetting an instance. + * Mark the host as faulty and try to restart the instance on a new host. * - * Create a request for the method "instances.reset". + * Create a request for the method "instances.reportHostAsFaulty". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Reset#execute()} method to invoke the remote operation. + * parameters, call the {@link ReportHostAsFaulty#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.InstancesReportHostAsFaultyRequest} * @return the request */ - public Reset reset(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Reset result = new Reset(project, zone, instance); + public ReportHostAsFaulty reportHostAsFaulty(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest content) throws java.io.IOException { + ReportHostAsFaulty result = new ReportHostAsFaulty(project, zone, instance, content); initialize(result); return result; } - public class Reset extends ComputeRequest { + public class ReportHostAsFaulty extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reset"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty"; 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])?))"); @@ -75597,23 +77964,272 @@ public class Reset extends ComputeRequest {@link - * Reset#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

{@link ReportHostAsFaulty#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. + * @param content the {@link com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest} * @since 1.13 */ - protected Reset(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 ReportHostAsFaulty(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest 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])?"); + } + 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 ReportHostAsFaulty set$Xgafv(java.lang.String $Xgafv) { + return (ReportHostAsFaulty) super.set$Xgafv($Xgafv); + } + + @Override + public ReportHostAsFaulty setAccessToken(java.lang.String accessToken) { + return (ReportHostAsFaulty) super.setAccessToken(accessToken); + } + + @Override + public ReportHostAsFaulty setAlt(java.lang.String alt) { + return (ReportHostAsFaulty) super.setAlt(alt); + } + + @Override + public ReportHostAsFaulty setCallback(java.lang.String callback) { + return (ReportHostAsFaulty) super.setCallback(callback); + } + + @Override + public ReportHostAsFaulty setFields(java.lang.String fields) { + return (ReportHostAsFaulty) super.setFields(fields); + } + + @Override + public ReportHostAsFaulty setKey(java.lang.String key) { + return (ReportHostAsFaulty) super.setKey(key); + } + + @Override + public ReportHostAsFaulty setOauthToken(java.lang.String oauthToken) { + return (ReportHostAsFaulty) super.setOauthToken(oauthToken); + } + + @Override + public ReportHostAsFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReportHostAsFaulty) super.setPrettyPrint(prettyPrint); + } + + @Override + public ReportHostAsFaulty setQuotaUser(java.lang.String quotaUser) { + return (ReportHostAsFaulty) super.setQuotaUser(quotaUser); + } + + @Override + public ReportHostAsFaulty setUploadType(java.lang.String uploadType) { + return (ReportHostAsFaulty) super.setUploadType(uploadType); + } + + @Override + public ReportHostAsFaulty setUploadProtocol(java.lang.String uploadProtocol) { + return (ReportHostAsFaulty) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ReportHostAsFaulty setUserIp(java.lang.String userIp) { + return (ReportHostAsFaulty) 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 ReportHostAsFaulty 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 ReportHostAsFaulty 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 ReportHostAsFaulty 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 ReportHostAsFaulty setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public ReportHostAsFaulty set(String parameterName, Object value) { + return (ReportHostAsFaulty) super.set(parameterName, value); + } + } + /** + * Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. + * For more information, seeResetting an instance. + * + * Create a request for the method "instances.reset". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Reset#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 Reset reset(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Reset result = new Reset(project, zone, instance); + initialize(result); + return result; + } + + public class Reset extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reset"; + + 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}"); + + /** + * Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. + * For more information, seeResetting an instance. + * + * Create a request for the method "instances.reset". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Reset#execute()} method to invoke the remote operation.

{@link + * Reset#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. + * @since 1.13 + */ + protected Reset(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(), @@ -132484,76 +135100,69 @@ public RemoveRule set(String parameterName, Object value) { } /** - * An accessor for creating requests from the PacketMirrorings collection. + * An accessor for creating requests from the OrganizationSnapshotRecycleBinPolicy collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.PacketMirrorings.List request = compute.packetMirrorings().list(parameters ...)}
+   *   {@code Compute.OrganizationSnapshotRecycleBinPolicy.List request = compute.organizationSnapshotRecycleBinPolicy().list(parameters ...)}
    * 
* * @return the resource collection */ - public PacketMirrorings packetMirrorings() { - return new PacketMirrorings(); + public OrganizationSnapshotRecycleBinPolicy organizationSnapshotRecycleBinPolicy() { + return new OrganizationSnapshotRecycleBinPolicy(); } /** - * The "packetMirrorings" collection of methods. + * The "organizationSnapshotRecycleBinPolicy" collection of methods. */ - public class PacketMirrorings { + public class OrganizationSnapshotRecycleBinPolicy { /** - * Retrieves an aggregated list of packetMirrorings. + * Returns the specified SnapshotRecycleBinPolicy. * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "packetMirrorings.aggregatedList". + * Create a request for the method "organizationSnapshotRecycleBinPolicy.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 organization Organization ID for this request. * @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 organization) throws java.io.IOException { + Get result = new Get(organization); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/packetMirrorings"; + private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; - 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 ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); /** - * Retrieves an aggregated list of packetMirrorings. + * Returns the specified SnapshotRecycleBinPolicy. * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "packetMirrorings.aggregatedList". + * Create a request for the method "organizationSnapshotRecycleBinPolicy.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 organization Organization 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.PacketMirroringAggregatedList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + protected Get(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotRecycleBinPolicy.class); + this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization 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])?))"); + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } } @@ -132568,601 +135177,958 @@ 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. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String organization; - /** Project ID for this request. + /** Organization ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrganization() { + return organization; } - /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + /** Organization ID for this request. */ + public Get setOrganization(java.lang.String organization) { 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } - 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; + this.organization = organization; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes the specified PacketMirroring resource. + * Patches the SnapshotRecycleBinPolicy. * - * Create a request for the method "packetMirrorings.delete". + * Create a request for the method "organizationSnapshotRecycleBinPolicy.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 for this request. - * @param packetMirroring Name of the PacketMirroring resource to delete. + * @param organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { - Delete result = new Delete(project, region, packetMirroring); + public Patch patch(java.lang.String organization, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) throws java.io.IOException { + Patch result = new Patch(organization, content); initialize(result); return result; } - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; - - 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])?))"); + public class Patch extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; - private final java.util.regex.Pattern PACKET_MIRRORING_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 ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); /** - * Deletes the specified PacketMirroring resource. + * Patches the SnapshotRecycleBinPolicy. * - * Create a request for the method "packetMirrorings.delete". + * Create a request for the method "organizationSnapshotRecycleBinPolicy.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 region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to delete. + * @param organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { - 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.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + protected Patch(java.lang.String organization, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } } @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); - } - - /** 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 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; + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } - /** Name of the PacketMirroring resource to delete. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String packetMirroring; + private java.lang.String organization; - /** Name of the PacketMirroring resource to delete. + /** Organization ID for this request. */ - public java.lang.String getPacketMirroring() { - return packetMirroring; + public java.lang.String getOrganization() { + return organization; } - /** Name of the PacketMirroring resource to delete. */ - public Delete setPacketMirroring(java.lang.String packetMirroring) { + /** Organization ID for this request. */ + public Patch setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } - this.packetMirroring = packetMirroring; + this.organization = organization; + 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 PacketMirrorings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PacketMirrorings.List request = compute.packetMirrorings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PacketMirrorings packetMirrorings() { + return new PacketMirrorings(); + } + + /** + * The "packetMirrorings" collection of methods. + */ + public class PacketMirrorings { + + /** + * Retrieves an aggregated list of packetMirrorings. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "packetMirrorings.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/packetMirrorings"; + + 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 packetMirrorings. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "packetMirrorings.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.PacketMirroringAggregatedList.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; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified PacketMirroring resource. + * + * Create a request for the method "packetMirrorings.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 packetMirroring Name of the PacketMirroring resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { + Delete result = new Delete(project, region, packetMirroring); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; + + 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 PACKET_MIRRORING_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 PacketMirroring resource. + * + * Create a request for the method "packetMirrorings.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 for this request. + * @param packetMirroring Name of the PacketMirroring resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { + 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.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring 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 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 PacketMirroring resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String packetMirroring; + + /** Name of the PacketMirroring resource to delete. + */ + public java.lang.String getPacketMirroring() { + return packetMirroring; + } + + /** Name of the PacketMirroring resource to delete. */ + public Delete setPacketMirroring(java.lang.String packetMirroring) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.packetMirroring = packetMirroring; return this; } @@ -138164,161 +141130,1943 @@ public SetCommonInstanceMetadata setProject(java.lang.String project) { * original 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). + * 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 SetCommonInstanceMetadata setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetCommonInstanceMetadata set(String parameterName, Object value) { + return (SetCommonInstanceMetadata) super.set(parameterName, value); + } + } + /** + * Sets the default network tier of the project. The default network tier is used when an + * address/forwardingRule/instance is created without specifying the network tier field. + * + * Create a request for the method "projects.setDefaultNetworkTier". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetDefaultNetworkTier#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} + * @return the request + */ + public SetDefaultNetworkTier setDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest content) throws java.io.IOException { + SetDefaultNetworkTier result = new SetDefaultNetworkTier(project, content); + initialize(result); + return result; + } + + public class SetDefaultNetworkTier extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/setDefaultNetworkTier"; + + 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 default network tier of the project. The default network tier is used when an + * address/forwardingRule/instance is created without specifying the network tier field. + * + * Create a request for the method "projects.setDefaultNetworkTier". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetDefaultNetworkTier#execute()} method to invoke the remote + * operation.

{@link SetDefaultNetworkTier#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 content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} + * @since 1.13 + */ + protected SetDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest 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 SetDefaultNetworkTier set$Xgafv(java.lang.String $Xgafv) { + return (SetDefaultNetworkTier) super.set$Xgafv($Xgafv); + } + + @Override + public SetDefaultNetworkTier setAccessToken(java.lang.String accessToken) { + return (SetDefaultNetworkTier) super.setAccessToken(accessToken); + } + + @Override + public SetDefaultNetworkTier setAlt(java.lang.String alt) { + return (SetDefaultNetworkTier) super.setAlt(alt); + } + + @Override + public SetDefaultNetworkTier setCallback(java.lang.String callback) { + return (SetDefaultNetworkTier) super.setCallback(callback); + } + + @Override + public SetDefaultNetworkTier setFields(java.lang.String fields) { + return (SetDefaultNetworkTier) super.setFields(fields); + } + + @Override + public SetDefaultNetworkTier setKey(java.lang.String key) { + return (SetDefaultNetworkTier) super.setKey(key); + } + + @Override + public SetDefaultNetworkTier setOauthToken(java.lang.String oauthToken) { + return (SetDefaultNetworkTier) super.setOauthToken(oauthToken); + } + + @Override + public SetDefaultNetworkTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDefaultNetworkTier) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetDefaultNetworkTier setQuotaUser(java.lang.String quotaUser) { + return (SetDefaultNetworkTier) super.setQuotaUser(quotaUser); + } + + @Override + public SetDefaultNetworkTier setUploadType(java.lang.String uploadType) { + return (SetDefaultNetworkTier) super.setUploadType(uploadType); + } + + @Override + public SetDefaultNetworkTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDefaultNetworkTier) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetDefaultNetworkTier setUserIp(java.lang.String userIp) { + return (SetDefaultNetworkTier) 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 SetDefaultNetworkTier 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 SetDefaultNetworkTier setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetDefaultNetworkTier set(String parameterName, Object value) { + return (SetDefaultNetworkTier) super.set(parameterName, value); + } + } + /** + * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the + * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to + * Managed Protection Plus for more information. + * + * Create a request for the method "projects.setManagedProtectionTier". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetManagedProtectionTier#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} + * @return the request + */ + public SetManagedProtectionTier setManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) throws java.io.IOException { + SetManagedProtectionTier result = new SetManagedProtectionTier(project, content); + initialize(result); + return result; + } + + public class SetManagedProtectionTier extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/setManagedProtectionTier"; + + 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 Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the + * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing + * to Managed Protection Plus for more information. + * + * Create a request for the method "projects.setManagedProtectionTier". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetManagedProtectionTier#execute()} method to invoke the remote + * operation.

{@link SetManagedProtectionTier#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 content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} + * @since 1.13 + */ + protected SetManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest 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 SetManagedProtectionTier set$Xgafv(java.lang.String $Xgafv) { + return (SetManagedProtectionTier) super.set$Xgafv($Xgafv); + } + + @Override + public SetManagedProtectionTier setAccessToken(java.lang.String accessToken) { + return (SetManagedProtectionTier) super.setAccessToken(accessToken); + } + + @Override + public SetManagedProtectionTier setAlt(java.lang.String alt) { + return (SetManagedProtectionTier) super.setAlt(alt); + } + + @Override + public SetManagedProtectionTier setCallback(java.lang.String callback) { + return (SetManagedProtectionTier) super.setCallback(callback); + } + + @Override + public SetManagedProtectionTier setFields(java.lang.String fields) { + return (SetManagedProtectionTier) super.setFields(fields); + } + + @Override + public SetManagedProtectionTier setKey(java.lang.String key) { + return (SetManagedProtectionTier) super.setKey(key); + } + + @Override + public SetManagedProtectionTier setOauthToken(java.lang.String oauthToken) { + return (SetManagedProtectionTier) super.setOauthToken(oauthToken); + } + + @Override + public SetManagedProtectionTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetManagedProtectionTier) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetManagedProtectionTier setQuotaUser(java.lang.String quotaUser) { + return (SetManagedProtectionTier) super.setQuotaUser(quotaUser); + } + + @Override + public SetManagedProtectionTier setUploadType(java.lang.String uploadType) { + return (SetManagedProtectionTier) super.setUploadType(uploadType); + } + + @Override + public SetManagedProtectionTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetManagedProtectionTier) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetManagedProtectionTier setUserIp(java.lang.String userIp) { + return (SetManagedProtectionTier) 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 SetManagedProtectionTier 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 SetManagedProtectionTier setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetManagedProtectionTier set(String parameterName, Object value) { + return (SetManagedProtectionTier) super.set(parameterName, value); + } + } + /** + * Enables the usage export feature and sets theusage export bucket where reports are stored. If you + * provide an empty request body using this method, the usage export feature will be disabled. + * + * Create a request for the method "projects.setUsageExportBucket". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetUsageExportBucket#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.UsageExportLocation} + * @return the request + */ + public SetUsageExportBucket setUsageExportBucket(java.lang.String project, com.google.api.services.compute.model.UsageExportLocation content) throws java.io.IOException { + SetUsageExportBucket result = new SetUsageExportBucket(project, content); + initialize(result); + return result; + } + + public class SetUsageExportBucket extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/setUsageExportBucket"; + + 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])?))"); + + /** + * Enables the usage export feature and sets theusage export bucket where reports are stored. If + * you provide an empty request body using this method, the usage export feature will be disabled. + * + * Create a request for the method "projects.setUsageExportBucket". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetUsageExportBucket#execute()} method to invoke the remote + * operation.

{@link SetUsageExportBucket#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.UsageExportLocation} + * @since 1.13 + */ + protected SetUsageExportBucket(java.lang.String project, com.google.api.services.compute.model.UsageExportLocation 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 SetUsageExportBucket set$Xgafv(java.lang.String $Xgafv) { + return (SetUsageExportBucket) super.set$Xgafv($Xgafv); + } + + @Override + public SetUsageExportBucket setAccessToken(java.lang.String accessToken) { + return (SetUsageExportBucket) super.setAccessToken(accessToken); + } + + @Override + public SetUsageExportBucket setAlt(java.lang.String alt) { + return (SetUsageExportBucket) super.setAlt(alt); + } + + @Override + public SetUsageExportBucket setCallback(java.lang.String callback) { + return (SetUsageExportBucket) super.setCallback(callback); + } + + @Override + public SetUsageExportBucket setFields(java.lang.String fields) { + return (SetUsageExportBucket) super.setFields(fields); + } + + @Override + public SetUsageExportBucket setKey(java.lang.String key) { + return (SetUsageExportBucket) super.setKey(key); + } + + @Override + public SetUsageExportBucket setOauthToken(java.lang.String oauthToken) { + return (SetUsageExportBucket) super.setOauthToken(oauthToken); + } + + @Override + public SetUsageExportBucket setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUsageExportBucket) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetUsageExportBucket setQuotaUser(java.lang.String quotaUser) { + return (SetUsageExportBucket) super.setQuotaUser(quotaUser); + } + + @Override + public SetUsageExportBucket setUploadType(java.lang.String uploadType) { + return (SetUsageExportBucket) super.setUploadType(uploadType); + } + + @Override + public SetUsageExportBucket setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUsageExportBucket) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetUsageExportBucket setUserIp(java.lang.String userIp) { + return (SetUsageExportBucket) 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 SetUsageExportBucket 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 SetUsageExportBucket setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetUsageExportBucket set(String parameterName, Object value) { + return (SetUsageExportBucket) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the PublicAdvertisedPrefixes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PublicAdvertisedPrefixes.List request = compute.publicAdvertisedPrefixes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PublicAdvertisedPrefixes publicAdvertisedPrefixes() { + return new PublicAdvertisedPrefixes(); + } + + /** + * The "publicAdvertisedPrefixes" collection of methods. + */ + public class PublicAdvertisedPrefixes { + + /** + * Announces the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.announce". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Announce#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @return the request + */ + public Announce announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { + Announce result = new Announce(project, publicAdvertisedPrefix); + initialize(result); + return result; + } + + public class Announce extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce"; + + 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])?))"); + + /** + * Announces the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.announce". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Announce#execute()} method to invoke the remote operation.

+ * {@link + * Announce#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 publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @since 1.13 + */ + protected Announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + } + + @Override + public Announce set$Xgafv(java.lang.String $Xgafv) { + return (Announce) super.set$Xgafv($Xgafv); + } + + @Override + public Announce setAccessToken(java.lang.String accessToken) { + return (Announce) super.setAccessToken(accessToken); + } + + @Override + public Announce setAlt(java.lang.String alt) { + return (Announce) super.setAlt(alt); + } + + @Override + public Announce setCallback(java.lang.String callback) { + return (Announce) super.setCallback(callback); + } + + @Override + public Announce setFields(java.lang.String fields) { + return (Announce) super.setFields(fields); + } + + @Override + public Announce setKey(java.lang.String key) { + return (Announce) super.setKey(key); + } + + @Override + public Announce setOauthToken(java.lang.String oauthToken) { + return (Announce) super.setOauthToken(oauthToken); + } + + @Override + public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Announce) super.setPrettyPrint(prettyPrint); + } + + @Override + public Announce setQuotaUser(java.lang.String quotaUser) { + return (Announce) super.setQuotaUser(quotaUser); + } + + @Override + public Announce setUploadType(java.lang.String uploadType) { + return (Announce) super.setUploadType(uploadType); + } + + @Override + public Announce setUploadProtocol(java.lang.String uploadProtocol) { + return (Announce) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Announce setUserIp(java.lang.String userIp) { + return (Announce) 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 Announce 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 public advertised prefix. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** The name of the public advertised prefix. It should comply with RFC1035. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** The name of the public advertised prefix. It should comply with RFC1035. */ + public Announce setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 Announce setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Announce set(String parameterName, Object value) { + return (Announce) super.set(parameterName, value); + } + } + /** + * Deletes the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { + Delete result = new Delete(project, publicAdvertisedPrefix); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + + 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 PUBLIC_ADVERTISED_PREFIX_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 PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix 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 PublicAdvertisedPrefix resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** Name of the PublicAdvertisedPrefix resource to delete. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** Name of the PublicAdvertisedPrefix resource to delete. */ + public Delete setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 PublicAdvertisedPrefix resource. + * + * Create a request for the method "publicAdvertisedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { + Get result = new Get(project, publicAdvertisedPrefix); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + + 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 PUBLIC_ADVERTISED_PREFIX_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 PublicAdvertisedPrefix resource. + * + * Create a request for the method "publicAdvertisedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicAdvertisedPrefix.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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix 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 PublicAdvertisedPrefix resource to return. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** Name of the PublicAdvertisedPrefix resource to return. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** Name of the PublicAdvertisedPrefix resource to return. */ + public Get setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included + * in the request. + * + * Create a request for the method "publicAdvertisedPrefixes.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.PublicAdvertisedPrefix} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.PublicAdvertisedPrefix 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/publicAdvertisedPrefixes"; + + 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 PublicAdvertisedPrefix in the specified project using the parameters that are + * included in the request. + * + * Create a request for the method "publicAdvertisedPrefixes.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.PublicAdvertisedPrefix} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.PublicAdvertisedPrefix 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); + } + } + /** + * Lists the PublicAdvertisedPrefixes for a project. + * + * Create a request for the method "publicAdvertisedPrefixes.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/publicAdvertisedPrefixes"; + + 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 PublicAdvertisedPrefixes for a project. + * + * Create a request for the method "publicAdvertisedPrefixes.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.PublicAdvertisedPrefixList.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.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 SetCommonInstanceMetadata setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetCommonInstanceMetadata set(String parameterName, Object value) { - return (SetCommonInstanceMetadata) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Sets the default network tier of the project. The default network tier is used when an - * address/forwardingRule/instance is created without specifying the network tier field. + * Patches the specified Router 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 "projects.setDefaultNetworkTier". + * Create a request for the method "publicAdvertisedPrefixes.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetDefaultNetworkTier#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 content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} * @return the request */ - public SetDefaultNetworkTier setDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest content) throws java.io.IOException { - SetDefaultNetworkTier result = new SetDefaultNetworkTier(project, content); + public Patch patch(java.lang.String project, java.lang.String publicAdvertisedPrefix, com.google.api.services.compute.model.PublicAdvertisedPrefix content) throws java.io.IOException { + Patch result = new Patch(project, publicAdvertisedPrefix, content); initialize(result); return result; } - public class SetDefaultNetworkTier extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/setDefaultNetworkTier"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; 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 PUBLIC_ADVERTISED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Sets the default network tier of the project. The default network tier is used when an - * address/forwardingRule/instance is created without specifying the network tier field. + * Patches the specified Router 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 "projects.setDefaultNetworkTier". + * Create a request for the method "publicAdvertisedPrefixes.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetDefaultNetworkTier#execute()} method to invoke the remote - * operation.

{@link SetDefaultNetworkTier#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 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 content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} * @since 1.13 */ - protected SetDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest 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 publicAdvertisedPrefix, com.google.api.services.compute.model.PublicAdvertisedPrefix 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public SetDefaultNetworkTier set$Xgafv(java.lang.String $Xgafv) { - return (SetDefaultNetworkTier) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetDefaultNetworkTier setAccessToken(java.lang.String accessToken) { - return (SetDefaultNetworkTier) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetDefaultNetworkTier setAlt(java.lang.String alt) { - return (SetDefaultNetworkTier) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetDefaultNetworkTier setCallback(java.lang.String callback) { - return (SetDefaultNetworkTier) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetDefaultNetworkTier setFields(java.lang.String fields) { - return (SetDefaultNetworkTier) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetDefaultNetworkTier setKey(java.lang.String key) { - return (SetDefaultNetworkTier) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetDefaultNetworkTier setOauthToken(java.lang.String oauthToken) { - return (SetDefaultNetworkTier) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetDefaultNetworkTier setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetDefaultNetworkTier) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetDefaultNetworkTier setQuotaUser(java.lang.String quotaUser) { - return (SetDefaultNetworkTier) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetDefaultNetworkTier setUploadType(java.lang.String uploadType) { - return (SetDefaultNetworkTier) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetDefaultNetworkTier setUploadProtocol(java.lang.String uploadProtocol) { - return (SetDefaultNetworkTier) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetDefaultNetworkTier setUserIp(java.lang.String userIp) { - return (SetDefaultNetworkTier) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138332,7 +143080,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetDefaultNetworkTier 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 " + @@ -138342,6 +143090,27 @@ public SetDefaultNetworkTier setProject(java.lang.String project) { return this; } + /** Name of the PublicAdvertisedPrefix resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** Name of the PublicAdvertisedPrefix resource to patch. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** Name of the PublicAdvertisedPrefix resource to patch. */ + public Patch setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 @@ -138386,129 +143155,125 @@ 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 SetDefaultNetworkTier setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetDefaultNetworkTier set(String parameterName, Object value) { - return (SetDefaultNetworkTier) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the - * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to - * Managed Protection Plus for more information. + * Withdraws the specified PublicAdvertisedPrefix * - * Create a request for the method "projects.setManagedProtectionTier". + * Create a request for the method "publicAdvertisedPrefixes.withdraw". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetManagedProtectionTier#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. * @return the request */ - public SetManagedProtectionTier setManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) throws java.io.IOException { - SetManagedProtectionTier result = new SetManagedProtectionTier(project, content); + public Withdraw withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { + Withdraw result = new Withdraw(project, publicAdvertisedPrefix); initialize(result); return result; } - public class SetManagedProtectionTier extends ComputeRequest { + public class Withdraw extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/setManagedProtectionTier"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw"; 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 Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the - * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing - * to Managed Protection Plus for more information. + * Withdraws the specified PublicAdvertisedPrefix * - * Create a request for the method "projects.setManagedProtectionTier". + * Create a request for the method "publicAdvertisedPrefixes.withdraw". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetManagedProtectionTier#execute()} method to invoke the remote - * operation.

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

+ * {@link + * Withdraw#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.ProjectsSetManagedProtectionTierRequest} + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. * @since 1.13 */ - protected SetManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); } @Override - public SetManagedProtectionTier set$Xgafv(java.lang.String $Xgafv) { - return (SetManagedProtectionTier) super.set$Xgafv($Xgafv); + public Withdraw set$Xgafv(java.lang.String $Xgafv) { + return (Withdraw) super.set$Xgafv($Xgafv); } @Override - public SetManagedProtectionTier setAccessToken(java.lang.String accessToken) { - return (SetManagedProtectionTier) super.setAccessToken(accessToken); + public Withdraw setAccessToken(java.lang.String accessToken) { + return (Withdraw) super.setAccessToken(accessToken); } @Override - public SetManagedProtectionTier setAlt(java.lang.String alt) { - return (SetManagedProtectionTier) super.setAlt(alt); + public Withdraw setAlt(java.lang.String alt) { + return (Withdraw) super.setAlt(alt); } @Override - public SetManagedProtectionTier setCallback(java.lang.String callback) { - return (SetManagedProtectionTier) super.setCallback(callback); + public Withdraw setCallback(java.lang.String callback) { + return (Withdraw) super.setCallback(callback); } @Override - public SetManagedProtectionTier setFields(java.lang.String fields) { - return (SetManagedProtectionTier) super.setFields(fields); + public Withdraw setFields(java.lang.String fields) { + return (Withdraw) super.setFields(fields); } @Override - public SetManagedProtectionTier setKey(java.lang.String key) { - return (SetManagedProtectionTier) super.setKey(key); + public Withdraw setKey(java.lang.String key) { + return (Withdraw) super.setKey(key); } @Override - public SetManagedProtectionTier setOauthToken(java.lang.String oauthToken) { - return (SetManagedProtectionTier) super.setOauthToken(oauthToken); + public Withdraw setOauthToken(java.lang.String oauthToken) { + return (Withdraw) super.setOauthToken(oauthToken); } @Override - public SetManagedProtectionTier setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetManagedProtectionTier) super.setPrettyPrint(prettyPrint); + public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Withdraw) super.setPrettyPrint(prettyPrint); } @Override - public SetManagedProtectionTier setQuotaUser(java.lang.String quotaUser) { - return (SetManagedProtectionTier) super.setQuotaUser(quotaUser); + public Withdraw setQuotaUser(java.lang.String quotaUser) { + return (Withdraw) super.setQuotaUser(quotaUser); } @Override - public SetManagedProtectionTier setUploadType(java.lang.String uploadType) { - return (SetManagedProtectionTier) super.setUploadType(uploadType); + public Withdraw setUploadType(java.lang.String uploadType) { + return (Withdraw) super.setUploadType(uploadType); } @Override - public SetManagedProtectionTier setUploadProtocol(java.lang.String uploadProtocol) { - return (SetManagedProtectionTier) super.setUploadProtocol(uploadProtocol); + public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { + return (Withdraw) super.setUploadProtocol(uploadProtocol); } @Override - public SetManagedProtectionTier setUserIp(java.lang.String userIp) { - return (SetManagedProtectionTier) super.setUserIp(userIp); + public Withdraw setUserIp(java.lang.String userIp) { + return (Withdraw) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138522,7 +143287,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetManagedProtectionTier setProject(java.lang.String project) { + public Withdraw 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 " + @@ -138532,6 +143297,22 @@ public SetManagedProtectionTier setProject(java.lang.String project) { return this; } + /** The name of the public advertised prefix. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** The name of the public advertised prefix. It should comply with RFC1035. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** The name of the public advertised prefix. It should comply with RFC1035. */ + public Withdraw setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 @@ -138576,61 +143357,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 SetManagedProtectionTier setRequestId(java.lang.String requestId) { + public Withdraw setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetManagedProtectionTier set(String parameterName, Object value) { - return (SetManagedProtectionTier) super.set(parameterName, value); + public Withdraw set(String parameterName, Object value) { + return (Withdraw) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the PublicDelegatedPrefixes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PublicDelegatedPrefixes.List request = compute.publicDelegatedPrefixes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PublicDelegatedPrefixes publicDelegatedPrefixes() { + return new PublicDelegatedPrefixes(); + } + + /** + * The "publicDelegatedPrefixes" collection of methods. + */ + public class PublicDelegatedPrefixes { + /** - * Enables the usage export feature and sets theusage export bucket where reports are stored. If you - * provide an empty request body using this method, the usage export feature will be disabled. + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. * - * Create a request for the method "projects.setUsageExportBucket". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "publicDelegatedPrefixes.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetUsageExportBucket#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 content the {@link com.google.api.services.compute.model.UsageExportLocation} + * @param project Name of the project scoping this request. * @return the request */ - public SetUsageExportBucket setUsageExportBucket(java.lang.String project, com.google.api.services.compute.model.UsageExportLocation content) throws java.io.IOException { - SetUsageExportBucket result = new SetUsageExportBucket(project, content); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class SetUsageExportBucket extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/setUsageExportBucket"; + private static final String REST_PATH = "projects/{project}/aggregated/publicDelegatedPrefixes"; 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])?))"); /** - * Enables the usage export feature and sets theusage export bucket where reports are stored. If - * you provide an empty request body using this method, the usage export feature will be disabled. + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. * - * Create a request for the method "projects.setUsageExportBucket". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "publicDelegatedPrefixes.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetUsageExportBucket#execute()} method to invoke the remote - * operation.

{@link SetUsageExportBucket#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 content the {@link com.google.api.services.compute.model.UsageExportLocation} + * @param project Name of the project scoping this request. * @since 1.13 */ - protected SetUsageExportBucket(java.lang.String project, com.google.api.services.compute.model.UsageExportLocation 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.PublicDelegatedPrefixAggregatedList.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(), @@ -138640,77 +143445,87 @@ protected SetUsageExportBucket(java.lang.String project, com.google.api.services } @Override - public SetUsageExportBucket set$Xgafv(java.lang.String $Xgafv) { - return (SetUsageExportBucket) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetUsageExportBucket setAccessToken(java.lang.String accessToken) { - return (SetUsageExportBucket) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetUsageExportBucket setAlt(java.lang.String alt) { - return (SetUsageExportBucket) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public SetUsageExportBucket setCallback(java.lang.String callback) { - return (SetUsageExportBucket) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public SetUsageExportBucket setFields(java.lang.String fields) { - return (SetUsageExportBucket) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public SetUsageExportBucket setKey(java.lang.String key) { - return (SetUsageExportBucket) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public SetUsageExportBucket setOauthToken(java.lang.String oauthToken) { - return (SetUsageExportBucket) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public SetUsageExportBucket setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUsageExportBucket) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public SetUsageExportBucket setQuotaUser(java.lang.String quotaUser) { - return (SetUsageExportBucket) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public SetUsageExportBucket setUploadType(java.lang.String uploadType) { - return (SetUsageExportBucket) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public SetUsageExportBucket setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUsageExportBucket) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public SetUsageExportBucket setUserIp(java.lang.String userIp) { - return (SetUsageExportBucket) 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 SetUsageExportBucket 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 " + @@ -138721,111 +143536,362 @@ public SetUsageExportBucket setProject(java.lang.String project) { } /** - * An optional request ID to identify requests. Specify a unique 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). + 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 getRequestId() { - return requestId; + public java.lang.String getFilter() { + return 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). + * 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 SetUsageExportBucket setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public SetUsageExportBucket set(String parameterName, Object value) { - return (SetUsageExportBucket) super.set(parameterName, value); + /** + * 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; + } - /** - * An accessor for creating requests from the PublicAdvertisedPrefixes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.PublicAdvertisedPrefixes.List request = compute.publicAdvertisedPrefixes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PublicAdvertisedPrefixes publicAdvertisedPrefixes() { - return new PublicAdvertisedPrefixes(); - } + /** + * 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 "publicAdvertisedPrefixes" collection of methods. - */ - public class PublicAdvertisedPrefixes { + /** 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); + } + } /** - * Announces the specified PublicAdvertisedPrefix + * Announces the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.announce". + * Create a request for the method "publicDelegatedPrefixes.announce". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Announce#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @param region The name of theregion where + the public delegated prefix is located. It should comply with RFC1035. + * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. * @return the request */ - public Announce announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Announce result = new Announce(project, publicAdvertisedPrefix); + public Announce announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Announce result = new Announce(project, region, publicDelegatedPrefix); initialize(result); return result; } public class Announce extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce"; 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])?))"); /** - * Announces the specified PublicAdvertisedPrefix + * Announces the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.announce". + * Create a request for the method "publicDelegatedPrefixes.announce". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Announce#execute()} method to invoke the remote operation.

@@ -138834,10 +143900,12 @@ public class Announce extends ComputeRequest * * @param project Project ID for this request. - * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @param region The name of theregion where + the public delegated prefix is located. It should comply with RFC1035. + * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. * @since 1.13 */ - protected Announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + protected Announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { 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()) { @@ -138845,7 +143913,8 @@ protected Announce(java.lang.String project, java.lang.String publicAdvertisedPr "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); } @Override @@ -138929,19 +143998,41 @@ public Announce setProject(java.lang.String project) { return this; } - /** The name of the public advertised prefix. It should comply with RFC1035. */ + /** + * The name of theregion where the public delegated prefix is located. It should comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String region; - /** The name of the public advertised prefix. It should comply with RFC1035. + /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getRegion() { + return region; } - /** The name of the public advertised prefix. It should comply with RFC1035. */ - public Announce setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - this.publicAdvertisedPrefix = publicAdvertisedPrefix; + /** + * The name of theregion where the public delegated prefix is located. It should comply with + * RFC1035. + */ + public Announce setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the public delegated prefix. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** The name of the public delegated prefix. It should comply with RFC1035. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** The name of the public delegated prefix. It should comply with RFC1035. */ + public Announce setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -139000,37 +144091,41 @@ public Announce set(String parameterName, Object value) { } } /** - * Deletes the specified PublicAdvertisedPrefix + * Deletes the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.delete". + * Create a request for the method "publicDelegatedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. + * @param region Name of the region of this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Delete result = new Delete(project, publicAdvertisedPrefix); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Delete result = new Delete(project, region, publicDelegatedPrefix); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; 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 PUBLIC_ADVERTISED_PREFIX_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 PUBLIC_DELEGATED_PREFIX_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 PublicAdvertisedPrefix + * Deletes the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.delete". + * Create a request for the method "publicDelegatedPrefixes.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 @@ -139038,10 +144133,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. + * @param region Name of the region of this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + protected Delete(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { 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()) { @@ -139049,10 +144145,16 @@ protected Delete(java.lang.String project, java.lang.String publicAdvertisedPref "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix 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(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -139138,24 +144240,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the PublicAdvertisedPrefix resource to delete. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String region; - /** Name of the PublicAdvertisedPrefix resource to delete. + /** Name of the region of this request. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getRegion() { + return region; } - /** Name of the PublicAdvertisedPrefix resource to delete. */ - public Delete setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + /** Name of the region of this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix 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 PublicDelegatedPrefix resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to delete. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to delete. */ + public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.publicAdvertisedPrefix = publicAdvertisedPrefix; + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -139214,37 +144337,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified PublicAdvertisedPrefix resource. + * Returns the specified PublicDelegatedPrefix resource in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.get". + * Create a request for the method "publicDelegatedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @param region Name of the region of this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Get result = new Get(project, publicAdvertisedPrefix); + public Get get(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Get result = new Get(project, region, publicDelegatedPrefix); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; 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 PUBLIC_ADVERTISED_PREFIX_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 PUBLIC_DELEGATED_PREFIX_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 PublicAdvertisedPrefix resource. + * Returns the specified PublicDelegatedPrefix resource in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.get". + * Create a request for the method "publicDelegatedPrefixes.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 @@ -139252,21 +144379,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @param region Name of the region of this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String publicAdvertisedPrefix) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicAdvertisedPrefix.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefix.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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix 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(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -139362,24 +144496,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the PublicAdvertisedPrefix resource to return. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String region; - /** Name of the PublicAdvertisedPrefix resource to return. + /** Name of the region of this request. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getRegion() { + return region; } - /** Name of the PublicAdvertisedPrefix resource to return. */ - public Get setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + /** Name of the region of this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix 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 PublicDelegatedPrefix resource to return. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to return. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to return. */ + public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.publicAdvertisedPrefix = publicAdvertisedPrefix; + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -139389,36 +144544,40 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included - * in the request. + * Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters + * that are included in the request. * - * Create a request for the method "publicAdvertisedPrefixes.insert". + * Create a request for the method "publicDelegatedPrefixes.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.PublicAdvertisedPrefix} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.PublicAdvertisedPrefix 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.PublicDelegatedPrefix 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/publicAdvertisedPrefixes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; 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 PublicAdvertisedPrefix in the specified project using the parameters that are - * included in the request. + * Creates a PublicDelegatedPrefix in the specified project in the given region using the + * parameters that are included in the request. * - * Create a request for the method "publicAdvertisedPrefixes.insert". + * Create a request for the method "publicDelegatedPrefixes.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 @@ -139426,10 +144585,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.PublicAdvertisedPrefix content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PublicDelegatedPrefix 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()) { @@ -139437,6 +144597,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 @@ -139520,6 +144686,27 @@ public Insert setProject(java.lang.String project) { return this; } + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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 @@ -139575,33 +144762,37 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists the PublicAdvertisedPrefixes for a project. + * Lists the PublicDelegatedPrefixes for a project in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.list". + * Create a request for the method "publicDelegatedPrefixes.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 of 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/publicAdvertisedPrefixes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; 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 PublicAdvertisedPrefixes for a project. + * Lists the PublicDelegatedPrefixes for a project in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.list". + * Create a request for the method "publicDelegatedPrefixes.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 @@ -139609,16 +144800,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. + * @param region Name of the region of this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicAdvertisedPrefixList.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefixList.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 @@ -139712,6 +144910,27 @@ public List setProject(java.lang.String project) { return this; } + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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 @@ -139982,40 +145201,44 @@ public List set(String parameterName, Object value) { } } /** - * Patches the specified Router resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * Patches the specified PublicDelegatedPrefix 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 "publicAdvertisedPrefixes.patch". + * Create a request for the method "publicDelegatedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @param region Name of the region for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String publicAdvertisedPrefix, com.google.api.services.compute.model.PublicAdvertisedPrefix content) throws java.io.IOException { - Patch result = new Patch(project, publicAdvertisedPrefix, content); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { + Patch result = new Patch(project, region, publicDelegatedPrefix, content); initialize(result); return result; } public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; 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 PUBLIC_ADVERTISED_PREFIX_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 PUBLIC_DELEGATED_PREFIX_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 Router resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * Patches the specified PublicDelegatedPrefix 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 "publicAdvertisedPrefixes.patch". + * Create a request for the method "publicDelegatedPrefixes.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 @@ -140023,11 +145246,12 @@ public class Patch extends ComputeRequest * * @param project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @param region Name of the region for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String publicAdvertisedPrefix, com.google.api.services.compute.model.PublicAdvertisedPrefix content) { + protected Patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix 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()) { @@ -140035,10 +145259,16 @@ protected Patch(java.lang.String project, java.lang.String publicAdvertisedPrefi "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix 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(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -140124,24 +145354,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the PublicAdvertisedPrefix resource to patch. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String region; - /** Name of the PublicAdvertisedPrefix resource to patch. + /** Name of the region for this request. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getRegion() { + return region; } - /** Name of the PublicAdvertisedPrefix resource to patch. */ - public Patch setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + /** Name of the region for this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix 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 PublicDelegatedPrefix resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to patch. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to patch. */ + public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.publicAdvertisedPrefix = publicAdvertisedPrefix; + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -140200,34 +145451,36 @@ public Patch set(String parameterName, Object value) { } } /** - * Withdraws the specified PublicAdvertisedPrefix + * Withdraws the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.withdraw". + * Create a request for the method "publicDelegatedPrefixes.withdraw". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @param region The name of theregion where + the public delegated prefix is located. It should comply with RFC1035. + * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. * @return the request */ - public Withdraw withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Withdraw result = new Withdraw(project, publicAdvertisedPrefix); + public Withdraw withdraw(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Withdraw result = new Withdraw(project, region, publicDelegatedPrefix); initialize(result); return result; } public class Withdraw extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw"; 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])?))"); /** - * Withdraws the specified PublicAdvertisedPrefix + * Withdraws the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "publicAdvertisedPrefixes.withdraw". + * Create a request for the method "publicDelegatedPrefixes.withdraw". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation.

@@ -140236,10 +145489,12 @@ public class Withdraw extends ComputeRequest * * @param project Project ID for this request. - * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @param region The name of theregion where + the public delegated prefix is located. It should comply with RFC1035. + * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. * @since 1.13 */ - protected Withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + protected Withdraw(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { 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()) { @@ -140247,7 +145502,8 @@ protected Withdraw(java.lang.String project, java.lang.String publicAdvertisedPr "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); } @Override @@ -140331,707 +145587,6 @@ public Withdraw setProject(java.lang.String project) { return this; } - /** The name of the public advertised prefix. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; - - /** The name of the public advertised prefix. It should comply with RFC1035. - */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; - } - - /** The name of the public advertised prefix. It should comply with RFC1035. */ - public Withdraw setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - this.publicAdvertisedPrefix = publicAdvertisedPrefix; - 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 Withdraw setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Withdraw set(String parameterName, Object value) { - return (Withdraw) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the PublicDelegatedPrefixes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.PublicDelegatedPrefixes.List request = compute.publicDelegatedPrefixes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PublicDelegatedPrefixes publicDelegatedPrefixes() { - return new PublicDelegatedPrefixes(); - } - - /** - * The "publicDelegatedPrefixes" collection of methods. - */ - public class PublicDelegatedPrefixes { - - /** - * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "publicDelegatedPrefixes.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/publicDelegatedPrefixes"; - - 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 PublicDelegatedPrefix resources owned by the specific project across all scopes. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "publicDelegatedPrefixes.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.PublicDelegatedPrefixAggregatedList.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); - } - } - /** - * Announces the specified PublicDelegatedPrefix in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.announce". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Announce#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of theregion where - the public delegated prefix is located. It should comply with RFC1035. - * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. - * @return the request - */ - public Announce announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Announce result = new Announce(project, region, publicDelegatedPrefix); - initialize(result); - return result; - } - - public class Announce extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce"; - - 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])?))"); - - /** - * Announces the specified PublicDelegatedPrefix in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.announce". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Announce#execute()} method to invoke the remote operation.

- * {@link - * Announce#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 public delegated prefix is located. It should comply with RFC1035. - * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. - * @since 1.13 - */ - protected Announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { - 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - } - - @Override - public Announce set$Xgafv(java.lang.String $Xgafv) { - return (Announce) super.set$Xgafv($Xgafv); - } - - @Override - public Announce setAccessToken(java.lang.String accessToken) { - return (Announce) super.setAccessToken(accessToken); - } - - @Override - public Announce setAlt(java.lang.String alt) { - return (Announce) super.setAlt(alt); - } - - @Override - public Announce setCallback(java.lang.String callback) { - return (Announce) super.setCallback(callback); - } - - @Override - public Announce setFields(java.lang.String fields) { - return (Announce) super.setFields(fields); - } - - @Override - public Announce setKey(java.lang.String key) { - return (Announce) super.setKey(key); - } - - @Override - public Announce setOauthToken(java.lang.String oauthToken) { - return (Announce) super.setOauthToken(oauthToken); - } - - @Override - public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Announce) super.setPrettyPrint(prettyPrint); - } - - @Override - public Announce setQuotaUser(java.lang.String quotaUser) { - return (Announce) super.setQuotaUser(quotaUser); - } - - @Override - public Announce setUploadType(java.lang.String uploadType) { - return (Announce) super.setUploadType(uploadType); - } - - @Override - public Announce setUploadProtocol(java.lang.String uploadProtocol) { - return (Announce) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Announce setUserIp(java.lang.String userIp) { - return (Announce) 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 Announce 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 public delegated prefix is located. It should comply with * RFC1035. @@ -141049,7 +145604,7 @@ public java.lang.String getRegion() { * The name of theregion where the public delegated prefix is located. It should comply with * RFC1035. */ - public Announce setRegion(java.lang.String region) { + public Withdraw setRegion(java.lang.String region) { this.region = region; return this; } @@ -141065,7 +145620,7 @@ public java.lang.String getPublicDelegatedPrefix() { } /** The name of the public delegated prefix. It should comply with RFC1035. */ - public Announce setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + public Withdraw setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -141114,52 +145669,73 @@ 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 Announce setRequestId(java.lang.String requestId) { + public Withdraw setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Announce set(String parameterName, Object value) { - return (Announce) super.set(parameterName, value); + public Withdraw set(String parameterName, Object value) { + return (Withdraw) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the RecoverableSnapshots collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RecoverableSnapshots.List request = compute.recoverableSnapshots().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RecoverableSnapshots recoverableSnapshots() { + return new RecoverableSnapshots(); + } + + /** + * The "recoverableSnapshots" collection of methods. + */ + public class RecoverableSnapshots { + /** - * Deletes the specified PublicDelegatedPrefix in the given region. + * Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot will delete the + * underlying PD snapshot and is irreversible. * - * Create a request for the method "publicDelegatedPrefixes.delete". + * Create a request for the method "recoverableSnapshots.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 of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @param recoverableSnapshot Name of the recoverable Snapshot resource to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Delete result = new Delete(project, region, publicDelegatedPrefix); + public Delete delete(java.lang.String project, java.lang.String recoverableSnapshot) throws java.io.IOException { + Delete result = new Delete(project, recoverableSnapshot); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + private static final String REST_PATH = "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}"; 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 PUBLIC_DELEGATED_PREFIX_PATTERN = + private final java.util.regex.Pattern RECOVERABLE_SNAPSHOT_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 PublicDelegatedPrefix in the given region. + * Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot will delete the + * underlying PD snapshot and is irreversible. * - * Create a request for the method "publicDelegatedPrefixes.delete". + * Create a request for the method "recoverableSnapshots.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 @@ -141167,11 +145743,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @param recoverableSnapshot Name of the recoverable Snapshot resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { + protected Delete(java.lang.String project, java.lang.String recoverableSnapshot) { 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()) { @@ -141179,16 +145754,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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + this.recoverableSnapshot = com.google.api.client.util.Preconditions.checkNotNull(recoverableSnapshot, "Required parameter recoverableSnapshot must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RECOVERABLE_SNAPSHOT_PATTERN.matcher(recoverableSnapshot).matches(), + "Parameter recoverableSnapshot must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -141274,45 +145843,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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 PublicDelegatedPrefix resource to delete. */ + /** Name of the recoverable Snapshot resource to delete. */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String recoverableSnapshot; - /** Name of the PublicDelegatedPrefix resource to delete. + /** Name of the recoverable Snapshot resource to delete. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getRecoverableSnapshot() { + return recoverableSnapshot; } - /** Name of the PublicDelegatedPrefix resource to delete. */ - public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + /** Name of the recoverable Snapshot resource to delete. */ + public Delete setRecoverableSnapshot(java.lang.String recoverableSnapshot) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RECOVERABLE_SNAPSHOT_PATTERN.matcher(recoverableSnapshot).matches(), + "Parameter recoverableSnapshot must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.publicDelegatedPrefix = publicDelegatedPrefix; + this.recoverableSnapshot = recoverableSnapshot; return this; } @@ -141371,41 +145919,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified PublicDelegatedPrefix resource in the given region. + * Returns the specified RecoverableSnapshot resource. * - * Create a request for the method "publicDelegatedPrefixes.get". + * Create a request for the method "recoverableSnapshots.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 of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @param recoverableSnapshot Name of the Snapshot resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Get result = new Get(project, region, publicDelegatedPrefix); + public Get get(java.lang.String project, java.lang.String recoverableSnapshot) throws java.io.IOException { + Get result = new Get(project, recoverableSnapshot); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + private static final String REST_PATH = "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}"; 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 PUBLIC_DELEGATED_PREFIX_PATTERN = + private final java.util.regex.Pattern RECOVERABLE_SNAPSHOT_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 PublicDelegatedPrefix resource in the given region. + * Returns the specified RecoverableSnapshot resource. * - * Create a request for the method "publicDelegatedPrefixes.get". + * Create a request for the method "recoverableSnapshots.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 @@ -141413,28 +145957,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @param recoverableSnapshot Name of the Snapshot resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefix.class); + protected Get(java.lang.String project, java.lang.String recoverableSnapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RecoverableSnapshot.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + this.recoverableSnapshot = com.google.api.client.util.Preconditions.checkNotNull(recoverableSnapshot, "Required parameter recoverableSnapshot must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RECOVERABLE_SNAPSHOT_PATTERN.matcher(recoverableSnapshot).matches(), + "Parameter recoverableSnapshot must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -141530,45 +146067,24 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the Snapshot resource to return. */ @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } + private java.lang.String recoverableSnapshot; - /** Name of the region of 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 PublicDelegatedPrefix resource to return. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to return. + /** Name of the Snapshot resource to return. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getRecoverableSnapshot() { + return recoverableSnapshot; } - /** Name of the PublicDelegatedPrefix resource to return. */ - public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + /** Name of the Snapshot resource to return. */ + public Get setRecoverableSnapshot(java.lang.String recoverableSnapshot) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RECOVERABLE_SNAPSHOT_PATTERN.matcher(recoverableSnapshot).matches(), + "Parameter recoverableSnapshot must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.publicDelegatedPrefix = publicDelegatedPrefix; + this.recoverableSnapshot = recoverableSnapshot; return this; } @@ -141578,125 +146094,133 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters - * that are included in the request. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "publicDelegatedPrefixes.insert". + * Create a request for the method "recoverableSnapshots.getIamPolicy". * * 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 GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param resource Name or id of the resource for this request. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + 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 Insert extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; + private static final String REST_PATH = "projects/{project}/global/recoverableSnapshots/{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 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}"); /** - * Creates a PublicDelegatedPrefix in the specified project in the given region using the - * parameters that are included in the request. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "publicDelegatedPrefixes.insert". + * Create a request for the method "recoverableSnapshots.getIamPolicy". * * 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 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 Name of the region of this request. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PublicDelegatedPrefix content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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(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(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 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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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. */ @@ -141710,7 +146234,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert 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 " + @@ -141720,113 +146244,76 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String resource; - /** Name of the region of this request. + /** Name or id of the resource for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getResource() { + return resource; } - /** Name of the region of this request. */ - public Insert setRegion(java.lang.String region) { + /** 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(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(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.region = region; + 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 Insert 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Lists the PublicDelegatedPrefixes for a project in the given region. + * Retrieves a list of all of the RecoverableSnapshots in your project. * - * Create a request for the method "publicDelegatedPrefixes.list". + * Create a request for the method "recoverableSnapshots.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 of 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}/publicDelegatedPrefixes"; + private static final String REST_PATH = "projects/{project}/global/recoverableSnapshots"; 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 PublicDelegatedPrefixes for a project in the given region. + * Retrieves a list of all of the RecoverableSnapshots in your project. * - * Create a request for the method "publicDelegatedPrefixes.list". + * Create a request for the method "recoverableSnapshots.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 @@ -141834,23 +146321,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region of 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.PublicDelegatedPrefixList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RecoverableSnapshotList.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 @@ -141944,27 +146424,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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 @@ -142235,150 +146694,139 @@ public List set(String parameterName, Object value) { } } /** - * Patches the specified PublicDelegatedPrefix resource with the data included in the request. This - * method supportsPATCH semantics and usesJSON merge patch format and processing rules. + * Recovers the specified RecoverableSnapshot. * - * Create a request for the method "publicDelegatedPrefixes.patch". + * Create a request for the method "recoverableSnapshots.recover". * * 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 Recover#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param project Project Id of the request + * @param recoverableSnapshot Name of the recoverable resource to recover * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { - Patch result = new Patch(project, region, publicDelegatedPrefix, content); + public Recover recover(java.lang.String project, java.lang.String recoverableSnapshot) throws java.io.IOException { + Recover result = new Recover(project, recoverableSnapshot); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Recover extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + private static final String REST_PATH = "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}/recover"; 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 PUBLIC_DELEGATED_PREFIX_PATTERN = + private final java.util.regex.Pattern RECOVERABLE_SNAPSHOT_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 SNAPSHOT_NAME_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Patches the specified PublicDelegatedPrefix resource with the data included in the request. - * This method supportsPATCH semantics and usesJSON merge patch format and processing rules. + * Recovers the specified RecoverableSnapshot. * - * Create a request for the method "publicDelegatedPrefixes.patch". + * Create a request for the method "recoverableSnapshots.recover". * * 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 Recover#execute()} method to invoke the remote operation.

+ * {@link + * Recover#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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param project Project Id of the request + * @param recoverableSnapshot Name of the recoverable resource to recover * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Recover(java.lang.String project, java.lang.String recoverableSnapshot) { + 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.recoverableSnapshot = com.google.api.client.util.Preconditions.checkNotNull(recoverableSnapshot, "Required parameter recoverableSnapshot 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RECOVERABLE_SNAPSHOT_PATTERN.matcher(recoverableSnapshot).matches(), + "Parameter recoverableSnapshot 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 Recover set$Xgafv(java.lang.String $Xgafv) { + return (Recover) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Recover setAccessToken(java.lang.String accessToken) { + return (Recover) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Recover setAlt(java.lang.String alt) { + return (Recover) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Recover setCallback(java.lang.String callback) { + return (Recover) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Recover setFields(java.lang.String fields) { + return (Recover) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Recover setKey(java.lang.String key) { + return (Recover) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Recover setOauthToken(java.lang.String oauthToken) { + return (Recover) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Recover setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Recover) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Recover setQuotaUser(java.lang.String quotaUser) { + return (Recover) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Recover setUploadType(java.lang.String uploadType) { + return (Recover) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Recover setUploadProtocol(java.lang.String uploadProtocol) { + return (Recover) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Recover setUserIp(java.lang.String userIp) { + return (Recover) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Project Id of the request */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Project Id of the request */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + /** Project Id of the request */ + public Recover 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 " + @@ -142388,45 +146836,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the recoverable resource to recover */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String recoverableSnapshot; - /** Name of the region for this request. + /** Name of the recoverable resource to recover */ - public java.lang.String getRegion() { - return region; + public java.lang.String getRecoverableSnapshot() { + return recoverableSnapshot; } - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String region) { + /** Name of the recoverable resource to recover */ + public Recover setRecoverableSnapshot(java.lang.String recoverableSnapshot) { 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 PublicDelegatedPrefix resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to patch. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** Name of the PublicDelegatedPrefix resource to patch. */ - public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RECOVERABLE_SNAPSHOT_PATTERN.matcher(recoverableSnapshot).matches(), + "Parameter recoverableSnapshot must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.publicDelegatedPrefix = publicDelegatedPrefix; + this.recoverableSnapshot = recoverableSnapshot; return this; } @@ -142474,130 +146901,172 @@ 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 Recover setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** + * Optional. Name of the snapshot after the recovery The name will be 1-63 characters long, + * and comply withRFC1035. Specifically, the name will be 1-63 characters long and match the + * regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character will be a + * lowercase letter, and all following characters can be a dash, lowercase letter, or digit, + * except the last character, which cannot be a dash. + */ + @com.google.api.client.util.Key + private java.lang.String snapshotName; + + /** Optional. Name of the snapshot after the recovery The name will be 1-63 characters long, and comply + withRFC1035. Specifically, the name will be 1-63 characters long and match the regular expression + `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character will be a lowercase letter, and all + following characters can be a dash, lowercase letter, or digit, except the last character, which + cannot be a dash. + */ + public java.lang.String getSnapshotName() { + return snapshotName; + } + + /** + * Optional. Name of the snapshot after the recovery The name will be 1-63 characters long, + * and comply withRFC1035. Specifically, the name will be 1-63 characters long and match the + * regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character will be a + * lowercase letter, and all following characters can be a dash, lowercase letter, or digit, + * except the last character, which cannot be a dash. + */ + public Recover setSnapshotName(java.lang.String snapshotName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_NAME_PATTERN.matcher(snapshotName).matches(), + "Parameter snapshotName must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.snapshotName = snapshotName; + return this; + } + @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Recover set(String parameterName, Object value) { + return (Recover) super.set(parameterName, value); } } /** - * Withdraws the specified PublicDelegatedPrefix in the given region. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "publicDelegatedPrefixes.withdraw". + * Create a request for the method "recoverableSnapshots.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Withdraw#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 theregion where - the public delegated prefix is located. It should comply with RFC1035. - * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. + * @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 Withdraw withdraw(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Withdraw result = new Withdraw(project, region, publicDelegatedPrefix); + 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 Withdraw extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw"; + private static final String REST_PATH = "projects/{project}/global/recoverableSnapshots/{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}"); + /** - * Withdraws the specified PublicDelegatedPrefix in the given region. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "publicDelegatedPrefixes.withdraw". + * Create a request for the method "recoverableSnapshots.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation.

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

* {@link - * Withdraw#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 theregion where - the public delegated prefix is located. It should comply with RFC1035. - * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. + * @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 Withdraw(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix 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(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 Withdraw set$Xgafv(java.lang.String $Xgafv) { - return (Withdraw) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Withdraw setAccessToken(java.lang.String accessToken) { - return (Withdraw) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Withdraw setAlt(java.lang.String alt) { - return (Withdraw) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Withdraw setCallback(java.lang.String callback) { - return (Withdraw) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Withdraw setFields(java.lang.String fields) { - return (Withdraw) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Withdraw setKey(java.lang.String key) { - return (Withdraw) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Withdraw setOauthToken(java.lang.String oauthToken) { - return (Withdraw) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Withdraw) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Withdraw setQuotaUser(java.lang.String quotaUser) { - return (Withdraw) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Withdraw setUploadType(java.lang.String uploadType) { - return (Withdraw) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { - return (Withdraw) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Withdraw setUserIp(java.lang.String userIp) { - return (Withdraw) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -142611,7 +147080,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Withdraw 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 " + @@ -142621,96 +147090,198 @@ public Withdraw setProject(java.lang.String project) { return this; } - /** - * The name of theregion where the public delegated prefix is located. It should comply with - * RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String resource; - /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getResource() { + return resource; } - /** - * The name of theregion where the public delegated prefix is located. It should comply with - * RFC1035. - */ - public Withdraw setRegion(java.lang.String region) { - this.region = region; + /** 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; } - /** The name of the public delegated prefix. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** The name of the public delegated prefix. It should comply with RFC1035. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "recoverableSnapshots.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; + } - /** The name of the public delegated prefix. It should comply with RFC1035. */ - public Withdraw setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - this.publicDelegatedPrefix = publicDelegatedPrefix; - return this; - } + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/recoverableSnapshots/{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}"); /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Returns permissions that a caller has on the specified resource. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "recoverableSnapshots.testIamPermissions". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 */ - @com.google.api.client.util.Key - private java.lang.String requestId; + 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}"); + } + } - /** An optional request ID to identify requests. Specify a unique 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$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + @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 getRequestId() { - return requestId; + public java.lang.String getProject() { + return project; } - /** - * An optional request ID to identify requests. Specify a unique 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). + /** 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 Withdraw setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 Withdraw set(String parameterName, Object value) { - return (Withdraw) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } @@ -218334,6 +222905,237 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + /** + * Get health info on a reservation slot. + * + * Create a request for the method "reservationSlots.getHealth". + * + * 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. + * + * @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, parent block and parent sub-block. In + the format of + reservations + * /{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reser + * vation_sub_block_name} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public GetHealth getHealth(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) throws java.io.IOException { + GetHealth result = new GetHealth(project, zone, parentName, reservationSlot); + initialize(result); + return result; + } + + public class GetHealth extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getHealth"; + + 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})"); + + /** + * Get health info on a reservation slot. + * + * Create a request for the method "reservationSlots.getHealth". + * + * 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.

+ * + * @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, parent block and parent sub-block. In + the format of + reservations + * /{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reser + * vation_sub_block_name} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected GetHealth(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) { + 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."); + 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 GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); + } + + @Override + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); + } + + @Override + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); + } + + @Override + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); + } + + @Override + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); + } + + @Override + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); + } + + @Override + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); + } + + @Override + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); + } + + @Override + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); + } + + @Override + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetHealth setUserIp(java.lang.String userIp) { + return (GetHealth) 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 GetHealth 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 GetHealth setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation, parent block and parent sub-block. In the format of res + * ervations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlock + * s/{reservation_sub_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation, parent block and parent sub-block. In the format of reservation + s/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_s + ub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation, parent block and parent sub-block. In the format of res + * ervations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlock + * s/{reservation_sub_block_name} + */ + public GetHealth 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 GetHealth setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + return this; + } + + /** An optional request ID to identify requests. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** An optional request ID to identify requests. */ + public GetHealth setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); + } + } /** * Allows customers to get SBOM versions of a reservation slot. * @@ -245114,6 +249916,356 @@ public TestIamPermissions set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the SnapshotRecycleBinPolicy collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.SnapshotRecycleBinPolicy.List request = compute.snapshotRecycleBinPolicy().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public SnapshotRecycleBinPolicy snapshotRecycleBinPolicy() { + return new SnapshotRecycleBinPolicy(); + } + + /** + * The "snapshotRecycleBinPolicy" collection of methods. + */ + public class SnapshotRecycleBinPolicy { + + /** + * Returns the specified SnapshotRecycleBinPolicy. + * + * Create a request for the method "snapshotRecycleBinPolicy.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. + * @return the request + */ + public Get get(java.lang.String project) throws java.io.IOException { + Get result = new Get(project); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshotRecycleBinPolicy"; + + 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 SnapshotRecycleBinPolicy. + * + * Create a request for the method "snapshotRecycleBinPolicy.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. + * @since 1.13 + */ + protected Get(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotRecycleBinPolicy.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 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Patches the SnapshotRecycleBinPolicy. + * + * Create a request for the method "snapshotRecycleBinPolicy.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 content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) throws java.io.IOException { + Patch result = new Patch(project, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshotRecycleBinPolicy"; + + 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 SnapshotRecycleBinPolicy. + * + * Create a request for the method "snapshotRecycleBinPolicy.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 content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, com.google.api.services.compute.model.SnapshotRecycleBinPolicy 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])?))"); + } + } + + @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; + } + + /** + * An optional request ID to identify requests. Specify a unique 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 SnapshotSettings collection. * @@ -246372,6 +251524,185 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + /** + * Returns the effective recycle bin rule for a snapshot by merging org and project level rules. If + * no rules are defined at org and project level, the standard default rule is returned. + * + * Create a request for the method "snapshots.getEffectiveRecycleBinRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetEffectiveRecycleBinRule#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param snapshot Name of the Snapshot resource to get the effective recycle bin rule for. + * @return the request + */ + public GetEffectiveRecycleBinRule getEffectiveRecycleBinRule(java.lang.String project, java.lang.String snapshot) throws java.io.IOException { + GetEffectiveRecycleBinRule result = new GetEffectiveRecycleBinRule(project, snapshot); + initialize(result); + return result; + } + + public class GetEffectiveRecycleBinRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots/{snapshot}/getEffectiveRecycleBinRule"; + + 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 SNAPSHOT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the effective recycle bin rule for a snapshot by merging org and project level rules. + * If no rules are defined at org and project level, the standard default rule is returned. + * + * Create a request for the method "snapshots.getEffectiveRecycleBinRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetEffectiveRecycleBinRule#execute()} method to invoke the remote + * operation.

{@link GetEffectiveRecycleBinRule#initialize(com.google.api.client.googleapis.se + * rvices.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 get the effective recycle bin rule for. + * @since 1.13 + */ + protected GetEffectiveRecycleBinRule(java.lang.String project, java.lang.String snapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotsGetEffectiveRecycleBinRuleResponse.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 GetEffectiveRecycleBinRule set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveRecycleBinRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetEffectiveRecycleBinRule setAccessToken(java.lang.String accessToken) { + return (GetEffectiveRecycleBinRule) super.setAccessToken(accessToken); + } + + @Override + public GetEffectiveRecycleBinRule setAlt(java.lang.String alt) { + return (GetEffectiveRecycleBinRule) super.setAlt(alt); + } + + @Override + public GetEffectiveRecycleBinRule setCallback(java.lang.String callback) { + return (GetEffectiveRecycleBinRule) super.setCallback(callback); + } + + @Override + public GetEffectiveRecycleBinRule setFields(java.lang.String fields) { + return (GetEffectiveRecycleBinRule) super.setFields(fields); + } + + @Override + public GetEffectiveRecycleBinRule setKey(java.lang.String key) { + return (GetEffectiveRecycleBinRule) super.setKey(key); + } + + @Override + public GetEffectiveRecycleBinRule setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveRecycleBinRule) super.setOauthToken(oauthToken); + } + + @Override + public GetEffectiveRecycleBinRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveRecycleBinRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEffectiveRecycleBinRule setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveRecycleBinRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetEffectiveRecycleBinRule setUploadType(java.lang.String uploadType) { + return (GetEffectiveRecycleBinRule) super.setUploadType(uploadType); + } + + @Override + public GetEffectiveRecycleBinRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveRecycleBinRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetEffectiveRecycleBinRule setUserIp(java.lang.String userIp) { + return (GetEffectiveRecycleBinRule) 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 GetEffectiveRecycleBinRule 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 get the effective recycle bin rule for. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the Snapshot resource to get the effective recycle bin rule for. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the Snapshot resource to get the effective recycle bin rule for. */ + public GetEffectiveRecycleBinRule 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 GetEffectiveRecycleBinRule set(String parameterName, Object value) { + return (GetEffectiveRecycleBinRule) super.set(parameterName, value); + } + } /** * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfig.java new file mode 100644 index 00000000000..b9eefeaa6c2 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfig.java @@ -0,0 +1,546 @@ +/* + * 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 standalone, regional API resource that encapsulates a set of user-defined DHCP configurations. + * + *

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 DhcpOptionsConfig extends com.google.api.client.json.GenericJson { + + /** + * Mapping of user-defined keys to DhcpOptionsConfig to Network associations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map associations; + + /** + * The file path and name of the boot image/file on the TFTP server that the client VM guest OS + * should download and execute during network boot. Used when the standard DHCP header 'file' + * field is overloaded. Corresponds to DHCPv4 Option 67. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bootFileIpv4Name; + + /** + * A list of UTF-8 encoded parameter strings to be passed as arguments to the bootloader program + * or OS kernel after downloading the boot file. Corresponds to DHCPv6 Option 60. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bootFileIpv6Parameters; + + /** + * The Uniform Resource Locator (URL) specifying the protocol, server address, and file path of + * the boot file that the client VM guest OS should download and execute for network boot (e.g., + * 'tftp://[2001:db8::1]/bootx64.efi' or 'http://[2001:db8::1]/boot.img'). Corresponds to DHCPv6 + * Option 59. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bootFileIpv6Url; + + /** + * 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; + + /** + * An ordered list of domain suffixes (search paths) that the client VM guest OS should append to + * resolve hostnames that are not fully qualified. Applies to both DHCPv4 Option 119 and DHCPv6 + * Option 24. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dnsSearchPaths; + + /** + * The domain name that the client VM guest OS should use when resolving hostnames via DNS (e.g., + * 'example.com'). It defines the default domain suffix for the client. Corresponds to DHCPv4 + * Option 15. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String domainName; + + /** + * 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. [Output Only] Type of the resource. Alwayscompute#dhcpOptionsConfig for dhcp + * options configs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The duration, in seconds, of the IPv4 address lease offered by the DHCP server to the client VM + * guest OS. Corresponds to DHCPv4 Option 51. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long leaseTimeSec; + + /** + * 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; + + /** + * An ordered list of IPv4 addresses of Network Time Protocol (NTP) servers available to the + * client VM guest OS for system clock synchronization, listed in order of preference. Corresponds + * to DHCPv4 Option 42. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ntpServerIpv4Addresses; + + /** + * An ordered list of IPv6 addresses of Network Time Protocol (NTP) servers available to the + * client VM guest OS for system clock synchronization. Corresponds to DHCPv6 Option 56. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ntpServerIpv6Addresses; + + /** + * Output only. [Output Only] URL of the region where the resource resides. + * 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; + + /** + * An ordered list of one or more IPv4 addresses of TFTP servers. Provides server redundancy and + * failover support, and is generally prioritized by clients over the single hostname specified in + * Option 66. Corresponds to DHCPv4 Option 150. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tftpServerIpv4Addresses; + + /** + * The hostname or IP address of the Trivial File Transfer Protocol (TFTP) server from which the + * client VM guest OS can download boot files. Typically used in network booting (PXE) when the + * standard DHCP header 'sname' field is overloaded. Corresponds to DHCPv4 Option 66. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tftpServerIpv4Name; + + /** + * Mapping of user-defined keys to DhcpOptionsConfig to Network associations. + * @return value or {@code null} for none + */ + public java.util.Map getAssociations() { + return associations; + } + + /** + * Mapping of user-defined keys to DhcpOptionsConfig to Network associations. + * @param associations associations or {@code null} for none + */ + public DhcpOptionsConfig setAssociations(java.util.Map associations) { + this.associations = associations; + return this; + } + + /** + * The file path and name of the boot image/file on the TFTP server that the client VM guest OS + * should download and execute during network boot. Used when the standard DHCP header 'file' + * field is overloaded. Corresponds to DHCPv4 Option 67. + * @return value or {@code null} for none + */ + public java.lang.String getBootFileIpv4Name() { + return bootFileIpv4Name; + } + + /** + * The file path and name of the boot image/file on the TFTP server that the client VM guest OS + * should download and execute during network boot. Used when the standard DHCP header 'file' + * field is overloaded. Corresponds to DHCPv4 Option 67. + * @param bootFileIpv4Name bootFileIpv4Name or {@code null} for none + */ + public DhcpOptionsConfig setBootFileIpv4Name(java.lang.String bootFileIpv4Name) { + this.bootFileIpv4Name = bootFileIpv4Name; + return this; + } + + /** + * A list of UTF-8 encoded parameter strings to be passed as arguments to the bootloader program + * or OS kernel after downloading the boot file. Corresponds to DHCPv6 Option 60. + * @return value or {@code null} for none + */ + public java.util.List getBootFileIpv6Parameters() { + return bootFileIpv6Parameters; + } + + /** + * A list of UTF-8 encoded parameter strings to be passed as arguments to the bootloader program + * or OS kernel after downloading the boot file. Corresponds to DHCPv6 Option 60. + * @param bootFileIpv6Parameters bootFileIpv6Parameters or {@code null} for none + */ + public DhcpOptionsConfig setBootFileIpv6Parameters(java.util.List bootFileIpv6Parameters) { + this.bootFileIpv6Parameters = bootFileIpv6Parameters; + return this; + } + + /** + * The Uniform Resource Locator (URL) specifying the protocol, server address, and file path of + * the boot file that the client VM guest OS should download and execute for network boot (e.g., + * 'tftp://[2001:db8::1]/bootx64.efi' or 'http://[2001:db8::1]/boot.img'). Corresponds to DHCPv6 + * Option 59. + * @return value or {@code null} for none + */ + public java.lang.String getBootFileIpv6Url() { + return bootFileIpv6Url; + } + + /** + * The Uniform Resource Locator (URL) specifying the protocol, server address, and file path of + * the boot file that the client VM guest OS should download and execute for network boot (e.g., + * 'tftp://[2001:db8::1]/bootx64.efi' or 'http://[2001:db8::1]/boot.img'). Corresponds to DHCPv6 + * Option 59. + * @param bootFileIpv6Url bootFileIpv6Url or {@code null} for none + */ + public DhcpOptionsConfig setBootFileIpv6Url(java.lang.String bootFileIpv6Url) { + this.bootFileIpv6Url = bootFileIpv6Url; + return this; + } + + /** + * 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 DhcpOptionsConfig 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 DhcpOptionsConfig setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * An ordered list of domain suffixes (search paths) that the client VM guest OS should append to + * resolve hostnames that are not fully qualified. Applies to both DHCPv4 Option 119 and DHCPv6 + * Option 24. + * @return value or {@code null} for none + */ + public java.util.List getDnsSearchPaths() { + return dnsSearchPaths; + } + + /** + * An ordered list of domain suffixes (search paths) that the client VM guest OS should append to + * resolve hostnames that are not fully qualified. Applies to both DHCPv4 Option 119 and DHCPv6 + * Option 24. + * @param dnsSearchPaths dnsSearchPaths or {@code null} for none + */ + public DhcpOptionsConfig setDnsSearchPaths(java.util.List dnsSearchPaths) { + this.dnsSearchPaths = dnsSearchPaths; + return this; + } + + /** + * The domain name that the client VM guest OS should use when resolving hostnames via DNS (e.g., + * 'example.com'). It defines the default domain suffix for the client. Corresponds to DHCPv4 + * Option 15. + * @return value or {@code null} for none + */ + public java.lang.String getDomainName() { + return domainName; + } + + /** + * The domain name that the client VM guest OS should use when resolving hostnames via DNS (e.g., + * 'example.com'). It defines the default domain suffix for the client. Corresponds to DHCPv4 + * Option 15. + * @param domainName domainName or {@code null} for none + */ + public DhcpOptionsConfig setDomainName(java.lang.String domainName) { + this.domainName = domainName; + return this; + } + + /** + * 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() { + return id; + } + + /** + * 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 DhcpOptionsConfig setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#dhcpOptionsConfig for dhcp + * options configs. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#dhcpOptionsConfig for dhcp + * options configs. + * @param kind kind or {@code null} for none + */ + public DhcpOptionsConfig setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The duration, in seconds, of the IPv4 address lease offered by the DHCP server to the client VM + * guest OS. Corresponds to DHCPv4 Option 51. + * @return value or {@code null} for none + */ + public java.lang.Long getLeaseTimeSec() { + return leaseTimeSec; + } + + /** + * The duration, in seconds, of the IPv4 address lease offered by the DHCP server to the client VM + * guest OS. Corresponds to DHCPv4 Option 51. + * @param leaseTimeSec leaseTimeSec or {@code null} for none + */ + public DhcpOptionsConfig setLeaseTimeSec(java.lang.Long leaseTimeSec) { + this.leaseTimeSec = leaseTimeSec; + 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 DhcpOptionsConfig setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * An ordered list of IPv4 addresses of Network Time Protocol (NTP) servers available to the + * client VM guest OS for system clock synchronization, listed in order of preference. Corresponds + * to DHCPv4 Option 42. + * @return value or {@code null} for none + */ + public java.util.List getNtpServerIpv4Addresses() { + return ntpServerIpv4Addresses; + } + + /** + * An ordered list of IPv4 addresses of Network Time Protocol (NTP) servers available to the + * client VM guest OS for system clock synchronization, listed in order of preference. Corresponds + * to DHCPv4 Option 42. + * @param ntpServerIpv4Addresses ntpServerIpv4Addresses or {@code null} for none + */ + public DhcpOptionsConfig setNtpServerIpv4Addresses(java.util.List ntpServerIpv4Addresses) { + this.ntpServerIpv4Addresses = ntpServerIpv4Addresses; + return this; + } + + /** + * An ordered list of IPv6 addresses of Network Time Protocol (NTP) servers available to the + * client VM guest OS for system clock synchronization. Corresponds to DHCPv6 Option 56. + * @return value or {@code null} for none + */ + public java.util.List getNtpServerIpv6Addresses() { + return ntpServerIpv6Addresses; + } + + /** + * An ordered list of IPv6 addresses of Network Time Protocol (NTP) servers available to the + * client VM guest OS for system clock synchronization. Corresponds to DHCPv6 Option 56. + * @param ntpServerIpv6Addresses ntpServerIpv6Addresses or {@code null} for none + */ + public DhcpOptionsConfig setNtpServerIpv6Addresses(java.util.List ntpServerIpv6Addresses) { + this.ntpServerIpv6Addresses = ntpServerIpv6Addresses; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the resource resides. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the resource resides. + * @param region region or {@code null} for none + */ + public DhcpOptionsConfig 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 DhcpOptionsConfig setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * An ordered list of one or more IPv4 addresses of TFTP servers. Provides server redundancy and + * failover support, and is generally prioritized by clients over the single hostname specified in + * Option 66. Corresponds to DHCPv4 Option 150. + * @return value or {@code null} for none + */ + public java.util.List getTftpServerIpv4Addresses() { + return tftpServerIpv4Addresses; + } + + /** + * An ordered list of one or more IPv4 addresses of TFTP servers. Provides server redundancy and + * failover support, and is generally prioritized by clients over the single hostname specified in + * Option 66. Corresponds to DHCPv4 Option 150. + * @param tftpServerIpv4Addresses tftpServerIpv4Addresses or {@code null} for none + */ + public DhcpOptionsConfig setTftpServerIpv4Addresses(java.util.List tftpServerIpv4Addresses) { + this.tftpServerIpv4Addresses = tftpServerIpv4Addresses; + return this; + } + + /** + * The hostname or IP address of the Trivial File Transfer Protocol (TFTP) server from which the + * client VM guest OS can download boot files. Typically used in network booting (PXE) when the + * standard DHCP header 'sname' field is overloaded. Corresponds to DHCPv4 Option 66. + * @return value or {@code null} for none + */ + public java.lang.String getTftpServerIpv4Name() { + return tftpServerIpv4Name; + } + + /** + * The hostname or IP address of the Trivial File Transfer Protocol (TFTP) server from which the + * client VM guest OS can download boot files. Typically used in network booting (PXE) when the + * standard DHCP header 'sname' field is overloaded. Corresponds to DHCPv4 Option 66. + * @param tftpServerIpv4Name tftpServerIpv4Name or {@code null} for none + */ + public DhcpOptionsConfig setTftpServerIpv4Name(java.lang.String tftpServerIpv4Name) { + this.tftpServerIpv4Name = tftpServerIpv4Name; + return this; + } + + @Override + public DhcpOptionsConfig set(String fieldName, Object value) { + return (DhcpOptionsConfig) super.set(fieldName, value); + } + + @Override + public DhcpOptionsConfig clone() { + return (DhcpOptionsConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfigAssociation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfigAssociation.java new file mode 100644 index 00000000000..2adcd4ea2c2 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfigAssociation.java @@ -0,0 +1,124 @@ +/* + * 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; + +/** + * Association represents the relationship between a DHCP options config and a network. Association + * represents the relationship between a DHCP options config and a network. + * + *

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 DhcpOptionsConfigAssociation extends com.google.api.client.json.GenericJson { + + /** + * Required. The target network this DHCP option is attached to. You can specify this as a full or + * partial URL. For example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - + * projects/project/global/networks/network + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Output only. [Output Only] The server-defined ID of the associated Network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger networkId; + + /** + * Output only. [Output Only] State of the association. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Required. The target network this DHCP option is attached to. You can specify this as a full or + * partial URL. For example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - + * projects/project/global/networks/network + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Required. The target network this DHCP option is attached to. You can specify this as a full or + * partial URL. For example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - + * projects/project/global/networks/network + * @param network network or {@code null} for none + */ + public DhcpOptionsConfigAssociation setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Output only. [Output Only] The server-defined ID of the associated Network. + * @return value or {@code null} for none + */ + public java.math.BigInteger getNetworkId() { + return networkId; + } + + /** + * Output only. [Output Only] The server-defined ID of the associated Network. + * @param networkId networkId or {@code null} for none + */ + public DhcpOptionsConfigAssociation setNetworkId(java.math.BigInteger networkId) { + this.networkId = networkId; + return this; + } + + /** + * Output only. [Output Only] State of the association. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] State of the association. + * @param state state or {@code null} for none + */ + public DhcpOptionsConfigAssociation setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public DhcpOptionsConfigAssociation set(String fieldName, Object value) { + return (DhcpOptionsConfigAssociation) super.set(fieldName, value); + } + + @Override + public DhcpOptionsConfigAssociation clone() { + return (DhcpOptionsConfigAssociation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfigList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfigList.java new file mode 100644 index 00000000000..3d2da28a759 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DhcpOptionsConfigList.java @@ -0,0 +1,437 @@ +/* + * 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 DhcpOptionsConfigList. + * + *

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 DhcpOptionsConfigList extends com.google.api.client.json.GenericJson { + + /** + * Server-defined ETag for optimistic concurrency control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [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 DhcpOptionsConfig 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 DhcpOptionsConfig 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(DhcpOptionsConfig.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#dhcpOptionsConfigList for a list + * of dhcp options configs. + * 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. [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. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Server-defined ETag for optimistic concurrency control. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Server-defined ETag for optimistic concurrency control. + * @param etag etag or {@code null} for none + */ + public DhcpOptionsConfigList setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [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 DhcpOptionsConfigList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of DhcpOptionsConfig resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of DhcpOptionsConfig resources. + * @param items items or {@code null} for none + */ + public DhcpOptionsConfigList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#dhcpOptionsConfigList for a list + * of dhcp options configs. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#dhcpOptionsConfigList for a list + * of dhcp options configs. + * @param kind kind or {@code null} for none + */ + public DhcpOptionsConfigList 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 DhcpOptionsConfigList 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 DhcpOptionsConfigList 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 DhcpOptionsConfigList 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 DhcpOptionsConfigList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public DhcpOptionsConfigList set(String fieldName, Object value) { + return (DhcpOptionsConfigList) super.set(fieldName, value); + } + + @Override + public DhcpOptionsConfigList clone() { + return (DhcpOptionsConfigList) 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 DhcpOptionsConfigListWarningData. + */ + 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/beta/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java new file mode 100644 index 00000000000..ed2f7d1f033 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.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; + +/** + * Metadata for GetHealth operations. + * + *

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 GetHealthOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The health information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetHealthOperationMetadataHealthInfo healthInfo; + + /** + * Output only. The health information. + * @return value or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo getHealthInfo() { + return healthInfo; + } + + /** + * Output only. The health information. + * @param healthInfo healthInfo or {@code null} for none + */ + public GetHealthOperationMetadata setHealthInfo(GetHealthOperationMetadataHealthInfo healthInfo) { + this.healthInfo = healthInfo; + return this; + } + + @Override + public GetHealthOperationMetadata set(String fieldName, Object value) { + return (GetHealthOperationMetadata) super.set(fieldName, value); + } + + @Override + public GetHealthOperationMetadata clone() { + return (GetHealthOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java new file mode 100644 index 00000000000..04087ae9ace --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * Health information. + * + *

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 GetHealthOperationMetadataHealthInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The availability SLO status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String availabilitySloStatus; + + /** + * Output only. The health status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * Output only. The repair category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String repairCategory; + + /** + * Output only. The reason for unhealthy status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String unhealthyReason; + + /** + * Output only. The time when health info was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The availability SLO status. + * @return value or {@code null} for none + */ + public java.lang.String getAvailabilitySloStatus() { + return availabilitySloStatus; + } + + /** + * Output only. The availability SLO status. + * @param availabilitySloStatus availabilitySloStatus or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setAvailabilitySloStatus(java.lang.String availabilitySloStatus) { + this.availabilitySloStatus = availabilitySloStatus; + return this; + } + + /** + * Output only. The health status. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * Output only. The health status. + * @param healthStatus healthStatus or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * Output only. The repair category. + * @return value or {@code null} for none + */ + public java.lang.String getRepairCategory() { + return repairCategory; + } + + /** + * Output only. The repair category. + * @param repairCategory repairCategory or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setRepairCategory(java.lang.String repairCategory) { + this.repairCategory = repairCategory; + return this; + } + + /** + * Output only. The reason for unhealthy status. + * @return value or {@code null} for none + */ + public java.lang.String getUnhealthyReason() { + return unhealthyReason; + } + + /** + * Output only. The reason for unhealthy status. + * @param unhealthyReason unhealthyReason or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setUnhealthyReason(java.lang.String unhealthyReason) { + this.unhealthyReason = unhealthyReason; + return this; + } + + /** + * Output only. The time when health info was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time when health info was updated. + * @param updateTime updateTime or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GetHealthOperationMetadataHealthInfo set(String fieldName, Object value) { + return (GetHealthOperationMetadataHealthInfo) super.set(fieldName, value); + } + + @Override + public GetHealthOperationMetadataHealthInfo clone() { + return (GetHealthOperationMetadataHealthInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java new file mode 100644 index 00000000000..a4aa758e551 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java @@ -0,0 +1,222 @@ +/* + * 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 the Global Frontend Bundle settings for a single project. + * + *

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 GlobalFrontendSettings extends com.google.api.client.json.GenericJson { + + /** + * Customer-settable bundle type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bundleType; + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * 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. For optimistic locking + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * 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 fields [Output Only] Name of the resource. 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] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Customer-settable bundle type. + * @return value or {@code null} for none + */ + public java.lang.String getBundleType() { + return bundleType; + } + + /** + * Customer-settable bundle type. + * @param bundleType bundleType or {@code null} for none + */ + public GlobalFrontendSettings setBundleType(java.lang.String bundleType) { + this.bundleType = bundleType; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public GlobalFrontendSettings setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] An optional description of this resource. + * @param description description or {@code null} for none + */ + public GlobalFrontendSettings setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. For optimistic locking + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. For optimistic locking + * @param etag etag or {@code null} for none + */ + public GlobalFrontendSettings setEtag(java.lang.String etag) { + this.etag = etag; + 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 GlobalFrontendSettings setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. OUTPUT_ONLY fields [Output Only] Name of the resource. 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; + } + + /** + * Output only. OUTPUT_ONLY fields [Output Only] Name of the resource. 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 GlobalFrontendSettings setName(java.lang.String name) { + this.name = name; + 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 GlobalFrontendSettings setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public GlobalFrontendSettings set(String fieldName, Object value) { + return (GlobalFrontendSettings) super.set(fieldName, value); + } + + @Override + public GlobalFrontendSettings clone() { + return (GlobalFrontendSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java new file mode 100644 index 00000000000..c705fc09559 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.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; + +/** + * Response to an UpdateGlobalFrontendSettingsRequest. + * + *

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 GlobalFrontendSettingsPatchResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Operation operation; + + /** + * @return value or {@code null} for none + */ + public Operation getOperation() { + return operation; + } + + /** + * @param operation operation or {@code null} for none + */ + public GlobalFrontendSettingsPatchResponse setOperation(Operation operation) { + this.operation = operation; + return this; + } + + @Override + public GlobalFrontendSettingsPatchResponse set(String fieldName, Object value) { + return (GlobalFrontendSettingsPatchResponse) super.set(fieldName, value); + } + + @Override + public GlobalFrontendSettingsPatchResponse clone() { + return (GlobalFrontendSettingsPatchResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java index 83b5bd36d39..baf01e0647f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java @@ -34,7 +34,7 @@ public final class GuestOsFeature extends com.google.api.client.json.GenericJson * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR * * For more information, see Enabling guest operating system features. * The value may be {@code null}. @@ -47,7 +47,7 @@ public final class GuestOsFeature extends com.google.api.client.json.GenericJson * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR * * For more information, see Enabling guest operating system features. * @return value or {@code null} for none @@ -61,7 +61,7 @@ public java.lang.String getType() { * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR * * For more information, see Enabling guest operating system features. * @param type type or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java index d87adf78d15..70d2f32c91f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -331,6 +331,13 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String selfLink; + /** + * 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. [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 @@ -1098,6 +1105,23 @@ public Interconnect setSelfLink(java.lang.String selfLink) { return this; } + /** + * Output only. 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. Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public Interconnect setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + /** * 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java index c323d785c69..be097d3bca9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java @@ -39,6 +39,22 @@ public final class InterconnectLocationCrossSiteInterconnectInfo extends com.goo @com.google.api.client.util.Key private java.lang.String city; + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxDynamicPathBandwidthGbps; + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxFixedPathBandwidthGbps; + /** * Output only. The remote location for Cross-Site Interconnect wires. This specifies an * InterconnectLocation city (metropolitan area designator), which itself may match multiple @@ -60,6 +76,44 @@ public InterconnectLocationCrossSiteInterconnectInfo setCity(java.lang.String ci return this; } + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxDynamicPathBandwidthGbps() { + return maxDynamicPathBandwidthGbps; + } + + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * @param maxDynamicPathBandwidthGbps maxDynamicPathBandwidthGbps or {@code null} for none + */ + public InterconnectLocationCrossSiteInterconnectInfo setMaxDynamicPathBandwidthGbps(java.lang.Long maxDynamicPathBandwidthGbps) { + this.maxDynamicPathBandwidthGbps = maxDynamicPathBandwidthGbps; + return this; + } + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxFixedPathBandwidthGbps() { + return maxFixedPathBandwidthGbps; + } + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * @param maxFixedPathBandwidthGbps maxFixedPathBandwidthGbps or {@code null} for none + */ + public InterconnectLocationCrossSiteInterconnectInfo setMaxFixedPathBandwidthGbps(java.lang.Long maxFixedPathBandwidthGbps) { + this.maxFixedPathBandwidthGbps = maxFixedPathBandwidthGbps; + return this; + } + @Override public InterconnectLocationCrossSiteInterconnectInfo set(String fieldName, Object value) { return (InterconnectLocationCrossSiteInterconnectInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java new file mode 100644 index 00000000000..50abcf08305 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java @@ -0,0 +1,443 @@ +/* + * 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 ListVmExtensionStatesResponse. + * + *

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 ListVmExtensionStatesResponse extends com.google.api.client.json.GenericJson { + + /** + * 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. 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. A list of VM extension policy resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List 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. 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. + * 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. 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. 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 ListVmExtensionStatesResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * 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 ListVmExtensionStatesResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * 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. A list of VM extension policy resources. + * @param items items or {@code null} for none + */ + public ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ListVmExtensionStatesResponse set(String fieldName, Object value) { + return (ListVmExtensionStatesResponse) super.set(fieldName, value); + } + + @Override + public ListVmExtensionStatesResponse clone() { + return (ListVmExtensionStatesResponse) 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 ListVmExtensionStatesResponseWarningData. + */ + 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/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java index 03414ff8045..c3a1c5bdee9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java @@ -144,8 +144,8 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstanceShutdownDetails shutdownDetails; /** - * Output only. [Output Only] The eventual status of the instance. The instance group manager will - * not be identified as stable till each managed instance reaches its targetStatus. + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -426,8 +426,8 @@ public ManagedInstance setShutdownDetails(ManagedInstanceShutdownDetails shutdow } /** - * Output only. [Output Only] The eventual status of the instance. The instance group manager will - * not be identified as stable till each managed instance reaches its targetStatus. + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. * @return value or {@code null} for none */ public java.lang.String getTargetStatus() { @@ -435,8 +435,8 @@ public java.lang.String getTargetStatus() { } /** - * Output only. [Output Only] The eventual status of the instance. The instance group manager will - * not be identified as stable till each managed instance reaches its targetStatus. + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. * @param targetStatus targetStatus or {@code null} for none */ public ManagedInstance setTargetStatus(java.lang.String targetStatus) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java index b4f65c505a6..6ec812baa1d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java @@ -84,6 +84,13 @@ public final class Operation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Error error; + /** + * Output only. Metadata for GetHealth operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetHealthOperationMetadata getHealthOperationMetadata; + /** * The value may be {@code null}. */ @@ -350,6 +357,23 @@ public Operation setError(Error error) { return this; } + /** + * Output only. Metadata for GetHealth operations. + * @return value or {@code null} for none + */ + public GetHealthOperationMetadata getGetHealthOperationMetadata() { + return getHealthOperationMetadata; + } + + /** + * Output only. Metadata for GetHealth operations. + * @param getHealthOperationMetadata getHealthOperationMetadata or {@code null} for none + */ + public Operation setGetHealthOperationMetadata(GetHealthOperationMetadata getHealthOperationMetadata) { + this.getHealthOperationMetadata = getHealthOperationMetadata; + return this; + } + /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java new file mode 100644 index 00000000000..ef60c5d50de --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java @@ -0,0 +1,350 @@ +/* + * 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 RecoverableSnapshot resource. + * + * A RecoverableSnapshot represents a snapshot in recycle bin. + * + *

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 RecoverableSnapshot 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; + + /** + * Optional. 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. [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#recoverableSnapshot for + * RecoverableSnapshot resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the + * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name + * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` + * which means the first character will be a lowercase letter, and all following characters can 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] The original snapshot resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RecoverableSnapshotOriginalSnapshot originalResource; + + /** + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String purgeTimestamp; + + /** + * 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. [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. [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 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. [Output Only] Status of the recoverable snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * 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 RecoverableSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Optional. An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. An optional description of this resource. + * @param description description or {@code null} for none + */ + public RecoverableSnapshot setDescription(java.lang.String description) { + this.description = description; + 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 RecoverableSnapshot setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for + * RecoverableSnapshot resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for + * RecoverableSnapshot resources. + * @param kind kind or {@code null} for none + */ + public RecoverableSnapshot setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the + * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name + * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` + * which means the first character will be a lowercase letter, and all following characters can 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; + } + + /** + * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the + * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name + * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` + * which means the first character will be a lowercase letter, and all following characters can 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 RecoverableSnapshot setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Output Only] The original snapshot resource. + * @return value or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot getOriginalResource() { + return originalResource; + } + + /** + * Output only. Output Only] The original snapshot resource. + * @param originalResource originalResource or {@code null} for none + */ + public RecoverableSnapshot setOriginalResource(RecoverableSnapshotOriginalSnapshot originalResource) { + this.originalResource = originalResource; + return this; + } + + /** + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getPurgeTimestamp() { + return purgeTimestamp; + } + + /** + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * @param purgeTimestamp purgeTimestamp or {@code null} for none + */ + public RecoverableSnapshot setPurgeTimestamp(java.lang.String purgeTimestamp) { + this.purgeTimestamp = purgeTimestamp; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public RecoverableSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public RecoverableSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + 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 RecoverableSnapshot 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 RecoverableSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. [Output Only] Status of the recoverable snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] Status of the recoverable snapshot. + * @param status status or {@code null} for none + */ + public RecoverableSnapshot setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public RecoverableSnapshot set(String fieldName, Object value) { + return (RecoverableSnapshot) super.set(fieldName, value); + } + + @Override + public RecoverableSnapshot clone() { + return (RecoverableSnapshot) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java new file mode 100644 index 00000000000..a761766e1e3 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java @@ -0,0 +1,434 @@ +/* + * 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 RecoverableSnapshotList. + * + *

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 RecoverableSnapshotList 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] 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 RecoverableSnapshots 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 RecoverableSnapshot 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(RecoverableSnapshot.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * recoverablesnapshots. + * 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. 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. + * 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 RecoverableSnapshotList setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [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 RecoverableSnapshotList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of RecoverableSnapshots resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of RecoverableSnapshots resources. + * @param items items or {@code null} for none + */ + public RecoverableSnapshotList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * recoverablesnapshots. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * recoverablesnapshots. + * @param kind kind or {@code null} for none + */ + public RecoverableSnapshotList 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 RecoverableSnapshotList 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 RecoverableSnapshotList 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 RecoverableSnapshotList 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 RecoverableSnapshotList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RecoverableSnapshotList set(String fieldName, Object value) { + return (RecoverableSnapshotList) super.set(fieldName, value); + } + + @Override + public RecoverableSnapshotList clone() { + return (RecoverableSnapshotList) 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 RecoverableSnapshotListWarningData. + */ + 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/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java new file mode 100644 index 00000000000..05a5acd1c93 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java @@ -0,0 +1,1153 @@ +/* + * 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 RecoverableSnapshotOriginalSnapshot. + * + *

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 RecoverableSnapshotOriginalSnapshot extends com.google.api.client.json.GenericJson { + + /** + * 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. [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 + private java.lang.Boolean autoCreated; + + /** + * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name + * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for + * advanced service owners who needs to create separate snapshot chains, for example, for + * chargeback tracking. When you describe your snapshot resource, this field is visible only if it + * has a non-empty value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chainName; + + /** + * 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. [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. [Output Only] Deletion timestamp of snapshot inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deletionTimestamp; + + /** + * 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. [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. [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; + + /** + * 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 + private java.lang.Boolean enableConfidentialCompute; + + /** + * 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 + private java.util.List guestOsFeatures; + + static { + // hack to force ProGuard to consider GuestOsFeature 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(GuestOsFeature.class); + } + + /** + * Output only. [Output Only] The unique identifier for the original snapshot. 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; + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label + * values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * 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. [Output Only] A list of public visible licenses that apply to this snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List licenses; + + /** + * Number of days the snapshot should be retained before being deleted automatically. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxRetentionDays; + + /** + * Name of the original snapshot provided by the client. The name must be 1-63 characters long, + * and comply with RFC1035. 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 snapshot resides. Only applicable for + * regional snapshots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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. [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. [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 for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Encrypts the snapshot using acustomer-supplied encryption key. + * + * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if + * you use the snapshot later. For example, you must provide the encryption key when you create a + * disk from the encrypted snapshot in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the snapshot. + * + * If you do not provide an encryption key when creating the snapshot, then the snapshot will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * snapshot later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey snapshotEncryptionKey; + + /** + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * The usage of snapshot group feature is restricted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String snapshotGroupId; + + /** + * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of + * snapshot group feature is restricted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String snapshotGroupName; + + /** + * Indicates the type of the snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String snapshotType; + + /** + * The source disk used to create this snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDisk; + + /** + * The customer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceDiskEncryptionKey; + + /** + * The source disk whose recovery checkpoint will be used to create this snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDiskForRecoveryCheckpoint; + + /** + * Output only. [Output Only] The ID value of the disk used to create this snapshot + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDiskId; + + /** + * The source instant snapshot used to create this snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshot; + + /** + * Customer provided encryption key when creating Snapshot from Instant Snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceInstantSnapshotEncryptionKey; + + /** + * 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 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 + * instant snapshot that was used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshotId; + + /** + * 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. [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. [Output Only] A size of the storage used by the snapshot. + * 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. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [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 unset, meaning the snapshot is being created, 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; + + /** + * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storageLocations; + + /** + * 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() { + return architecture; + } + + /** + * 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 RecoverableSnapshotOriginalSnapshot setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * 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() { + return autoCreated; + } + + /** + * 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 RecoverableSnapshotOriginalSnapshot setAutoCreated(java.lang.Boolean autoCreated) { + this.autoCreated = autoCreated; + return this; + } + + /** + * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name + * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for + * advanced service owners who needs to create separate snapshot chains, for example, for + * chargeback tracking. When you describe your snapshot resource, this field is visible only if it + * has a non-empty value. + * @return value or {@code null} for none + */ + public java.lang.String getChainName() { + return chainName; + } + + /** + * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name + * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for + * advanced service owners who needs to create separate snapshot chains, for example, for + * chargeback tracking. When you describe your snapshot resource, this field is visible only if it + * has a non-empty value. + * @param chainName chainName or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setChainName(java.lang.String chainName) { + this.chainName = chainName; + return this; + } + + /** + * 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() { + return creationSizeBytes; + } + + /** + * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * @param creationSizeBytes creationSizeBytes or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { + this.creationSizeBytes = creationSizeBytes; + return this; + } + + /** + * 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 RecoverableSnapshotOriginalSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] Deletion timestamp of snapshot inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getDeletionTimestamp() { + return deletionTimestamp; + } + + /** + * Output only. [Output Only] Deletion timestamp of snapshot inRFC3339 text format. + * @param deletionTimestamp deletionTimestamp or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setDeletionTimestamp(java.lang.String deletionTimestamp) { + this.deletionTimestamp = deletionTimestamp; + 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 RecoverableSnapshotOriginalSnapshot setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Size of the source disk, specified in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * Output only. [Output Only] Size of the source disk, specified in GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + /** + * 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() { + return downloadBytes; + } + + /** + * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * @param downloadBytes downloadBytes or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setDownloadBytes(java.lang.Long downloadBytes) { + this.downloadBytes = downloadBytes; + return this; + } + + /** + * 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() { + return enableConfidentialCompute; + } + + /** + * 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 RecoverableSnapshotOriginalSnapshot setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { + this.enableConfidentialCompute = enableConfidentialCompute; + return this; + } + + /** + * 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() { + return guestOsFeatures; + } + + /** + * 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 RecoverableSnapshotOriginalSnapshot setGuestOsFeatures(java.util.List guestOsFeatures) { + this.guestOsFeatures = guestOsFeatures; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the original snapshot. 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 original snapshot. This identifier is + * defined by the server. + * @param id id or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * @see #setLabelFingerprint() + * + *

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

+ * + * @since 1.14 + */ + public RecoverableSnapshotOriginalSnapshot encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label + * values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label + * values may be empty. + * @param labels labels or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * 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() { + return licenseCodes; + } + + /** + * Output only. [Output Only] Integer license codes indicating which licenses are attached to this + * snapshot. + * @param licenseCodes licenseCodes or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setLicenseCodes(java.util.List licenseCodes) { + this.licenseCodes = licenseCodes; + return this; + } + + /** + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. + * @return value or {@code null} for none + */ + public java.util.List getLicenses() { + return licenses; + } + + /** + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. + * @param licenses licenses or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setLicenses(java.util.List licenses) { + this.licenses = licenses; + return this; + } + + /** + * Number of days the snapshot should be retained before being deleted automatically. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRetentionDays() { + return maxRetentionDays; + } + + /** + * Number of days the snapshot should be retained before being deleted automatically. + * @param maxRetentionDays maxRetentionDays or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setMaxRetentionDays(java.lang.Integer maxRetentionDays) { + this.maxRetentionDays = maxRetentionDays; + return this; + } + + /** + * Name of the original snapshot provided by the client. The name must be 1-63 characters long, + * and comply with RFC1035. 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 original snapshot provided by the client. The name must be 1-63 characters long, + * and comply with RFC1035. 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 RecoverableSnapshotOriginalSnapshot setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for + * regional snapshots. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for + * regional snapshots. + * @param region region or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + 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 RecoverableSnapshotOriginalSnapshot 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 RecoverableSnapshotOriginalSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Encrypts the snapshot using acustomer-supplied encryption key. + * + * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if + * you use the snapshot later. For example, you must provide the encryption key when you create a + * disk from the encrypted snapshot in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the snapshot. + * + * If you do not provide an encryption key when creating the snapshot, then the snapshot will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * snapshot later. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSnapshotEncryptionKey() { + return snapshotEncryptionKey; + } + + /** + * Encrypts the snapshot using acustomer-supplied encryption key. + * + * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if + * you use the snapshot later. For example, you must provide the encryption key when you create a + * disk from the encrypted snapshot in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the snapshot. + * + * If you do not provide an encryption key when creating the snapshot, then the snapshot will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * snapshot later. + * @param snapshotEncryptionKey snapshotEncryptionKey or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey) { + this.snapshotEncryptionKey = snapshotEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * The usage of snapshot group feature is restricted. + * @return value or {@code null} for none + */ + public java.lang.String getSnapshotGroupId() { + return snapshotGroupId; + } + + /** + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * The usage of snapshot group feature is restricted. + * @param snapshotGroupId snapshotGroupId or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of + * snapshot group feature is restricted. + * @return value or {@code null} for none + */ + public java.lang.String getSnapshotGroupName() { + return snapshotGroupName; + } + + /** + * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of + * snapshot group feature is restricted. + * @param snapshotGroupName snapshotGroupName or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSnapshotGroupName(java.lang.String snapshotGroupName) { + this.snapshotGroupName = snapshotGroupName; + return this; + } + + /** + * Indicates the type of the snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSnapshotType() { + return snapshotType; + } + + /** + * Indicates the type of the snapshot. + * @param snapshotType snapshotType or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSnapshotType(java.lang.String snapshotType) { + this.snapshotType = snapshotType; + return this; + } + + /** + * The source disk used to create this snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDisk() { + return sourceDisk; + } + + /** + * The source disk used to create this snapshot. + * @param sourceDisk sourceDisk or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceDisk(java.lang.String sourceDisk) { + this.sourceDisk = sourceDisk; + return this; + } + + /** + * The customer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceDiskEncryptionKey() { + return sourceDiskEncryptionKey; + } + + /** + * The customer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * @param sourceDiskEncryptionKey sourceDiskEncryptionKey or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey) { + this.sourceDiskEncryptionKey = sourceDiskEncryptionKey; + return this; + } + + /** + * The source disk whose recovery checkpoint will be used to create this snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDiskForRecoveryCheckpoint() { + return sourceDiskForRecoveryCheckpoint; + } + + /** + * The source disk whose recovery checkpoint will be used to create this snapshot. + * @param sourceDiskForRecoveryCheckpoint sourceDiskForRecoveryCheckpoint or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskForRecoveryCheckpoint) { + this.sourceDiskForRecoveryCheckpoint = sourceDiskForRecoveryCheckpoint; + return this; + } + + /** + * Output only. [Output Only] The ID value of the disk used to create this snapshot + * @return value or {@code null} for none + */ + public java.lang.String getSourceDiskId() { + return sourceDiskId; + } + + /** + * Output only. [Output Only] The ID value of the disk used to create this snapshot + * @param sourceDiskId sourceDiskId or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceDiskId(java.lang.String sourceDiskId) { + this.sourceDiskId = sourceDiskId; + return this; + } + + /** + * The source instant snapshot used to create this snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshot() { + return sourceInstantSnapshot; + } + + /** + * The source instant snapshot used to create this snapshot. + * @param sourceInstantSnapshot sourceInstantSnapshot or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { + this.sourceInstantSnapshot = sourceInstantSnapshot; + return this; + } + + /** + * Customer provided encryption key when creating Snapshot from Instant Snapshot. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceInstantSnapshotEncryptionKey() { + return sourceInstantSnapshotEncryptionKey; + } + + /** + * Customer provided encryption key when creating Snapshot from Instant Snapshot. + * @param sourceInstantSnapshotEncryptionKey sourceInstantSnapshotEncryptionKey or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sourceInstantSnapshotEncryptionKey) { + this.sourceInstantSnapshotEncryptionKey = sourceInstantSnapshotEncryptionKey; + return this; + } + + /** + * 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 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 + * instant snapshot that was used. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshotId() { + return sourceInstantSnapshotId; + } + + /** + * 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 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 + * instant snapshot that was used. + * @param sourceInstantSnapshotId sourceInstantSnapshotId or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) { + this.sourceInstantSnapshotId = sourceInstantSnapshotId; + return this; + } + + /** + * 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() { + return sourceSnapshotSchedulePolicy; + } + + /** + * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * @param sourceSnapshotSchedulePolicy sourceSnapshotSchedulePolicy or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotSchedulePolicy) { + this.sourceSnapshotSchedulePolicy = sourceSnapshotSchedulePolicy; + return this; + } + + /** + * 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() { + return sourceSnapshotSchedulePolicyId; + } + + /** + * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * @param sourceSnapshotSchedulePolicyId sourceSnapshotSchedulePolicyId or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapshotSchedulePolicyId) { + this.sourceSnapshotSchedulePolicyId = sourceSnapshotSchedulePolicyId; + return this; + } + + /** + * Output only. [Output Only] A size of the storage used by the snapshot. + * @return value or {@code null} for none + */ + public java.lang.Long getStorageBytes() { + return storageBytes; + } + + /** + * Output only. [Output Only] A size of the storage used by the snapshot. + * @param storageBytes storageBytes or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setStorageBytes(java.lang.Long storageBytes) { + this.storageBytes = storageBytes; + return this; + } + + /** + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [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 unset, meaning the snapshot is being created, 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() { + return storageBytesStatus; + } + + /** + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [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 unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. + * @param storageBytesStatus storageBytesStatus or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { + this.storageBytesStatus = storageBytesStatus; + return this; + } + + /** + * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). + * @return value or {@code null} for none + */ + public java.util.List getStorageLocations() { + return storageLocations; + } + + /** + * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). + * @param storageLocations storageLocations or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setStorageLocations(java.util.List storageLocations) { + this.storageLocations = storageLocations; + return this; + } + + @Override + public RecoverableSnapshotOriginalSnapshot set(String fieldName, Object value) { + return (RecoverableSnapshotOriginalSnapshot) super.set(fieldName, value); + } + + @Override + public RecoverableSnapshotOriginalSnapshot clone() { + return (RecoverableSnapshotOriginalSnapshot) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java new file mode 100644 index 00000000000..89d8a70960f --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.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; + +/** + * Represents the singleton resource Snapshot Recycle Bin Policy that configures the retention + * duration for snapshots in the recycle bin. + * + * You can configure the retention duration for snapshots in the recycle bin at the project or + * organization level. If you configure the policy at the organization level, all projects in that + * organization will share the same policy. If you configure the policy at the project level it will + * be merged with org level policy (if any) and the snapshots in that project will use that 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 SnapshotRecycleBinPolicy extends com.google.api.client.json.GenericJson { + + /** + * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of + * the TagValue which can be in the format: + * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if + * snapshots do not have any of these tags. The value is the rule for the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map rules; + + /** + * Output only. The system rules for snapshot recycle bin policy. Defines the default rule that + * applies if no customer-defined rule matches. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map systemRules; + + /** + * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of + * the TagValue which can be in the format: + * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if + * snapshots do not have any of these tags. The value is the rule for the key. + * @return value or {@code null} for none + */ + public java.util.Map getRules() { + return rules; + } + + /** + * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of + * the TagValue which can be in the format: + * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if + * snapshots do not have any of these tags. The value is the rule for the key. + * @param rules rules or {@code null} for none + */ + public SnapshotRecycleBinPolicy setRules(java.util.Map rules) { + this.rules = rules; + return this; + } + + /** + * Output only. The system rules for snapshot recycle bin policy. Defines the default rule that + * applies if no customer-defined rule matches. + * @return value or {@code null} for none + */ + public java.util.Map getSystemRules() { + return systemRules; + } + + /** + * Output only. The system rules for snapshot recycle bin policy. Defines the default rule that + * applies if no customer-defined rule matches. + * @param systemRules systemRules or {@code null} for none + */ + public SnapshotRecycleBinPolicy setSystemRules(java.util.Map systemRules) { + this.systemRules = systemRules; + return this; + } + + @Override + public SnapshotRecycleBinPolicy set(String fieldName, Object value) { + return (SnapshotRecycleBinPolicy) super.set(fieldName, value); + } + + @Override + public SnapshotRecycleBinPolicy clone() { + return (SnapshotRecycleBinPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java new file mode 100644 index 00000000000..1787c9bd153 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.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 rule that defines the retention policy for snapshots in the recycle bin. + * + *

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 SnapshotRecycleBinPolicyRule extends com.google.api.client.json.GenericJson { + + /** + * The rule config for standard snapshots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SnapshotRecycleBinPolicyRuleRuleConfig standardSnapshots; + + /** + * The rule config for standard snapshots. + * @return value or {@code null} for none + */ + public SnapshotRecycleBinPolicyRuleRuleConfig getStandardSnapshots() { + return standardSnapshots; + } + + /** + * The rule config for standard snapshots. + * @param standardSnapshots standardSnapshots or {@code null} for none + */ + public SnapshotRecycleBinPolicyRule setStandardSnapshots(SnapshotRecycleBinPolicyRuleRuleConfig standardSnapshots) { + this.standardSnapshots = standardSnapshots; + return this; + } + + @Override + public SnapshotRecycleBinPolicyRule set(String fieldName, Object value) { + return (SnapshotRecycleBinPolicyRule) super.set(fieldName, value); + } + + @Override + public SnapshotRecycleBinPolicyRule clone() { + return (SnapshotRecycleBinPolicyRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java new file mode 100644 index 00000000000..0d8630cb26b --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.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; + +/** + * The rule config for snapshots in the recycle bin. + * + *

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 SnapshotRecycleBinPolicyRuleRuleConfig extends com.google.api.client.json.GenericJson { + + /** + * The retention duration for snapshots in the recycle bin after which the snapshots are + * automatically deleted from recycle bin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long retentionDurationDays; + + /** + * The retention duration for snapshots in the recycle bin after which the snapshots are + * automatically deleted from recycle bin. + * @return value or {@code null} for none + */ + public java.lang.Long getRetentionDurationDays() { + return retentionDurationDays; + } + + /** + * The retention duration for snapshots in the recycle bin after which the snapshots are + * automatically deleted from recycle bin. + * @param retentionDurationDays retentionDurationDays or {@code null} for none + */ + public SnapshotRecycleBinPolicyRuleRuleConfig setRetentionDurationDays(java.lang.Long retentionDurationDays) { + this.retentionDurationDays = retentionDurationDays; + return this; + } + + @Override + public SnapshotRecycleBinPolicyRuleRuleConfig set(String fieldName, Object value) { + return (SnapshotRecycleBinPolicyRuleRuleConfig) super.set(fieldName, value); + } + + @Override + public SnapshotRecycleBinPolicyRuleRuleConfig clone() { + return (SnapshotRecycleBinPolicyRuleRuleConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java new file mode 100644 index 00000000000..5b09a0d3efe --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.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 SnapshotsGetEffectiveRecycleBinRuleResponse. + * + *

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 SnapshotsGetEffectiveRecycleBinRuleResponse extends com.google.api.client.json.GenericJson { + + /** + * The retention duration of the snapshot in recycle bin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long retentionDurationDays; + + /** + * The retention duration of the snapshot in recycle bin. + * @return value or {@code null} for none + */ + public java.lang.Long getRetentionDurationDays() { + return retentionDurationDays; + } + + /** + * The retention duration of the snapshot in recycle bin. + * @param retentionDurationDays retentionDurationDays or {@code null} for none + */ + public SnapshotsGetEffectiveRecycleBinRuleResponse setRetentionDurationDays(java.lang.Long retentionDurationDays) { + this.retentionDurationDays = retentionDurationDays; + return this; + } + + @Override + public SnapshotsGetEffectiveRecycleBinRuleResponse set(String fieldName, Object value) { + return (SnapshotsGetEffectiveRecycleBinRuleResponse) super.set(fieldName, value); + } + + @Override + public SnapshotsGetEffectiveRecycleBinRuleResponse clone() { + return (SnapshotsGetEffectiveRecycleBinRuleResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionState.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionState.java new file mode 100644 index 00000000000..63bed00988b --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionState.java @@ -0,0 +1,213 @@ +/* + * 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; + +/** + * State of an extension on an instance. + * + *

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 VmExtensionState extends com.google.api.client.json.GenericJson { + + /** + * The status message of the extension if the extension fails to enforce. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforcementMsg; + + /** + * The enforcement state of the extension. If the extension is not enforced yet, then the health + * status will not be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforcementState; + + /** + * The health status message of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthMsg; + + /** + * The health status of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * The name of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The id of the policy that is enforced on the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyId; + + /** + * The version of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * The status message of the extension if the extension fails to enforce. + * @return value or {@code null} for none + */ + public java.lang.String getEnforcementMsg() { + return enforcementMsg; + } + + /** + * The status message of the extension if the extension fails to enforce. + * @param enforcementMsg enforcementMsg or {@code null} for none + */ + public VmExtensionState setEnforcementMsg(java.lang.String enforcementMsg) { + this.enforcementMsg = enforcementMsg; + return this; + } + + /** + * The enforcement state of the extension. If the extension is not enforced yet, then the health + * status will not be specified. + * @return value or {@code null} for none + */ + public java.lang.String getEnforcementState() { + return enforcementState; + } + + /** + * The enforcement state of the extension. If the extension is not enforced yet, then the health + * status will not be specified. + * @param enforcementState enforcementState or {@code null} for none + */ + public VmExtensionState setEnforcementState(java.lang.String enforcementState) { + this.enforcementState = enforcementState; + return this; + } + + /** + * The health status message of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getHealthMsg() { + return healthMsg; + } + + /** + * The health status message of the extension. + * @param healthMsg healthMsg or {@code null} for none + */ + public VmExtensionState setHealthMsg(java.lang.String healthMsg) { + this.healthMsg = healthMsg; + return this; + } + + /** + * The health status of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * The health status of the extension. + * @param healthStatus healthStatus or {@code null} for none + */ + public VmExtensionState setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * The name of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the extension. + * @param name name or {@code null} for none + */ + public VmExtensionState setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The id of the policy that is enforced on the extension. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyId() { + return policyId; + } + + /** + * The id of the policy that is enforced on the extension. + * @param policyId policyId or {@code null} for none + */ + public VmExtensionState setPolicyId(java.lang.String policyId) { + this.policyId = policyId; + return this; + } + + /** + * The version of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * The version of the extension. + * @param version version or {@code null} for none + */ + public VmExtensionState setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public VmExtensionState set(String fieldName, Object value) { + return (VmExtensionState) super.set(fieldName, value); + } + + @Override + public VmExtensionState clone() { + return (VmExtensionState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/pom.xml b/clients/google-api-services-compute/beta/2.0.0/pom.xml index 4a4bb02f1fd..e400b49d125 100644 --- a/clients/google-api-services-compute/beta/2.0.0/pom.xml +++ b/clients/google-api-services-compute/beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - beta-rev20260807-2.0.0 - Compute Engine API beta-rev20260807-2.0.0 + beta-rev20260821-2.0.0 + Compute Engine API beta-rev20260821-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/beta/README.md b/clients/google-api-services-compute/beta/README.md index 27edfeb458c..ce6dad3c432 100644 --- a/clients/google-api-services-compute/beta/README.md +++ b/clients/google-api-services-compute/beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - beta-rev20260807-2.0.0 + beta-rev20260821-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260807-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260821-2.0.0' } ``` 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 5751c6d1172..8c9944f2c3f 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-rev20260807-2.0.0 + v1-rev20260821-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20260807-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260821-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 924989ef943..6e9e5d8b39d 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 @@ -199985,6 +199985,237 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + /** + * Get health info on a reservation slot. + * + * Create a request for the method "reservationSlots.getHealth". + * + * 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. + * + * @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, parent block and parent sub-block. In + the format of + reservations + * /{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reser + * vation_sub_block_name} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public GetHealth getHealth(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) throws java.io.IOException { + GetHealth result = new GetHealth(project, zone, parentName, reservationSlot); + initialize(result); + return result; + } + + public class GetHealth extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getHealth"; + + 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})"); + + /** + * Get health info on a reservation slot. + * + * Create a request for the method "reservationSlots.getHealth". + * + * 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.

+ * + * @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, parent block and parent sub-block. In + the format of + reservations + * /{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reser + * vation_sub_block_name} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected GetHealth(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) { + 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."); + 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 GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); + } + + @Override + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); + } + + @Override + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); + } + + @Override + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); + } + + @Override + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); + } + + @Override + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); + } + + @Override + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); + } + + @Override + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); + } + + @Override + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); + } + + @Override + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetHealth setUserIp(java.lang.String userIp) { + return (GetHealth) 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 GetHealth 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 GetHealth setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation, parent block and parent sub-block. In the format of res + * ervations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlock + * s/{reservation_sub_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation, parent block and parent sub-block. In the format of reservation + s/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_s + ub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation, parent block and parent sub-block. In the format of res + * ervations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlock + * s/{reservation_sub_block_name} + */ + public GetHealth 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 GetHealth setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + return this; + } + + /** An optional request ID to identify requests. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** An optional request ID to identify requests. */ + public GetHealth setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); + } + } /** * Allows customers to get SBOM versions of a reservation slot. * diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java new file mode 100644 index 00000000000..ed2f7d1f033 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.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; + +/** + * Metadata for GetHealth operations. + * + *

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 GetHealthOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The health information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetHealthOperationMetadataHealthInfo healthInfo; + + /** + * Output only. The health information. + * @return value or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo getHealthInfo() { + return healthInfo; + } + + /** + * Output only. The health information. + * @param healthInfo healthInfo or {@code null} for none + */ + public GetHealthOperationMetadata setHealthInfo(GetHealthOperationMetadataHealthInfo healthInfo) { + this.healthInfo = healthInfo; + return this; + } + + @Override + public GetHealthOperationMetadata set(String fieldName, Object value) { + return (GetHealthOperationMetadata) super.set(fieldName, value); + } + + @Override + public GetHealthOperationMetadata clone() { + return (GetHealthOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java new file mode 100644 index 00000000000..04087ae9ace --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * Health information. + * + *

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 GetHealthOperationMetadataHealthInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The availability SLO status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String availabilitySloStatus; + + /** + * Output only. The health status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * Output only. The repair category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String repairCategory; + + /** + * Output only. The reason for unhealthy status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String unhealthyReason; + + /** + * Output only. The time when health info was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The availability SLO status. + * @return value or {@code null} for none + */ + public java.lang.String getAvailabilitySloStatus() { + return availabilitySloStatus; + } + + /** + * Output only. The availability SLO status. + * @param availabilitySloStatus availabilitySloStatus or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setAvailabilitySloStatus(java.lang.String availabilitySloStatus) { + this.availabilitySloStatus = availabilitySloStatus; + return this; + } + + /** + * Output only. The health status. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * Output only. The health status. + * @param healthStatus healthStatus or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * Output only. The repair category. + * @return value or {@code null} for none + */ + public java.lang.String getRepairCategory() { + return repairCategory; + } + + /** + * Output only. The repair category. + * @param repairCategory repairCategory or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setRepairCategory(java.lang.String repairCategory) { + this.repairCategory = repairCategory; + return this; + } + + /** + * Output only. The reason for unhealthy status. + * @return value or {@code null} for none + */ + public java.lang.String getUnhealthyReason() { + return unhealthyReason; + } + + /** + * Output only. The reason for unhealthy status. + * @param unhealthyReason unhealthyReason or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setUnhealthyReason(java.lang.String unhealthyReason) { + this.unhealthyReason = unhealthyReason; + return this; + } + + /** + * Output only. The time when health info was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time when health info was updated. + * @param updateTime updateTime or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GetHealthOperationMetadataHealthInfo set(String fieldName, Object value) { + return (GetHealthOperationMetadataHealthInfo) super.set(fieldName, value); + } + + @Override + public GetHealthOperationMetadataHealthInfo clone() { + return (GetHealthOperationMetadataHealthInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java index 83b5bd36d39..baf01e0647f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java @@ -34,7 +34,7 @@ public final class GuestOsFeature extends com.google.api.client.json.GenericJson * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR * * For more information, see Enabling guest operating system features. * The value may be {@code null}. @@ -47,7 +47,7 @@ public final class GuestOsFeature extends com.google.api.client.json.GenericJson * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR * * For more information, see Enabling guest operating system features. * @return value or {@code null} for none @@ -61,7 +61,7 @@ public java.lang.String getType() { * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR * * For more information, see Enabling guest operating system features. * @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/Interconnect.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java index d87adf78d15..70d2f32c91f 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 @@ -331,6 +331,13 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String selfLink; + /** + * 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. [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 @@ -1098,6 +1105,23 @@ public Interconnect setSelfLink(java.lang.String selfLink) { return this; } + /** + * Output only. 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. Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public Interconnect setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + /** * 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 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 c323d785c69..be097d3bca9 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 @@ -39,6 +39,22 @@ public final class InterconnectLocationCrossSiteInterconnectInfo extends com.goo @com.google.api.client.util.Key private java.lang.String city; + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxDynamicPathBandwidthGbps; + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxFixedPathBandwidthGbps; + /** * Output only. The remote location for Cross-Site Interconnect wires. This specifies an * InterconnectLocation city (metropolitan area designator), which itself may match multiple @@ -60,6 +76,44 @@ public InterconnectLocationCrossSiteInterconnectInfo setCity(java.lang.String ci return this; } + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxDynamicPathBandwidthGbps() { + return maxDynamicPathBandwidthGbps; + } + + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * @param maxDynamicPathBandwidthGbps maxDynamicPathBandwidthGbps or {@code null} for none + */ + public InterconnectLocationCrossSiteInterconnectInfo setMaxDynamicPathBandwidthGbps(java.lang.Long maxDynamicPathBandwidthGbps) { + this.maxDynamicPathBandwidthGbps = maxDynamicPathBandwidthGbps; + return this; + } + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxFixedPathBandwidthGbps() { + return maxFixedPathBandwidthGbps; + } + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * @param maxFixedPathBandwidthGbps maxFixedPathBandwidthGbps or {@code null} for none + */ + public InterconnectLocationCrossSiteInterconnectInfo setMaxFixedPathBandwidthGbps(java.lang.Long maxFixedPathBandwidthGbps) { + this.maxFixedPathBandwidthGbps = maxFixedPathBandwidthGbps; + return this; + } + @Override public InterconnectLocationCrossSiteInterconnectInfo set(String fieldName, Object value) { return (InterconnectLocationCrossSiteInterconnectInfo) super.set(fieldName, value); 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 48e669a0655..fdf048a8e9d 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 @@ -135,6 +135,14 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private ManagedInstanceShutdownDetails shutdownDetails; + /** + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetStatus; + /** * Output only. [Output Only] Intended version of this instance. * The value may be {@code null}. @@ -390,6 +398,25 @@ public ManagedInstance setShutdownDetails(ManagedInstanceShutdownDetails shutdow return this; } + /** + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. + * @return value or {@code null} for none + */ + public java.lang.String getTargetStatus() { + return targetStatus; + } + + /** + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. + * @param targetStatus targetStatus or {@code null} for none + */ + public ManagedInstance setTargetStatus(java.lang.String targetStatus) { + this.targetStatus = targetStatus; + return this; + } + /** * Output only. [Output Only] Intended version of this instance. * @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/Operation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Operation.java index ba42faadd0a..7d3a3e977a5 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,13 @@ public final class Operation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Error error; + /** + * Output only. Metadata for GetHealth operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetHealthOperationMetadata getHealthOperationMetadata; + /** * The value may be {@code null}. */ @@ -350,6 +357,23 @@ public Operation setError(Error error) { return this; } + /** + * Output only. Metadata for GetHealth operations. + * @return value or {@code null} for none + */ + public GetHealthOperationMetadata getGetHealthOperationMetadata() { + return getHealthOperationMetadata; + } + + /** + * Output only. Metadata for GetHealth operations. + * @param getHealthOperationMetadata getHealthOperationMetadata or {@code null} for none + */ + public Operation setGetHealthOperationMetadata(GetHealthOperationMetadata getHealthOperationMetadata) { + this.getHealthOperationMetadata = getHealthOperationMetadata; + return this; + } + /** * @return value or {@code null} for none */ 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 aede4a88e7c..7e213450f22 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-rev20260807-2.0.0 - Compute Engine API v1-rev20260807-2.0.0 + v1-rev20260821-2.0.0 + Compute Engine API v1-rev20260821-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/v1/README.md b/clients/google-api-services-compute/v1/README.md index 5751c6d1172..8c9944f2c3f 100644 --- a/clients/google-api-services-compute/v1/README.md +++ b/clients/google-api-services-compute/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - v1-rev20260807-2.0.0 + v1-rev20260821-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20260807-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260821-2.0.0' } ```