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:
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{@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 {@link
@@ -15325,23 +15575,30 @@ public class Get extends ComputeRequest {@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. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. 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
+ * {@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
- * {@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
{@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{@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{@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 ComputeRequestThe 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{@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{@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+ * {@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+ * {@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{@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{@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{@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+ * {@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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+ * {@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{@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{@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{@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{@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{@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{@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{@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
@@ -138834,10 +143900,12 @@ public class Announce extends ComputeRequest {@link
@@ -139038,10 +144133,11 @@ public class Delete extends ComputeRequest {@link
@@ -139252,21 +144379,28 @@ public class Get extends ComputeRequest {@link
@@ -139426,10 +144585,11 @@ public class Insert extends ComputeRequest {@link
@@ -139609,16 +144800,23 @@ public class List extends ComputeRequest {@link
@@ -140023,11 +145246,12 @@ public class Patch extends ComputeRequest
@@ -140236,10 +145489,12 @@ public class Withdraw extends ComputeRequest The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor.
- * {@link
- * Announce#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
@@ -141167,11 +145743,10 @@ public class Delete extends ComputeRequest {@link
@@ -141413,28 +145957,21 @@ public class Get extends ComputeRequest {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
@@ -141834,23 +146321,16 @@ public class List extends ComputeRequest {@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.
+ * 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. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor.
+ * {@link
+ * GetHealth#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link GetEffectiveRecycleBinRule#initialize(com.google.api.client.googleapis.se
+ * rvices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
+ * after invoking the constructor. 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ *
+ * The value is encoded Base64 or {@code null} for none.
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ *
+ * {@link
+ * GetHealth#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. 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
+ * 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
+ *
- * {@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
+ * {@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
+ * {@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